mirror of
https://github.com/qurator-spk/modstool.git
synced 2025-06-26 03:59:55 +02:00
⚙ Add pre-commit config + docs
This commit is contained in:
parent
76b36cb0ca
commit
62a02ff7e4
4 changed files with 85 additions and 0 deletions
35
.pre-commit-config.yaml
Normal file
35
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,35 @@
|
|||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v5.0.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-json
|
||||
- id: check-toml
|
||||
- id: check-yaml
|
||||
- id: check-added-large-files
|
||||
- id: check-ast
|
||||
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 25.1.0
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.11.13
|
||||
hooks:
|
||||
- args:
|
||||
- --fix
|
||||
- --exit-non-zero-on-fix
|
||||
id: ruff
|
||||
|
||||
- repo: https://gitlab.com/vojko.pribudic.foss/pre-commit-update
|
||||
rev: v0.7.0
|
||||
hooks:
|
||||
- id: pre-commit-update
|
||||
|
||||
- repo: https://github.com/dhatim/python-license-check
|
||||
rev: 0.9.3
|
||||
hooks:
|
||||
- id: liccheck
|
||||
language: system
|
Loading…
Add table
Add a link
Reference in a new issue