Skip to content

Commit

Permalink
Remove .flake8 config file so that config is defined in one place
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljcollinsuk committed Apr 22, 2024
1 parent 4c265c7 commit f488eab
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
14 changes: 0 additions & 14 deletions .flake8

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ jobs:
VALIDATE_PYTHON_RUFF: false
LINTER_RULES_PATH: /
PYTHON_BLACK_CONFIG_FILE: pyproject.toml
PYTHON_FLAKE8_CONFIG_FILE: .flake8
PYTHON_FLAKE8_CONFIG_FILE: setup.cfg
PYTHON_ISORT_CONFIG_FILE: pyproject.toml
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ repos:
hooks:
- id: flake8
name: flake8 format check
entry: bash -c 'flake8 --config=.flake8 $(git diff --name-only --cached --diff-filter=ACMR | grep .py)'
entry: bash -c 'flake8 $(git diff --name-only --cached --diff-filter=ACMR | grep .py)'
13 changes: 12 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,15 @@ DJANGO_SETTINGS_MODULE = controlpanel.settings.test
norecursedirs = .circleci .git .github .mypy_cache controlpanel doc docker node_modules run static venv

[flake8]
max-line-length = 88
max-line-length = 100
ignore =
E203,
E266,
W503,
F403,
F401
max-complexity = 18
select = B,C,E,F,W,T4,B9
exclude =__init__.py,venv
per-file-ignores =
controlpanel/api/migrations/*:E501,W292

0 comments on commit f488eab

Please sign in to comment.