Skip to content

Commit

Permalink
chore: lint and upgrade linters
Browse files Browse the repository at this point in the history
  • Loading branch information
guilatrova committed Apr 29, 2023
1 parent 779b381 commit 45eb916
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
9 changes: 6 additions & 3 deletions setup.cfg → .flake8
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[flake8]
max-line-length=100
extend-ignore=
E203 # whitespace before :
ANN101, ANN102 # type self and cls
ANN204 # type __init__
# whitespace before :
E203
# type self and cls
ANN101, ANN102
# type __init__
ANN204
per-file-ignores=
src/tests/*:ANN201
exclude=
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 22.12.0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-annotations==2.9.0]
exclude: samples/
- repo: https://github.com/timothycrosley/isort
rev: 5.8.0
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ rich = ">=10.14.0"

[tool.poetry.dev-dependencies]
pytest = "^6.2.4"
flake8 = "^3.9.2"
black = "^20.8b1"
isort = "^5.8.0"
flake8 = "^6.0.0"
black = "^22.12.0"
isort = "^5.12.0"
pre-commit = "^2.13.0"
astpretty = "^2.1.0"
pytest-cov = "^2.12.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def fine():
logger.info("ok() is fine")



def bad():
try:
a = 1
Expand All @@ -35,4 +34,3 @@ def bad():

finally:
logger.info("except + finally = still issue")

0 comments on commit 45eb916

Please sign in to comment.