Skip to content

Commit 140a6ae

Browse files
committed
Add flake8 to the pre-commit hooks
1 parent 18de3a8 commit 140a6ae

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ repos:
2323
hooks:
2424
- id: pyupgrade
2525
args: ["--py39-plus"]
26-
# TODO: Enable mypy checker when the checks succeed
27-
#- repo: https://github.com/pre-commit/mirrors-mypy
28-
# rev: v0.931
29-
# hooks:
30-
# - id: mypy
31-
# additional_dependencies: [types-setuptools]
26+
- repo: https://github.com/pycqa/flake8
27+
rev: "7.1.1"
28+
hooks:
29+
- id: flake8
30+
additional_dependencies: ["flake8-pyproject"]

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ build-backend = "poetry.core.masonry.api"
5959
line-length = 120
6060
target-version = ["py39", "py310", "py311", "py312"]
6161

62+
[tool.flake8]
63+
# E: indentation erros; ignore all, since we already use `black`
64+
extend-ignore = "E"
65+
6266
[tool.isort]
6367
profile = "black"
6468
line_length = 120

0 commit comments

Comments
 (0)