forked from distributed-system-analysis/pbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
30 lines (30 loc) · 992 Bytes
/
.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
---
# `black` complains loudly that fio-histo-log-pctile.py is not a python file,
# which it isn't, and also complains about the long forgotten demo.py file, so
# we ignore them both.
#
# We must duplicate these excludes also listed in pyproject.toml because the
# commands below are explicitly invoked on the files added or changed. This
# exclude prevents those checks being run.
exclude: (agent/bench-scripts/test-bin/fio-histo-log-pctiles\.py|web-server/v0\.3/demo\.py)
repos:
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
name: flake8 (python3)
language_version: python3
- repo: https://github.com/python/black.git
rev: 22.12.0
hooks:
- id: black
name: black (python3)
language_version: python3
args: ["--check"]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python3)
language_version: python3
args: ["--check"]