Skip to content

Commit

Permalink
Remove flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Aug 30, 2024
1 parent d8d98d4 commit b37b4c3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 29 deletions.
2 changes: 0 additions & 2 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ LINTER_RULES_PATH: .

ENABLE_LINTERS:
- PYTHON_BLACK
- PYTHON_FLAKE8
- PYTHON_RUFF

# Make workflow fail even on non blocking errors
FORMATTERS_DISABLE_ERRORS: false

PYTHON_BLACK_CONFIG_FILE: pyproject.toml
PYTHON_RUFF_CONFIG_FILE: pyproject.toml
PYTHON_FLAKE8_CONFIG_FILE: tox.ini
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ repos:
- id: end-of-file-fixer
exclude: &exclude_pattern '^changelog.d/'
- id: debug-statements
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
name: "Flake8: critical"
args: ['--count', '--select=E9,F63,F7,F82', '--show-source', '--statistics']
types: [file, python]
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ dev = [
"black",
"coverage",
"django-extensions",
"flake8",
"ipython",
"pre-commit",
"python-dotenv",
Expand Down
19 changes: 0 additions & 19 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@ commands =
-coverage combine --append
coverage html --include="./src/*" --omit="*/admin.py,*/test*,*/migrations/*"

[testenv:flake8-critical]
setenv =
basepython = python3.10
deps =
flake8
commands =
# stop the build if there are Python syntax errors or undefined names
flake8 --count --show-source --statistics src/

[testenv:upgrade-deps]
whitelist_externals = cp
deps =
Expand Down Expand Up @@ -94,13 +85,3 @@ omit =
exclude_lines =
# Ignore not abstract methods, as these cannot be tested
raise NotImplementedError

[flake8]
max-line-length = 88
filename =
src/**/*.py
extend_exclude =
*.egg-info,
migrations,
templates
select = E9,F63,F7,F82

0 comments on commit b37b4c3

Please sign in to comment.