Skip to content

Commit cdd3f5a

Browse files
committed
Autoformat with ruff
1 parent 62820a8 commit cdd3f5a

3 files changed

Lines changed: 6 additions & 13 deletions

File tree

devstats/__main__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
import json
1+
import collections
22
import os
33
import re
44
import sys
55
from glob import glob
6-
import collections
76

87
import click
9-
import requests
108

9+
from .publish import publish, template
1110
from .query import GithubGrabber
12-
from .publish import template, publish
1311

1412

1513
class OrderedGroup(click.Group):

devstats/publish.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
import functools
12
import os
2-
import sys
3-
from glob import glob
4-
import shutil
53
import re
6-
import functools
4+
import shutil
5+
from glob import glob
76

87
import click
98

devstats/query.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
import json
2-
import os
3-
import re
4-
import sys
5-
from glob import glob
62

73
import requests
84

@@ -98,7 +94,7 @@ def get_all_responses(query, query_type, headers):
9894
Helper function to bypass GitHub GraphQL API node limit.
9995
"""
10096
# Get data from a single response
101-
print(f"Retrieving first page...", end="", flush=True)
97+
print("Retrieving first page...", end="", flush=True)
10298
initial_data = send_query(query, query_type, headers)
10399
data, last_cursor, total_count = parse_single_query(initial_data, query_type)
104100

0 commit comments

Comments
 (0)