forked from sandialabs/seat-qgis-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
63 lines (63 loc) · 1.69 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
52
53
54
55
56
57
58
59
60
61
62
63
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
args: ["--maxkb=5000"]
- id: check-ast
- id: check-case-conflict
- id: end-of-file-fixer
- id: mixed-line-ending
- id: requirements-txt-fixer
- id: trailing-whitespace
# Markdown lint
- repo: https://github.com/markdownlint/markdownlint
rev: v0.11.0
hooks:
- id: markdownlint
args: [-t, ~line_length, -r, ~MD033]
# Add trailing commas to calls and literals.
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.3.0
hooks:
- id: add-trailing-comma
args: [--py36-plus]
# Upgrade syntax for newer versions of the language
- repo: https://github.com/asottile/pyupgrade
rev: v2.38.2
hooks:
- id: pyupgrade
# Sort imports
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
args: [--profile=black]
# Format Python docstrings
- repo: https://github.com/DanielNoord/pydocstringformatter
rev: v0.7.2
hooks:
- id: pydocstringformatter
# Remove unused imports and variables
- repo: https://github.com/PyCQA/autoflake
rev: v1.6.1
hooks:
- id: autoflake
args:
[
--remove-all-unused-imports,
--ignore-init-module-imports,
--remove-unused-variables,
]
# Code styling
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
# PEP 8 style guide, error and complexity checks
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
args: [--config=./.github/linters/.flake8]