Skip to content

Commit

Permalink
Remove flake8 file (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Oct 16, 2022
1 parent 0bf20a3 commit 96eab80
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 20 deletions.
17 changes: 0 additions & 17 deletions .flake8

This file was deleted.

7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Expand Up @@ -39,10 +39,11 @@ repos:
- id: pyupgrade
args: [--py37-plus]

- repo: https://github.com/pycqa/flake8
rev: 5.0.4
- repo: https://github.com/john-hen/Flake8-pyproject
rev: 1.0.1
hooks:
- id: flake8
- id: Flake8-pyproject
alias: flake8
additional_dependencies:
["flake8-bugbear==22.6.22", "flake8-implicit-str-concat==0.2.0"]
stages: [manual]
Expand Down
21 changes: 21 additions & 0 deletions pyproject.toml
Expand Up @@ -133,3 +133,24 @@ module = [
"pypandoc",
]
ignore_missing_imports = true

[tool.flake8]
ignore = "E501, W503, E402"
builtins = "c, get_config"
exclude = [
".cache",
".github",
"docs",
"setup.py",
]
enable-extensions = "G"
extend-ignore = [
"G001", "G002", "G004", "G200", "G201", "G202",
# black adds spaces around ':'
"E203",
]
per-file-ignores = [
# B011: Do not call assert False since python -O removes these calls
# F841 local variable 'foo' is assigned to but never used
"jupyter_releaser/tests/*: B011", "F841",
]

0 comments on commit 96eab80

Please sign in to comment.