Skip to content

Commit 96eab80

Browse files
authored
Remove flake8 file (#447)
1 parent 0bf20a3 commit 96eab80

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

.flake8

Lines changed: 0 additions & 17 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ repos:
3939
- id: pyupgrade
4040
args: [--py37-plus]
4141

42-
- repo: https://github.com/pycqa/flake8
43-
rev: 5.0.4
42+
- repo: https://github.com/john-hen/Flake8-pyproject
43+
rev: 1.0.1
4444
hooks:
45-
- id: flake8
45+
- id: Flake8-pyproject
46+
alias: flake8
4647
additional_dependencies:
4748
["flake8-bugbear==22.6.22", "flake8-implicit-str-concat==0.2.0"]
4849
stages: [manual]

pyproject.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,24 @@ module = [
133133
"pypandoc",
134134
]
135135
ignore_missing_imports = true
136+
137+
[tool.flake8]
138+
ignore = "E501, W503, E402"
139+
builtins = "c, get_config"
140+
exclude = [
141+
".cache",
142+
".github",
143+
"docs",
144+
"setup.py",
145+
]
146+
enable-extensions = "G"
147+
extend-ignore = [
148+
"G001", "G002", "G004", "G200", "G201", "G202",
149+
# black adds spaces around ':'
150+
"E203",
151+
]
152+
per-file-ignores = [
153+
# B011: Do not call assert False since python -O removes these calls
154+
# F841 local variable 'foo' is assigned to but never used
155+
"jupyter_releaser/tests/*: B011", "F841",
156+
]

0 commit comments

Comments
 (0)