Skip to content

Commit

Permalink
Remove flake8 file (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Oct 16, 2022
1 parent db8291f commit ef45583
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 21 deletions.
17 changes: 0 additions & 17 deletions .flake8

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ jobs:
if: always()
needs:
- base_setup
- pre-commit
- pre_commit
- check_links
- binder_link
- pr_script
Expand Down
7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ repos:
hooks:
- id: mdformat

- 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"]

Expand Down
21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,24 @@ source = "nodejs"

[tool.pytest.ini_options]
testpaths = ["foobar.py"]

[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
"tests/*: B011", "F841",
]

0 comments on commit ef45583

Please sign in to comment.