Files
grid_application/.pre-commit-config.yaml
quadfaselt b307b8327a feat(project_setup): Initialize project (#1)
Setting up python project files using poetry. A basic environment
is installed including dash for the app that will be implemented
later.

Also contains several dev tools, including pre-commit hooks.

Co-authored-by: Tobias Quadfasel <tobias.loesche@studium.uni-hamburg.de>
Reviewed-on: #1
2024-08-29 14:08:09 +00:00

75 lines
1.5 KiB
YAML

default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: check-yaml
- id: sort-simple-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
language_version: python3.12
args:
- --config=pyproject.toml
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
language_version: python3.12
args:
- --max-line-length=100
- --extend-ignore=E203
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
- id: mypy
additional_dependencies: [
types-requests,
]
args:
- --config=pyproject.toml
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
additional_dependencies: [tomli]
args: [--in-place, --black]
- repo: https://github.com/numpy/numpydoc
rev: v1.7.0
hooks:
- id: numpydoc-validation
- repo: https://github.com/JangasCodingplace/commit-prefix-pre-commit
rev: v0.0.3-beta
hooks:
- id: commit-prefix
args:
- --allow-main=true
stages: [ commit-msg ]
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.2.0
hooks:
- id: conventional-pre-commit
stages: [ commit-msg ]
args: [ ]