Migrates from poetry to uv for dependency management. This change includes: - Removal of the old .flake8 and pyproject.toml - Addition of a new pyproject.toml - Addition of a main.py file to run the app - Addition of a makefile for automation - Updates pre-commit hooks to the latest versions. - Introduction of uv.lock
70 lines
1.5 KiB
TOML
70 lines
1.5 KiB
TOML
[project]
|
|
name = "django-template"
|
|
version = "0.1.0"
|
|
description = "Add your description here"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
dependencies = ["django>=5.2.5"]
|
|
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pre-commit>=4.3.0",
|
|
"pylint>=3.3.8",
|
|
"pylint-django>=2.6.1",
|
|
"pytest>=8.4.1",
|
|
]
|
|
|
|
|
|
[tool.black]
|
|
line-length = 79
|
|
include = '\.pyi?$'
|
|
exclude = '''
|
|
/(
|
|
\.git
|
|
| \.hg
|
|
| \.mypy_cache
|
|
| \.tox
|
|
| \.venv
|
|
| _build
|
|
| buck-out
|
|
| build
|
|
| dist
|
|
)/
|
|
'''
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
|
|
[tool.skjold]
|
|
sources = ["pyup", "gemnasium"] # Sources to check against.
|
|
report_only = true # Report only, always exit with zero.
|
|
cache_dir = '.skylt_cache' # Cache location (default: `~/.skjold/cache`).
|
|
cache_expires = 86400 # Cache max. age.
|
|
verbose = true # Be verbose.
|
|
|
|
[tool.ruff]
|
|
# Set the maximum line length to 79.
|
|
line-length = 79
|
|
|
|
[tool.ruff.lint]
|
|
# Add the `line-too-long` rule to the enforced rule set. By default, Ruff omits rules that
|
|
# overlap with the use of a formatter, like Black, but we can override this behavior by
|
|
# explicitly adding the rule.
|
|
extend-select = [
|
|
"E501",
|
|
"UP", # pyupgrade
|
|
]
|
|
|
|
[tool.ruff.lint.pydocstyle]
|
|
convention = "google"
|
|
|
|
|
|
[tool.flake8]
|
|
# Check that this is aligned with your other tools like Black
|
|
max-line-length = 120
|
|
max-complexity = 18
|
|
exclude = [".git", "*migrations*", ".tox", ".venv", ".env"]
|
|
# Use extend-ignore to add to already ignored checks which are anti-patterns like W503.
|
|
extend-ignore = ["E501", "W503", "F403", "C901", "B904"]
|