Skip to content

Commit d123e76

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Add pre-commit configuration"
2 parents 0b4c9ff + 7eba634 commit d123e76

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.pre-commit-config.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
default_language_version:
3+
# force all unspecified python hooks to run python3
4+
python: python3
5+
repos:
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v4.5.0
8+
hooks:
9+
- id: trailing-whitespace
10+
- id: mixed-line-ending
11+
args: ['--fix', 'lf']
12+
exclude: '.*\.(svg)$'
13+
- id: check-byte-order-marker
14+
- id: check-executables-have-shebangs
15+
- id: check-merge-conflict
16+
- id: debug-statements
17+
- id: check-yaml
18+
- repo: https://github.com/lucas-c/pre-commit-hooks
19+
rev: v1.5.4
20+
hooks:
21+
- id: remove-tabs
22+
exclude: '.*\.(svg)$'
23+
- repo: local
24+
hooks:
25+
- id: flake8
26+
name: flake8
27+
additional_dependencies:
28+
- hacking>=6.1.0,<6.2.0
29+
language: python
30+
entry: flake8
31+
files: '^.*\.py$'
32+
exclude: '^(doc|releasenotes|tools)/.*$'
33+
# todo(slaweq): enable pylint check once all issues in the current code will
34+
# be solved
35+
# - id: pylint
36+
# name: pylint
37+
# entry: pylint
38+
# files: ^ovn_octavia_provider/
39+
# language: system
40+
# types: [python]
41+
# args: ['--rcfile=.pylintrc', '--output-format=colorized']

0 commit comments

Comments
 (0)