blob: 2ff8c11831454a88960609d29749efed0308b01b [file] [log] [blame]
Slawek Kaplonski58016a62024-05-02 14:14:01 +02001---
2default_language_version:
3 # force all unspecified python hooks to run python3
4 python: python3
5repos:
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 files: .*\.(yaml|yml)$
19 - repo: https://github.com/lucas-c/pre-commit-hooks
20 rev: v1.5.4
21 hooks:
22 - id: remove-tabs
23 exclude: '.*\.(svg)$'
24 - repo: local
25 hooks:
26 - id: flake8
27 name: flake8
28 additional_dependencies:
29 - hacking>=3.2.0,<3.3.0
30 language: python
31 entry: flake8
32 files: '^.*\.py$'
33 exclude: '^(doc|releasenotes|tools)/.*$'