mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-07 13:34:53 +03:00
Add pyproject-fmt for uniform formatting of pyproject.toml
This commit is contained in:
parent
a1864b0429
commit
7087040768
|
@ -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: []
|
||||||
|
|
|
@ -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
|
||||||
|
@ -48,27 +81,3 @@ indent_size = 2
|
||||||
|
|
||||||
[tool.djlint.js]
|
[tool.djlint.js]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
[project]
|
|
||||||
name = "cookiecutter-django"
|
|
||||||
version = "2024.09.02"
|
|
||||||
requires-python = "== 3.12"
|
|
||||||
description = "A Cookiecutter template for creating production-ready Django projects quickly."
|
|
||||||
readme = "README.md"
|
|
||||||
license = { text = "BSD" }
|
|
||||||
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"]
|
|
||||||
urls = { Repository = "https://github.com/cookiecutter/cookiecutter-django" }
|
|
||||||
authors = [{ name = "Daniel Roy Greenfeld", email = "pydanny@gmail.com" }]
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user