mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-23 18:02:34 +02:00
107 lines
2.2 KiB
YAML
107 lines
2.2 KiB
YAML
default_language_version:
|
|
python: python3.11
|
|
|
|
default_stages:
|
|
- pre-commit
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: end-of-file-fixer
|
|
exclude: (.txt$|.ipynb$)
|
|
- id: trailing-whitespace
|
|
exclude: (.txt$|README.md$)
|
|
- id: check-yaml
|
|
- id: check-json
|
|
- id: check-toml
|
|
- id: check-xml
|
|
- id: check-ast
|
|
- id: check-added-large-files
|
|
args: [--enforce-all --maxkb=50000]
|
|
- id: name-tests-test
|
|
- id: detect-private-key
|
|
- id: check-case-conflict
|
|
- id: check-symlinks
|
|
- id: check-docstring-first
|
|
- id: mixed-line-ending
|
|
- id: destroyed-symlinks
|
|
- id: debug-statements
|
|
- id: pretty-format-json
|
|
args: [--autofix]
|
|
exclude: (\.ipynb$)
|
|
- id: no-commit-to-branch
|
|
args: [--branch, main]
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
# Ruff version.
|
|
rev: v0.1.14
|
|
hooks:
|
|
- id: ruff
|
|
args: [--fix, --exit-non-zero-on-fix]
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 23.12.1
|
|
hooks:
|
|
- id: black
|
|
args: [--config=pyproject.toml]
|
|
- id: black-jupyter
|
|
args: [--config=pyproject.toml]
|
|
|
|
|
|
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
|
rev: v2.12.0
|
|
hooks:
|
|
- id: pretty-format-ini
|
|
args: [--autofix]
|
|
- id: pretty-format-yaml
|
|
args: [--autofix]
|
|
exclude: (dependabot.yml$)
|
|
- id: pretty-format-toml
|
|
args: [--autofix]
|
|
exclude: (^poetry.lock$)
|
|
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.8.0
|
|
hooks:
|
|
- id: mypy
|
|
additional_dependencies:
|
|
- pandas==2.*
|
|
- pandas-stubs==2.0.*
|
|
- types-requests
|
|
- sqlalchemy[mypy]==1.4.49
|
|
- types-tqdm
|
|
- types-setuptools
|
|
- types-requests
|
|
- types-pyOpenSSL
|
|
- types-cachetools
|
|
- types-six
|
|
- loguru-mypy
|
|
|
|
- repo: https://github.com/frnmst/md-toc
|
|
rev: 8.2.2
|
|
hooks:
|
|
- id: md-toc
|
|
|
|
- repo: https://github.com/python-poetry/poetry
|
|
rev: 1.7.0
|
|
hooks:
|
|
- id: poetry-check
|
|
- id: poetry-install
|
|
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks-java
|
|
rev: 1.3.10
|
|
hooks:
|
|
- id: validate-html
|
|
|
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
rev: 0.27.3
|
|
hooks:
|
|
- id: check-github-workflows
|
|
|
|
- repo: https://github.com/MarcoGorelli/auto-walrus
|
|
rev: v0.2.2
|
|
hooks:
|
|
- id: auto-walrus
|