mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
The reason behind this is to make checking and formatting consistent between contributors and CI. It is also easier to incorporate new hooks, since many tools already provides pre-commit hooks In addition this commit also adds `black` and `autoflake` along with a few other useful hooks from the `pre-commit-hooks` repository.
37 lines
808 B
YAML
37 lines
808 B
YAML
exclude: ^migrations/versions
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.3.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
- id: check-case-conflict
|
|
- id: check-merge-conflict
|
|
- id: check-toml
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- id: debug-statements
|
|
|
|
- repo: https://github.com/myint/autoflake
|
|
rev: v1.4
|
|
hooks:
|
|
- id: autoflake
|
|
args:
|
|
- --in-place
|
|
- --remove-all-unused-imports
|
|
- --ignore-init-module-imports
|
|
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.10.1
|
|
hooks:
|
|
- id: isort
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.6.0
|
|
hooks:
|
|
- id: black
|
|
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: 5.0.4
|
|
hooks:
|
|
- id: flake8
|