forked from olofk/fusesoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
35 lines (35 loc) · 1.15 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Configuration for pre-commit (https://pre-commit.com/), a tool to run
# formatters, linters, and other productivity tools before a commit.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: requirements-txt-fixer
- id: check-yaml
types: [file]
files: ^tests/capi2_cores/.+\.core$
- id: end-of-file-fixer
# Test golden references
exclude: ^tests/(.+\.(info|patch)|test_provider/.+\.v)
- id: trailing-whitespace
# Test golden references
exclude: ^tests/(.+\.(info|patch)|test_provider/.+\.v)
- repo: https://github.com/asottile/pyupgrade
rev: v2.7.4
hooks:
- id: pyupgrade
# for now don't force to change from %-operator to {}
args: [--keep-percent-format, --py3-plus, --py36-plus]
- repo: https://github.com/PyCQA/isort
rev: "5.7.0"
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black