Sets up project with uv and pre-commit hooks
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
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
fail_fast: true
|
||||
repos:
|
||||
- repo: https://github.com/adamchainz/djade-pre-commit
|
||||
rev: "1.0.0" # Replace with the latest tag on GitHub
|
||||
rev: "1.4.0" # Replace with the latest tag on GitHub
|
||||
hooks:
|
||||
- id: djade
|
||||
args: [--target-version, "4.2"] # Replace with Django version
|
||||
- repo: https://github.com/asottile/reorder_python_imports
|
||||
rev: v3.12.0
|
||||
rev: v3.15.0
|
||||
hooks:
|
||||
- id: reorder-python-imports
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 23.12.1
|
||||
rev: 25.1.0
|
||||
hooks:
|
||||
- id: black
|
||||
language_version: python3.9
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.5.0
|
||||
rev: v6.0.0
|
||||
hooks:
|
||||
- id: check-merge-conflict
|
||||
- id: detect-private-key
|
||||
@@ -34,7 +34,7 @@ repos:
|
||||
- id: python-no-log-warn
|
||||
- id: python-use-type-annotations
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v3.15.0
|
||||
rev: v3.20.0
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args: [ --py311-plus ]
|
||||
@@ -43,6 +43,6 @@ repos:
|
||||
hooks:
|
||||
- id: scss-lint
|
||||
- repo: https://github.com/pycqa/flake8
|
||||
rev: '6.0.0' # pick a git hash / tag to point to
|
||||
rev: '7.3.0' # pick a git hash / tag to point to
|
||||
hooks:
|
||||
- id: flake8
|
||||
|
||||
Reference in New Issue
Block a user