funkwhale/.pre-commit-config.yaml

60 wiersze
1.4 KiB
YAML
Czysty Zwykły widok Historia

2022-11-18 20:27:31 +00:00
---
# 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
2022-11-18 20:27:31 +00:00
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: destroyed-symlinks
- id: check-json
- id: check-yaml
- id: check-xml
- id: check-toml
- id: check-vcs-permalinks
- id: check-merge-conflict
- id: end-of-file-fixer
2022-11-18 21:12:21 +00:00
exclude: ^(docs/locales/.*/LC_MESSAGES)
2022-11-18 20:27:31 +00:00
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v3.2.2
hooks:
- id: pyupgrade
args: [--py37-plus]
exclude: ^(api/.*/migrations/.*)
2022-11-19 14:27:03 +00:00
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
2022-11-19 14:58:57 +00:00
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
2022-11-18 22:19:03 +00:00
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
files: \.(md|yml|yaml|json)$
2022-11-19 16:10:10 +00:00
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
additional_dependencies: [tomli]