Skip to content

Commit d28de7f

Browse files
committed
Move all settings to pyproject.toml, add pytest to test requirements
1 parent 2bec640 commit d28de7f

File tree

3 files changed

+39
-12
lines changed

3 files changed

+39
-12
lines changed

pyproject.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,37 @@ dependencies = [
2424
[build-system]
2525
requires = ["hatchling"]
2626
build-backend = "hatchling.build"
27+
28+
[tool.flake8]
29+
exclude = [
30+
".git",
31+
".mypy_cache",
32+
"__pycache__",
33+
"env",
34+
"build",
35+
"dist",
36+
]
37+
38+
[tool.mypy]
39+
strict = true
40+
files = ["."]
41+
exclude = [
42+
".git",
43+
".mypy_cache",
44+
"__pycache__",
45+
"env",
46+
"build",
47+
"dist",
48+
]
49+
50+
[tool.pytest.ini_options]
51+
norecursedirs = [
52+
".git",
53+
".mypy_cache",
54+
"__pycache__",
55+
"env",
56+
"build",
57+
"dist",
58+
]
59+
addopts = "-Werror --cov=samp_query --cov-report=term-missing --cov-fail-under=100"
60+
trio_mode = true

requirements-test.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
flake8
2+
# See https://github.com/PyCQA/flake8/issues/234
3+
flake8-pyproject
24
mypy
35
trio-typing
6+
pytest
7+
pytest-cov
8+
pytest-trio

setup.cfg

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

0 commit comments

Comments
 (0)