Skip to content

Commit 88e2427

Browse files
committed
Consolidate mypy and pytest config into pyproject.toml
1 parent 0727918 commit 88e2427

File tree

4 files changed

+19
-14
lines changed

4 files changed

+19
-14
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
recursive-include tests *.py
22
recursive-include immutables *.py *.c *.h *.pyi
33
include LICENSE* NOTICE README.rst bench.png
4-
include mypy.ini immutables/py.typed
4+
include immutables/py.typed

mypy.ini

Lines changed: 0 additions & 9 deletions
This file was deleted.

pyproject.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,21 @@ requires-python = ">=3.6"
44
[build-system]
55
requires = ["setuptools>=42", "wheel"]
66
build-backend = "setuptools.build_meta"
7+
8+
[tool.pytest.ini_options]
9+
minversion = "6.0"
10+
addopts = "--capture=no --assert=plain --strict-markers --tb=native --import-mode=importlib"
11+
testpaths = "tests"
12+
filterwarnings = "default"
13+
14+
[tool.mypy]
15+
incremental = true
16+
strict = true
17+
18+
[[tool.mypy.overrides]]
19+
module = "immutables.map"
20+
ignore_errors = true
21+
22+
[[tool.mypy.overrides]]
23+
module = "immutables._testutils"
24+
ignore_errors = true

pytest.ini

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)