python3 changes in openstack scripts
[integration/test.git] / .pre-commit-config.yaml
1 ---
2 repos:
3   - repo: https://github.com/pre-commit/pre-commit-hooks
4     rev: v2.4.0  # Use the ref you want to point at
5     hooks:
6       - id: flake8
7         language_version: python3
8         additional_dependencies: ['flake8~=3.5.0']
9       - id: trailing-whitespace
10         # this hook will remove any blank lines at the end of a file, whereas the robot hook will add one
11         # so to prevent this conflict we will ignore .robot files in this trailing-whitespace hook
12         exclude: '\.robot'
13
14   - repo: https://github.com/pre-commit/mirrors-autopep8
15     rev: v1.4.4
16     hooks:
17       - id: autopep8
18
19   - repo: https://github.com/guykisel/pre-commit-robotframework-tidy
20     rev: master
21     hooks:
22     - id: robotframework-tidy-wrapper
23       additional_dependencies: ['robotframework']
24
25   - repo: https://github.com/jorisroovers/gitlint
26     rev: v0.11.0
27     hooks:
28     - id: gitlint
29
30   - repo: local
31     hooks:
32       - id: rstcheck
33         name: rstcheck
34         entry: rstcheck
35         files: '\.rst'
36         language: python
37         additional_dependencies: [rstcheck, sphinx]