advent-of-code/.pre-commit-config.yaml

47 lines
1.2 KiB
YAML
Raw Normal View History

2020-12-02 08:58:58 +01:00
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2022-12-02 13:23:09 +01:00
rev: v4.4.0
2020-12-02 08:58:58 +01:00
hooks:
- id: check-ast
2022-12-02 13:35:44 +01:00
- id: check-json
2020-12-02 08:58:58 +01:00
- id: check-toml
2022-12-02 13:35:44 +01:00
- id: check-xml
2020-12-02 08:58:58 +01:00
- id: check-yaml
- id: end-of-file-fixer
- id: check-merge-conflict
2022-12-02 13:35:44 +01:00
- id: pretty-format-json
args:
- --autofix
- --no-sort-keys
2020-12-02 08:58:58 +01:00
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
2022-12-05 18:34:37 +01:00
exclude: ^2022/inputs/day05
2022-12-02 13:35:44 +01:00
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
2022-12-02 13:35:44 +01:00
hooks:
- id: pyupgrade
args: [--py311-plus]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
2020-12-02 08:58:58 +01:00
hooks:
- id: isort
2022-12-02 13:35:44 +01:00
args: [--profile, black]
2020-12-02 08:58:58 +01:00
- repo: https://github.com/psf/black
rev: 23.3.0
2020-12-02 08:58:58 +01:00
hooks:
2022-12-02 13:35:44 +01:00
- id: black
args: [--target-version, py310]
- repo: https://github.com/flakeheaven/flakeheaven
rev: 3.2.1
hooks:
- id: flakeheaven
additional_dependencies:
- flake8-annotations-complexity
- flake8-bandit
- flake8-builtins
- flake8-bugbear
- flake8-comprehensions
- flake8-noqa
- pep8-naming