2024-10-03 11:01:37 +02:00
|
|
|
# Exclude some file types from automatic code style
|
|
|
|
exclude: \.(json|csv)$
|
|
|
|
repos:
|
2024-11-10 23:00:16 +01:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-12-11 00:21:07 +01:00
|
|
|
rev: v5.0.0
|
2024-11-10 23:00:16 +01:00
|
|
|
hooks:
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-toml
|
|
|
|
- id: check-yaml
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
2024-11-26 00:53:16 +01:00
|
|
|
- id: check-merge-conflict
|
|
|
|
exclude: '\.rst$' # Exclude .rst files
|
2024-11-10 23:00:16 +01:00
|
|
|
- repo: https://github.com/PyCQA/isort
|
|
|
|
rev: 5.13.2
|
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
name: isort
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
rev: v0.6.8
|
|
|
|
hooks:
|
|
|
|
# Run the linter and fix simple issues automatically
|
|
|
|
- id: ruff
|
|
|
|
args: [--fix]
|
|
|
|
# Run the formatter.
|
|
|
|
- id: ruff-format
|
2024-11-26 22:28:05 +01:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
|
|
rev: 'v1.13.0'
|
|
|
|
hooks:
|
|
|
|
- id: mypy
|
|
|
|
additional_dependencies:
|
|
|
|
- "types-requests==2.32.0.20241016"
|
|
|
|
- "pandas-stubs==2.2.3.241009"
|
2024-12-11 00:21:07 +01:00
|
|
|
- "numpy==2.1.3"
|
2024-11-26 22:28:05 +01:00
|
|
|
pass_filenames: false
|
2025-02-12 14:24:17 +01:00
|
|
|
- repo: https://github.com/jackdewinter/pymarkdown
|
|
|
|
rev: main
|
|
|
|
hooks:
|
|
|
|
- id: pymarkdown
|
|
|
|
files: ^docs/
|
|
|
|
exclude: ^docs/_generated
|
|
|
|
args:
|
|
|
|
- --config=docs/pymarkdown.json
|
|
|
|
- scan
|