Add django-upgrade hook to pre-commit configuration and remove unneded DEFAULT_AUTO_FIELD setting
All checks were successful
Deploy to Server / deploy (push) Successful in 21s
All checks were successful
Deploy to Server / deploy (push) Successful in 21s
This commit is contained in:
parent
428f49879d
commit
60d34bdf0d
2 changed files with 6 additions and 1 deletions
|
|
@ -20,6 +20,12 @@ repos:
|
||||||
args: [--pytest-test-first]
|
args: [--pytest-test-first]
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
|
|
||||||
|
- repo: https://github.com/adamchainz/django-upgrade
|
||||||
|
rev: 1.30.0
|
||||||
|
hooks:
|
||||||
|
- id: django-upgrade
|
||||||
|
args: [--target-version, "6.0"]
|
||||||
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.15.5
|
rev: v0.15.5
|
||||||
hooks:
|
hooks:
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,6 @@ DATA_DIR: Path = get_data_dir()
|
||||||
|
|
||||||
ADMINS: list[tuple[str, str]] = [("Joakim Hellsén", "tlovinator@gmail.com")]
|
ADMINS: list[tuple[str, str]] = [("Joakim Hellsén", "tlovinator@gmail.com")]
|
||||||
BASE_DIR: Path = Path(__file__).resolve().parent.parent
|
BASE_DIR: Path = Path(__file__).resolve().parent.parent
|
||||||
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|
|
||||||
ROOT_URLCONF = "config.urls"
|
ROOT_URLCONF = "config.urls"
|
||||||
SECRET_KEY: str = os.getenv("DJANGO_SECRET_KEY", default="")
|
SECRET_KEY: str = os.getenv("DJANGO_SECRET_KEY", default="")
|
||||||
if not SECRET_KEY:
|
if not SECRET_KEY:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue