Skip to content

Commit f9e5d3c

Browse files
build: adding lint target to tox
1 parent d4fb42d commit f9e5d3c

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

tox.ini

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
min_version = 4.0
33
env_list =
44
unittests
5-
genproto
65
build
6+
lint
77
isolated_build = true
88

99
[tox:.package]
@@ -43,6 +43,13 @@ commands =
4343
coverage report -m
4444
coverage xml
4545

46+
[testenv:lint]
47+
extras = tests
48+
commands =
49+
flake8 --docstring-convention=numpy
50+
black --line-length 90 --check --diff .
51+
52+
4653
[testenv:flake8]
4754
commands=flake8 {posargs}
4855

@@ -61,6 +68,7 @@ application-import-names = etcd3
6168
max-complexity = 10
6269
# TODO add docstrings for public methods, modules, etc
6370
ignore = D1, W503
71+
max-line-length = 90
6472

6573
[pytest]
6674
tmp_path_retention_policy = none

0 commit comments

Comments
 (0)