forked from opendatacube/datacube-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
34 lines (34 loc) · 1.33 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
---
repos:
- repo: https://github.com/ambv/black
rev: 20.8b1
hooks:
- id: black
# Update the sha variable with the release version that you want, from the yamllint repo
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.24.2
hooks:
- id: yamllint
args: [-s]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
additional_dependencies:
- dlint # Check common security issues
- flake8-broken-line # Don't escape newlines. (surround in parens or simplify)
- flake8-bugbear # Lint-checks too opinionated for flake8 proper
- flake8-builtins # Don't allow built-in names like list
- flake8-coding # Only UTF-8
- flake8-debugger # Don't commit debugger calls
- flake8-executable # Check shebangs and executable permissions
- flake8-logging-format # Use log arguments, not string format
- flake8-pep3101 # Don't use old string % formatting
- flake8-pytest-style # Avoid common pytest mistakes
- flake8-pytest # Use plain assert, not unittest assertions
- flake8-rst-docstrings # docstring should be valid ReST
# Flake8 python in markdown files
- repo: https://github.com/johnfraney/flake8-markdown
rev: v0.2.0
hooks:
- id: flake8-markdown