Skip to content

Commit 9214809

Browse files
committed
🔧: configure Sybil for tests
Signed-off-by: Nathaniel Starkman <nstarman@users.noreply.github.com>
1 parent 66b55f9 commit 9214809

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

‎conftest.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""Pytest configuration file."""
2+
3+
from sybil import Sybil
4+
from sybil.parsers.doctest import DocTestParser
5+
6+
readme_tester = Sybil(
7+
parsers=[DocTestParser()],
8+
pattern="README.md",
9+
)
10+
11+
python_file_tester = Sybil(
12+
parsers=[DocTestParser()],
13+
pattern="src/**/*.py",
14+
)
15+
16+
pytest_collect_file = (readme_tester + python_file_tester).pytest()

‎pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ version_tuple = {version_tuple!r}
8585
warn_unreachable = true
8686
warn_unused_configs = true
8787

88+
[[tool.mypy.overrides]]
89+
module = "sybil.*"
90+
ignore_missing_imports = true
91+
8892

8993
[tool.pytest.ini_options]
9094
addopts = [

0 commit comments

Comments
 (0)