Skip to content

Commit

Permalink
build: auto-sort/format imports with isort
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCrews committed Sep 9, 2022
1 parent 296ca67 commit b26b873
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ repos:
rev: 22.8.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: isort (python)
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ requires = ['setuptools', 'wheel']

[tool.pytest.ini_options]
testpaths = ["./tests"]

[tool.isort]
profile = "black"
# Place each import on its own line to reduce merge conflicts
force_single_line = true
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ dev =
black
build
flake8
isort
mypy
pre-commit
pytest
Expand Down

0 comments on commit b26b873

Please sign in to comment.