mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-09-20 19:02:37 +03:00
Merge branch 'cookiecutter-master'
This commit is contained in:
commit
e5c46dea90
|
@ -47,6 +47,11 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
|
|
||||||
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
||||||
|
rev: "2.0.4"
|
||||||
|
hooks:
|
||||||
|
- id: pyproject-fmt
|
||||||
|
|
||||||
ci:
|
ci:
|
||||||
autoupdate_schedule: weekly
|
autoupdate_schedule: weekly
|
||||||
skip: []
|
skip: []
|
||||||
|
|
|
@ -3,6 +3,13 @@ All enhancements and patches to Cookiecutter Django will be documented in this f
|
||||||
|
|
||||||
<!-- GENERATOR_PLACEHOLDER -->
|
<!-- GENERATOR_PLACEHOLDER -->
|
||||||
|
|
||||||
|
## 2024.09.05
|
||||||
|
|
||||||
|
|
||||||
|
### Updated
|
||||||
|
|
||||||
|
- Update django-upgrade to 1.21.0 ([#5348](https://github.com/cookiecutter/cookiecutter-django/pull/5348))
|
||||||
|
|
||||||
## 2024.09.04
|
## 2024.09.04
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,35 +1,68 @@
|
||||||
# ==== pytest ====
|
[project]
|
||||||
[tool.pytest.ini_options]
|
name = "cookiecutter-django"
|
||||||
addopts = "-v --tb=short"
|
version = "2024.09.05"
|
||||||
norecursedirs = [
|
description = "A Cookiecutter template for creating production-ready Django projects quickly."
|
||||||
".tox",
|
readme = "README.md"
|
||||||
".git",
|
keywords = [
|
||||||
"*/migrations/*",
|
"cookiecutter",
|
||||||
"*/static/*",
|
"django",
|
||||||
"docs",
|
"project template",
|
||||||
"venv",
|
"scaffolding",
|
||||||
"*/{{cookiecutter.project_slug}}/*",
|
"skeleton",
|
||||||
]
|
]
|
||||||
|
license = { text = "BSD" }
|
||||||
|
authors = [
|
||||||
|
{ name = "Daniel Roy Greenfeld", email = "pydanny@gmail.com" },
|
||||||
|
]
|
||||||
|
requires-python = "==3.12"
|
||||||
|
classifiers = [
|
||||||
|
"Development Status :: 4 - Beta",
|
||||||
|
"Environment :: Console",
|
||||||
|
"Framework :: Django :: 5.0",
|
||||||
|
"Intended Audience :: Developers",
|
||||||
|
"License :: OSI Approved :: BSD License",
|
||||||
|
"Natural Language :: English",
|
||||||
|
"Programming Language :: Python",
|
||||||
|
"Programming Language :: Python :: 3 :: Only",
|
||||||
|
"Programming Language :: Python :: 3.12",
|
||||||
|
"Programming Language :: Python :: Implementation :: CPython",
|
||||||
|
"Topic :: Software Development",
|
||||||
|
]
|
||||||
|
urls = { Repository = "https://github.com/cookiecutter/cookiecutter-django" }
|
||||||
|
|
||||||
|
|
||||||
# ==== black ====
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 119
|
line-length = 119
|
||||||
target-version = ['py312']
|
target-version = [
|
||||||
|
'py312',
|
||||||
|
]
|
||||||
|
|
||||||
# ==== isort ====
|
# ==== isort ====
|
||||||
|
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
profile = "black"
|
profile = "black"
|
||||||
line_length = 119
|
line_length = 119
|
||||||
known_first_party = [
|
known_first_party = [
|
||||||
"tests",
|
"tests",
|
||||||
"scripts",
|
"scripts",
|
||||||
"hooks",
|
"hooks",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
# ==== djLint ====
|
# ==== djLint ====
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
addopts = "-v --tb=short"
|
||||||
|
norecursedirs = [
|
||||||
|
".tox",
|
||||||
|
".git",
|
||||||
|
"*/migrations/*",
|
||||||
|
"*/static/*",
|
||||||
|
"docs",
|
||||||
|
"venv",
|
||||||
|
"*/{{cookiecutter.project_slug}}/*",
|
||||||
|
]
|
||||||
|
|
||||||
|
# ==== black ====
|
||||||
|
|
||||||
[tool.djlint]
|
[tool.djlint]
|
||||||
blank_line_after_tag = "load,extends"
|
blank_line_after_tag = "load,extends"
|
||||||
close_void_tags = true
|
close_void_tags = true
|
||||||
|
|
|
@ -4,7 +4,7 @@ binaryornot==0.4.4
|
||||||
|
|
||||||
# Code quality
|
# Code quality
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
ruff==0.6.3
|
ruff==0.6.4
|
||||||
django-upgrade==1.21.0
|
django-upgrade==1.21.0
|
||||||
djlint==1.35.2
|
djlint==1.35.2
|
||||||
pre-commit==3.8.0
|
pre-commit==3.8.0
|
||||||
|
|
|
@ -47,7 +47,7 @@ def main() -> None:
|
||||||
print(f"Wrote {changelog_path}")
|
print(f"Wrote {changelog_path}")
|
||||||
|
|
||||||
# Update version
|
# Update version
|
||||||
setup_py_path = ROOT / "setup.py"
|
setup_py_path = ROOT / "pyproject.toml"
|
||||||
update_version(setup_py_path, release)
|
update_version(setup_py_path, release)
|
||||||
print(f"Updated version in {setup_py_path}")
|
print(f"Updated version in {setup_py_path}")
|
||||||
|
|
||||||
|
|
41
setup.py
41
setup.py
|
@ -1,41 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
try:
|
|
||||||
from setuptools import setup
|
|
||||||
except ImportError:
|
|
||||||
from distutils.core import setup
|
|
||||||
|
|
||||||
# We use calendar versioning
|
|
||||||
version = "2024.09.04"
|
|
||||||
|
|
||||||
with open("README.md") as readme_file:
|
|
||||||
long_description = readme_file.read()
|
|
||||||
|
|
||||||
setup(
|
|
||||||
name="cookiecutter-django",
|
|
||||||
version=version,
|
|
||||||
description=("A Cookiecutter template for creating production-ready " "Django projects quickly."),
|
|
||||||
long_description=long_description,
|
|
||||||
author="Daniel Roy Greenfeld",
|
|
||||||
author_email="pydanny@gmail.com",
|
|
||||||
url="https://github.com/cookiecutter/cookiecutter-django",
|
|
||||||
packages=[],
|
|
||||||
license="BSD",
|
|
||||||
zip_safe=False,
|
|
||||||
classifiers=[
|
|
||||||
"Development Status :: 4 - Beta",
|
|
||||||
"Environment :: Console",
|
|
||||||
"Framework :: Django :: 5.0",
|
|
||||||
"Intended Audience :: Developers",
|
|
||||||
"Natural Language :: English",
|
|
||||||
"License :: OSI Approved :: BSD License",
|
|
||||||
"Programming Language :: Python",
|
|
||||||
"Programming Language :: Python :: 3",
|
|
||||||
"Programming Language :: Python :: 3.12",
|
|
||||||
"Programming Language :: Python :: Implementation :: CPython",
|
|
||||||
"Topic :: Software Development",
|
|
||||||
],
|
|
||||||
keywords=(
|
|
||||||
"cookiecutter, Python, projects, project templates, django, "
|
|
||||||
"skeleton, scaffolding, project directory, setup.py"
|
|
||||||
),
|
|
||||||
)
|
|
|
@ -32,14 +32,14 @@ repos:
|
||||||
exclude: '{{cookiecutter.project_slug}}/templates/'
|
exclude: '{{cookiecutter.project_slug}}/templates/'
|
||||||
|
|
||||||
- repo: https://github.com/adamchainz/django-upgrade
|
- repo: https://github.com/adamchainz/django-upgrade
|
||||||
rev: '1.20.0'
|
rev: '1.21.0'
|
||||||
hooks:
|
hooks:
|
||||||
- id: django-upgrade
|
- id: django-upgrade
|
||||||
args: ['--target-version', '5.0']
|
args: ['--target-version', '5.0']
|
||||||
|
|
||||||
# Run the Ruff linter.
|
# Run the Ruff linter.
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.6.3
|
rev: v0.6.4
|
||||||
hooks:
|
hooks:
|
||||||
# Linter
|
# Linter
|
||||||
- id: ruff
|
- id: ruff
|
||||||
|
|
|
@ -32,7 +32,7 @@ uvicorn-worker==0.2.0 # https://github.com/Kludex/uvicorn-worker
|
||||||
django==5.0.9 # pyup: < 5.1 # https://www.djangoproject.com/
|
django==5.0.9 # pyup: < 5.1 # https://www.djangoproject.com/
|
||||||
django-environ==0.11.2 # https://github.com/joke2k/django-environ
|
django-environ==0.11.2 # https://github.com/joke2k/django-environ
|
||||||
django-model-utils==5.0.0 # https://github.com/jazzband/django-model-utils
|
django-model-utils==5.0.0 # https://github.com/jazzband/django-model-utils
|
||||||
django-allauth[mfa]==64.2.0 # https://github.com/pennersr/django-allauth
|
django-allauth[mfa]==64.2.1 # https://github.com/pennersr/django-allauth
|
||||||
django-crispy-forms==2.3 # https://github.com/django-crispy-forms/django-crispy-forms
|
django-crispy-forms==2.3 # https://github.com/django-crispy-forms/django-crispy-forms
|
||||||
crispy-bootstrap5==2024.2 # https://github.com/django-crispy-forms/crispy-bootstrap5
|
crispy-bootstrap5==2024.2 # https://github.com/django-crispy-forms/crispy-bootstrap5
|
||||||
{%- if cookiecutter.frontend_pipeline == 'Django Compressor' %}
|
{%- if cookiecutter.frontend_pipeline == 'Django Compressor' %}
|
||||||
|
|
|
@ -30,7 +30,7 @@ sphinx-rtd-theme==2.0.0 # https://pypi.org/project/sphinx-rtd-theme/
|
||||||
|
|
||||||
# Code quality
|
# Code quality
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
ruff==0.6.3 # https://github.com/astral-sh/ruff
|
ruff==0.6.4 # https://github.com/astral-sh/ruff
|
||||||
coverage==7.6.1 # https://github.com/nedbat/coveragepy
|
coverage==7.6.1 # https://github.com/nedbat/coveragepy
|
||||||
djlint==1.35.2 # https://github.com/Riverside-Healthcare/djLint
|
djlint==1.35.2 # https://github.com/Riverside-Healthcare/djLint
|
||||||
pre-commit==3.8.0 # https://github.com/pre-commit/pre-commit
|
pre-commit==3.8.0 # https://github.com/pre-commit/pre-commit
|
||||||
|
|
Loading…
Reference in New Issue
Block a user