Skip to content

Commit fffa3f5

Browse files
committed
Add new hooks
1 parent bbf711b commit fffa3f5

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ repos:
2020
rev: v1.0.1
2121
hooks:
2222
- id: rst-linter
23+
- repo: https://github.com/pycqa/isort
24+
rev: 5.13.2
25+
hooks:
26+
- id: isort
27+
args: ['reportportal_client', 'tests']
28+
- repo: https://github.com/psf/black
29+
rev: 24.10.0
30+
hooks:
31+
- id: black
32+
args: ['reportportal_client', 'tests']
2333
- repo: https://github.com/pycqa/flake8
2434
rev: 5.0.4
2535
hooks:

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ requires = [
77
"importlib-metadata"
88
]
99
build-backend = "setuptools.build_meta"
10+
11+
[tool.isort]
12+
line_length = 120
13+
14+
[tool.black]
15+
line-length = 120
16+
target-version = ['py310']

0 commit comments

Comments
 (0)