Skip to content

Commit

Permalink
Update linters and add configuration for new tools
Browse files Browse the repository at this point in the history
Upgraded flake8, introduced black, and blacken-docs in the pre-commit configuration. Added a new .flake8 file for custom flake8 settings. Removed the obsolete lint job from GitHub Actions build workflow.
  • Loading branch information
StevenMapes committed Oct 18, 2024
1 parent e0821ff commit 1851ae6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
8 changes: 8 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[flake8]
max-line-length = 119
exclude =
.git,
__pycache__,
.venv,
build
ignore = E101,E111,E114,E115,E116,E117,E12,E13,E2,E3,E401,E5,E70,W1,W2,W3,W5
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
fail-fast: false
matrix:
include:
- python: 3.x
toxenv: lint
- python: 3.8
toxenv: py38-django22
- python: 3.9
Expand Down
25 changes: 17 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
repos:
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
- repo: https://github.com/PyCQA/isort
rev: 5.6.4
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
hooks:
- id: flake8
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: 1.18.0
hooks:
- id: blacken-docs
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]

0 comments on commit 1851ae6

Please sign in to comment.