Bump pre-commit black to 22.1.0
[integration/test.git] / .pre-commit-config.yaml
1 ---
2 repos:
3   - repo: https://github.com/pre-commit/pre-commit-hooks
4     rev: v4.1.0  # Use the ref you want to point at
5     hooks:
6       - id: trailing-whitespace
7         # this hook will remove any blank lines at the end of a file, whereas the robot hook will add one
8         # so to prevent this conflict we will ignore .robot files in this trailing-whitespace hook
9         exclude: '\.robot'
10
11   - repo: https://github.com/PyCQA/flake8
12     rev: 4.0.1
13     hooks:
14       - id: flake8
15
16   - repo: https://github.com/psf/black
17     rev: 22.1.0
18     hooks:
19       - id: black
20
21   # FIXME: replace pre-commit-robotframework-tidy with robotidy once Python 3.7 is available
22   # https://github.com/MarketSquare/robotframework-tidy
23   - repo: https://github.com/guykisel/pre-commit-robotframework-tidy
24     rev: master
25     hooks:
26     - id: robotframework-tidy-wrapper
27       additional_dependencies: ['robotframework~=4.1.0']
28
29   - repo: https://github.com/jorisroovers/gitlint
30     rev: v0.17.0
31     hooks:
32     - id: gitlint
33
34   - repo: local
35     hooks:
36       - id: rstcheck
37         name: rstcheck
38         entry: rstcheck
39         files: '\.rst'
40         language: python
41         additional_dependencies: [rstcheck, sphinx]