Skip to content

Commit

Permalink
build: add isort dev dependency, and add to lint.sh; update dev d…
Browse files Browse the repository at this point in the history
…ependencies 📦
  • Loading branch information
oldratlee committed Oct 29, 2023
1 parent a57e13f commit 20a2707
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
30 changes: 26 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ pyobjc-framework-Quartz = "^10.0"

[tool.poetry.group.dev.dependencies]
pytest = "^7.4.2"
flake8 = "^6.1.0"
mypy = "^1.6.1"
flake8 = "^6.1.0"
isort = "^5.12.0"


[[tool.poetry.source]]
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ colorama==0.4.6 ; python_full_version >= "3.8.1" and python_full_version < "4.0.
exceptiongroup==1.1.3 ; python_full_version >= "3.8.1" and python_version < "3.11"
flake8==6.1.0 ; python_full_version >= "3.8.1" and python_full_version < "4.0.0"
iniconfig==2.0.0 ; python_full_version >= "3.8.1" and python_full_version < "4.0.0"
isort==5.12.0 ; python_full_version >= "3.8.1" and python_full_version < "4.0.0"
mccabe==0.7.0 ; python_full_version >= "3.8.1" and python_full_version < "4.0.0"
mypy-extensions==1.0.0 ; python_full_version >= "3.8.1" and python_full_version < "4.0.0"
mypy==1.6.1 ; python_full_version >= "3.8.1" and python_full_version < "4.0.0"
Expand Down
2 changes: 2 additions & 0 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ source scripts/_utils.sh

log_and_run flake8 --count --statistics --show-source --max-complexity=10 --max-line-length=120 ./*.py tests

log_and_run isort --line-length=120 --check-only --diff ./*.py tests

# https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
# https://mypy.readthedocs.io/en/stable/existing_code.html#ignoring-errors-from-certain-modules
log_and_run mypy ./*.py tests
Expand Down

0 comments on commit 20a2707

Please sign in to comment.