Skip to content

Commit 669fa20

Browse files
committed
build: setup updated
1 parent 4e2b8b9 commit 669fa20

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ repos:
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- repo: https://github.com/psf/black
9-
rev: 19.3b0
9+
rev: 21.9b0
1010
hooks:
1111
- id: black

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,7 @@ black = "^21.9b0"
5555
[build-system]
5656
requires = ["poetry>=0.12"]
5757
build-backend = "poetry.masonry.api"
58+
59+
[tool.black]
60+
line-length = 120
61+
target-version = ['py38']

tox.ini

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ commands =
1616

1717
[flake8]
1818
max-line-length = 120
19-
ignore = E722, E731, E741, W504
19+
ignore = E722, E731, E741, W504, E203, W503
2020
exclude =
2121
build/,
2222
dist/,
@@ -32,9 +32,14 @@ exclude =
3232
venv/,
3333
.git/
3434

35-
[testenv:flake8]
36-
deps = flake8
37-
commands = flake8
35+
[testenv:lint]
36+
deps =
37+
flake8
38+
black
39+
40+
commands =
41+
flake8
42+
black src --check
3843

3944
[travis]
4045
python =

0 commit comments

Comments
 (0)