🔧 upgrade tooling, use pyproject.toml

This commit is contained in:
krmax44 2024-09-02 16:10:49 +02:00 committed by Max
parent 250888879f
commit ff9c0b42ec
4 changed files with 44 additions and 92 deletions

View file

@ -1,22 +1,24 @@
repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.3
hooks:
- id: isort
args: ['--profile', 'black', '--filter-files']
- repo: https://github.com/psf/black
rev: '23.9.1' # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
- repo: https://github.com/pycqa/flake8
rev: '6.1.0' # pick a git hash / tag to point to
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear==21.4.3]
exclude: ^.*/migrations/.*$
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.33.0
rev: v1.35.2
hooks:
- id: djlint-reformat-django
- id: djlint-django
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.9.1
hooks:
- id: eslint
files: \.(js|ts|vue)?$
types: [file]
args: [--no-warn-ignored]
entry: npx eslint
additional_dependencies:
- okfde/eslint-config-froide