40 lines
982 B
YAML
40 lines
982 B
YAML
# .pre-commit-config.yaml
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v3.4.0 # Use the latest version
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-json
|
|
- id: check-added-large-files
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 24.4.2 # Use the latest version
|
|
hooks:
|
|
- id: black
|
|
- repo: https://github.com/PyCQA/autoflake
|
|
rev: v2.3.1
|
|
hooks:
|
|
|
|
- id: autoflake
|
|
args: [--remove-all-unused-imports, --remove-unused-variables]
|
|
- repo: https://github.com/hhatto/autopep8
|
|
rev: v2.3.1 # select the tag or revision you want, or run `pre-commit autoupdate`
|
|
hooks:
|
|
- id: autopep8
|
|
- repo: local
|
|
hooks:
|
|
- id: pylint
|
|
name: pylint
|
|
entry: pylint
|
|
language: system
|
|
types: [python]
|
|
require_serial: true
|
|
args:
|
|
[
|
|
"-rn", # Only display messages
|
|
"-sn", # Don't display the score
|
|
]
|