Skip to content

Commit 6471a2e

Browse files
committed
move mypy config to pyproject.toml
1 parent 22d9041 commit 6471a2e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

pyproject.toml

+13
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,16 @@ requires = [
55
]
66

77
build-backend = "setuptools.build_meta"
8+
9+
[tool.mypy]
10+
files = [
11+
"wcmatch/*.py"
12+
]
13+
strict = true
14+
show_error_codes = true
15+
16+
[[tool.mypy.overrides]]
17+
module = [
18+
'wcmatch.glob.*'
19+
]
20+
warn_unused_ignores = false

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ deps=
1010
-r requirements/setup.txt
1111
-r requirements/test.txt
1212
commands=
13-
{envbindir}/mypy --strict --show-error-codes --no-warn-unused-ignores wcmatch
13+
{envbindir}/mypy
1414
{envbindir}/py.test --cov wcmatch --cov-append tests
1515
{envbindir}/coverage html -d {envtmpdir}/coverage
1616
{envbindir}/coverage xml

0 commit comments

Comments
 (0)