Skip to content

Commit 17d0543

Browse files
committed
Add configuration for flake8 in pyproject.toml
This configuration file will be used by pre-commit. This configuration location require the additional packagey pyproject-flake8 to be used by the flake8 command line.
1 parent b6ef90b commit 17d0543

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ repos:
1919
rev: 6.0.0
2020
hooks:
2121
- id: flake8
22+
entry: pflake8
23+
additional_dependencies: [pyproject-flake8]

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ codespell = "codespell:main"
2929

3030
[tool.setuptools_scm]
3131
local_scheme = "dirty-tag"
32+
33+
[tool.flake8]
34+
max-line-length = 88
35+
ignore = ['E203', 'W503']
36+
max_complexity = 32

0 commit comments

Comments
 (0)