Update pre-commit configuration and dependencies

- Added isort and ruff as pre-commit hooks for code formatting and linting.
- Removed main.py file as it is no longer needed.
- Updated pyproject.toml to include new development dependencies: ruff and ty.
- Updated uv.lock to reflect new package versions and added ruff and ty packages.
This commit is contained in:
Fundor333
2026-03-30 22:41:52 +02:00
parent bc0c7c9237
commit e031a66740
4 changed files with 135 additions and 62 deletions

View File

@@ -7,16 +7,6 @@ requires-python = ">=3.12"
dependencies = ["django>=5.2.5"]
[dependency-groups]
dev = [
"git-cliff>=2.12.0",
"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?$'
@@ -70,6 +60,18 @@ exclude = [".git", "*migrations*", ".tox", ".venv", ".env"]
extend-ignore = ["E501", "W503", "F403", "C901", "B904"]
[dependency-groups]
dev = [
"pre-commit>=4.3.0",
"pylint>=3.3.8",
"pylint-django>=2.6.1",
"pytest>=8.4.1",
"ruff>=0.14.14",
"git-cliff>=2.12.0",
"ty>=0.0.20",
]
[tool.git-cliff.changelog]
# A Tera template to be rendered as the changelog's header.
# See https://keats.github.io/tera/docs/#introduction
@@ -136,3 +138,21 @@ topo_order = false
# Order of commits in each group/release within the changelog.
# Allowed values: newest, oldest
sort_commits = "oldest"
[tool.ty.rules]
unresolved-attribute = "ignore"
unresolved-import = "ignore"
division-by-zero = "warn"
deprecated = "error"
[tool.ty.src]
# Remove `build` from the excluded directories.
exclude = [
"!**/build/",
"**/dist/",
"**/*.egg-info/",
".env/",
"venv/",
".venv/",
]