summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
blob: a92e501b20a6ca477389af62f85fec1c1edb464f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v2.3.0
  hooks:
  - id: end-of-file-fixer
  - id: trailing-whitespace
  - id: no-commit-to-branch
    args: ['--branch', 'main']
- repo: https://github.com/psf/black
  rev: 22.10.0
  hooks:
  - id: black
    args: ['--check', '--diff', '.']
- repo: https://github.com/charliermarsh/ruff-pre-commit
  rev: v0.0.254
  hooks:
  - id: ruff
    args: ['--ignore=E741,E501', '.']
- repo: https://gitlab.freedesktop.org/freedesktop/ci-templates.git
  rev: 7402203527f61d6473d55ad701172d1606508c52
  hooks:
  - id: check-commits
  - id: generate-template