forked from nhoad/flake8-unused-arguments
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
36 lines (31 loc) · 658 Bytes
/
tox.ini
File metadata and controls
36 lines (31 loc) · 658 Bytes
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
36
[tox]
; this is shorthand for py311,py311-mypy,py311-flake8.
envlist = py311{,-mypy,-flake8}
; run pytest to run the tests
[testenv]
deps=
pytest
flake8
commands =
pytest test_unused_arguments.py -m "not release"
; run mypy for type checking
[testenv:py311-mypy]
deps =
mypy
commands=
mypy flake8_unused_arguments.py \
--strict \
--ignore-missing-imports \
--show-error-codes
; run flake8 for basic linting
[testenv:py311-flake8]
deps =
flake8
commands=
flake8 flake8_unused_arguments.py
[flake8]
max-line-length = 88
ignore = E501,W503
[pytest]
markers =
release: mark a test as release related.