Skip to content

Commit

Permalink
Update tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmoreton committed Jul 12, 2024
1 parent cad400f commit c7a6534
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
15 changes: 12 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
repos:
- repo: https://github.com/pycqa/isort
rev: 5.13.1
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.11.0
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.1.0
hooks:
- id: flake8
- repo: https://github.com/jackdewinter/pymarkdown
Expand All @@ -19,3 +19,12 @@ repos:
- --disable-rules
- line-length
- scan
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
hooks:
- id: pyupgrade
- repo: https://github.com/adamchainz/django-upgrade
rev: "1.19.0" # replace with latest tag on GitHub
hooks:
- id: django-upgrade
args: [--target-version, "5.0"] # Replace with Django version
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ dependencies =[

[project.optional-dependencies]
development = [
"black==23.7.0",
"flake8==6.1.0",
"isort==5.12.0",
"black==24.4.2",
"flake8==7.1.0",
"isort==5.13.2",
"django-upgrade",
"pyupgrade",
]
1 change: 0 additions & 1 deletion tests/testapp/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import migrations, models


Expand Down
1 change: 0 additions & 1 deletion tests/testapp/migrations/0002_create_homepage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import migrations


Expand Down

0 comments on commit c7a6534

Please sign in to comment.