feed2fedi/.pre-commit-config.yaml
2023-05-16 09:54:01 +10:00

58 lines
1.4 KiB
YAML

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: debug-statements
language_version: python3
- repo: https://github.com/rstcheck/rstcheck
rev: v6.1.2
hooks:
- id: rstcheck
additional_dependencies:
- "Sphinx"
args:
- "--ignore-messages"
- "Duplicate implicit target name"
- "--ignore-messages"
- "Unknown directive type "
- "--report-level"
- "WARNING"
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
language_version: python3
args:
- "--safe"
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.267'
hooks:
- id: ruff
args:
- "--fix"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.3.0
hooks:
- id: mypy
exclude: "docs/"
additional_dependencies:
- "types-toml"
- "types-aiofiles"
- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
rev: v0.1.0
hooks:
- id: dockerfilelint
stages: [commit]