generated from renn0xtek9/python-template-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
51 lines (51 loc) · 1.35 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# https://pre-commit.com/hooks.html
default_stages: [commit]
repos:
- repo: meta
hooks:
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-shebang-scripts-are-executable
- id: check-docstring-first
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint
args: ["--fix"]
- repo: https://github.com/crate-ci/typos
rev: v1.17.0
hooks:
- id: typos
files: |
(?x)
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
language_version: python3
args: [--preview, --quiet, --config, pyproject.toml]
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
args: [--max-line-length=1024, --extend-ignore=E203]
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
- repo: local
hooks:
- id: pylint
name: pylint
entry: /bin/bash -c "~/.local/bin/pylint --load-plugins=pylint.extensions.docparams ./mirror_playlists/ $*"
language: script
types: [python]
- repo: https://github.com/PyCQA/isort
rev: 5.13.0
hooks:
- id: isort