Skip to content

Commit

Permalink
updated linting config
Browse files Browse the repository at this point in the history
  • Loading branch information
snnbotchway committed Dec 8, 2024
1 parent 5773676 commit e2f180b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[flake8]
max-line-length = 120
max-line-length = 140
exclude = migrations,__pycache__,manage.py,app/project_name/settings/*,venv
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/ambv/black
rev: 23.3.0
rev: 24.10.0
hooks:
- id: black
args: [--line-length=120, --preview]
args: [--line-length=140, --preview]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black"]
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.1.1
hooks:
- id: flake8
exclude: (migrations|__pycache__|manage.py|settings)
args: [--max-line-length=120]
args: [--max-line-length=140]
1 change: 1 addition & 0 deletions app/project_name/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""

from django.contrib import admin
from django.urls import path

Expand Down

0 comments on commit e2f180b

Please sign in to comment.