2023-09-26 11:02:47 +03:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
2023-10-04 08:42:16 +03:00
|
|
|
ci:
|
|
|
|
autofix_commit_msg: 'chore: [pre-commit.ci] auto fixes from pre-commit.com hooks'
|
|
|
|
autoupdate_commit_msg: 'chore: [pre-commit.ci] pre-commit autoupdate'
|
|
|
|
|
2023-09-26 11:02:47 +03:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v3.2.0
|
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-added-large-files
|
2023-10-03 14:47:35 +03:00
|
|
|
- repo: https://github.com/johann-petrak/licenseheaders.git
|
|
|
|
rev: v0.8.8
|
|
|
|
hooks:
|
|
|
|
- id: licenseheaders
|
|
|
|
args: ["-t", ".copyright.tmpl", "-cy", "-f", "-d", "statapp"]
|
|
|
|
pass_filenames: false
|
2023-10-04 14:38:42 +03:00
|
|
|
- repo: local
|
2023-10-04 08:42:16 +03:00
|
|
|
hooks:
|
|
|
|
- id: pylint
|
2023-10-04 14:38:42 +03:00
|
|
|
name: pylint
|
|
|
|
entry: pylint
|
|
|
|
language: system
|
|
|
|
types: [python]
|
2023-10-04 08:42:16 +03:00
|
|
|
args:
|
|
|
|
[
|
|
|
|
"-rn", # Only display messages
|
|
|
|
"-sn", # Don't display the score
|
2023-10-04 14:38:42 +03:00
|
|
|
"--rcfile=.pylintrc",
|
2023-10-04 08:42:16 +03:00
|
|
|
]
|