Skip to content

Commit 5f6a194

Browse files
committed
Use isort to sort the import statements
1 parent 0060f94 commit 5f6a194

File tree

234 files changed

+1078
-1022
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+1078
-1022
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
- name: Run code quality tests with tox
2323
run: tox
2424
env:
25-
TOXENV: black,flake8,mypy,docs,manifest
25+
TOXENV: black,flake8,isort,mypy,docs,manifest

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ pytest-describe = "^2.0"
5555
pytest-timeout = "^2.1"
5656
black = "22.8.0"
5757
flake8 = "^5.0"
58+
isort = "^5.10"
5859
mypy = "0.971"
5960
sphinx = "^5.1"
6061
sphinx_rtd_theme = ">=1,<2"
6162
check-manifest = ">=0.48,<1"
6263
bump2version = ">=1.0,<2"
6364
tox = "^3.26"
6465

65-
6666
[tool.black]
6767
target-version = ['py37', 'py38', 'py39', 'py310']
6868

@@ -95,6 +95,11 @@ exclude_lines = [
9595
]
9696
ignore_errors = true
9797

98+
[tool.isort]
99+
profile = "black"
100+
force_single_line = false
101+
lines_after_imports = 2
102+
98103
[tool.mypy]
99104
python_version = 3.9
100105
check_untyped_defs = true

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from re import search
2-
from setuptools import setup, find_packages
2+
3+
from setuptools import find_packages, setup
4+
35

46
with open("src/graphql/version.py") as version_file:
57
version = search('version = "(.*)"', version_file.read()).group(1)

0 commit comments

Comments
 (0)