chore: remove generated lockfiles, simplify deps, update pre-commit and ignore .python-version

- delete requirements.txt and uv.lock (remove exported/locked artefacts)
- remove .python-version file and add .python-version / uv.lock to .gitignore
- simplify pyproject.toml dependency pins (use package names instead of explicit version specifiers)
- update pre-commit hooks revisions and remove uv-pre-commit hooks (rev bumps for add-trailing-comma, pyupgrade, ruff-pre-commit, actionlint)
This commit is contained in:
Joakim Hellsén 2025-10-15 04:59:44 +02:00
commit 7f961be4dc
6 changed files with 20 additions and 1876 deletions

View file

@ -1,14 +1,7 @@
repos:
# Ensure the lockfile is up-to-date and autoexport uv.lock to requirements.txt
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.8.13
hooks:
- id: uv-lock
- id: uv-export
# Automatically add trailing commas to calls and literals.
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.2.0
rev: v4.0.0
hooks:
- id: add-trailing-comma
@ -38,14 +31,14 @@ repos:
# Run Pyupgrade on all Python files. This will upgrade the code to Python 3.12.
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
rev: v3.21.0
hooks:
- id: pyupgrade
args: ["--py312-plus"]
# An extremely fast Python linter and formatter.
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.10
rev: v0.14.0
hooks:
- id: ruff-format
- id: ruff
@ -53,6 +46,6 @@ repos:
# Static checker for GitHub Actions workflow files.
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
rev: v1.7.8
hooks:
- id: actionlint