Skip to content

Commit df5dbc0

Browse files
Secrustomchristie
andauthored
Move configuration of tools to pyproject.toml (#2686)
Co-authored-by: Tom Christie <[email protected]>
1 parent 746eaef commit df5dbc0

File tree

3 files changed

+27
-23
lines changed

3 files changed

+27
-23
lines changed

pyproject.toml

+26
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,29 @@ line-length = 120
9999

100100
[tool.ruff.isort]
101101
combine-as-imports = true
102+
103+
[tool.mypy]
104+
ignore_missing_imports = true
105+
strict = true
106+
107+
[[tool.mypy.overrides]]
108+
module = "tests.*"
109+
disallow_untyped_defs = false
110+
check_untyped_defs = true
111+
112+
[tool.pytest.ini_options]
113+
addopts = "-rxXs"
114+
filterwarnings = [
115+
"error",
116+
"ignore: You seem to already have a custom sys.excepthook handler installed. I'll skip installing Trio's custom handler, but this means MultiErrors will not show full tracebacks.:RuntimeWarning",
117+
# See: https://github.com/agronholm/anyio/issues/508
118+
"ignore: trio.MultiError is deprecated since Trio 0.22.0:trio.TrioDeprecationWarning"
119+
]
120+
markers = [
121+
"copied_from(source, changes=None): mark test as copied from somewhere else, along with a description of changes made to accodomate e.g. our test setup",
122+
"network: marks tests which require network connection. Used in 3rd-party build environments that have network disabled."
123+
]
124+
125+
[tool.coverage.run]
126+
omit = ["venv/*", "httpx/_compat.py"]
127+
include = ["httpx/*", "tests/*"]

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ twine==4.0.2
2020

2121
# Tests & Linting
2222
black==23.3.0
23-
coverage==7.2.2
23+
coverage[toml]==7.2.2
2424
cryptography==40.0.2
2525
mypy==1.0.1
2626
types-certifi==2021.10.8.2

setup.cfg

-22
This file was deleted.

0 commit comments

Comments
 (0)