Slawek Kaplonski | 58016a6 | 2024-05-02 14:14:01 +0200 | [diff] [blame] | 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 | 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)/.*$' |