linter &c

This commit is contained in:
2025-04-24 01:05:49 -07:00
parent 0b13bb3692
commit f453222bf7
5 changed files with 71 additions and 24 deletions

25
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,25 @@
# .pre-commit-config.yaml
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.5 # Check for the latest version
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.11.0 # Check for the latest version
hooks:
- id: reorder-python-imports
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0 # Check for the latest version
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: requirements-txt-fixer
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0 # Check for the latest version
hooks:
- id: flake8