Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ check-all:
pre-commit run --all-files

test:
pdm run pytest -q -x --ff --nf
env -u PYTHONPATH pdm run pytest -q -x --ff --nf

vtest:
pdm run pytest -vv -x --ff --nf
env -u PYTHONPATH pdm run pytest -vv -x --ff --nf

cov:
rm -rf .coverage
Expand Down
18 changes: 7 additions & 11 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,19 @@

from sybil.parsers.rest import DocTestParser, PythonCodeBlockParser

ignore_collect = sum(
(
[str(p.absolute()) for p in Path().glob(pattern)]
for pattern in ["jsonpath/lark_parser.py"]
),
[],
)
ignore_collect = {
p.absolute()
for pattern in ["jsonpath/lark_parser.py"]
for p in Path().glob(pattern)
}


def pytest_ignore_collect(path, config):
def pytest_ignore_collect(collection_path, config):
"""return True to prevent considering this path for collection.
This hook is consulted for all files and directories prior to calling
more specific hooks.
"""
# https://docs.pytest.org/en/5.4.3/reference.html?highlight=pytest_ignore_collect#_pytest.hookspec.pytest_ignore_collect
# noqa: B950
if str(path) in ignore_collect:
if collection_path.absolute() in ignore_collect:
return True

return False
Expand Down
26 changes: 13 additions & 13 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ lock = ["-S", "inherit_metadata,no_cross_platform"]

[tool.pdm.dev-dependencies]
docs = ["sphinx~=7.4", "livereload~=2.6", "lark~=1.2", "tornado>=6.3.2"]
test = ["pytest-cov~=5.0", "pytest~=8.0", "pexpect~=4.8", "sybil~=8.0"]
test = ["pytest-cov~=5.0", "pytest~=9.0", "pexpect~=4.8", "sybil~=8.0"]
build_readme = ["pygments~=2.8", "docutils>=0.16"]
12 changes: 6 additions & 6 deletions scripts/requirements/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -307,15 +307,15 @@ ptyprocess==0.7.0 \
pygments==2.20.0 \
--hash=sha256:6757cd03768053ff99f3039c1a36d6c0aa0b263438fcab17520b30a303a82b5f \
--hash=sha256:81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176
pytest==8.4.2 \
--hash=sha256:86c0d0b93306b961d58d62a4db4879f27fe25513d4b969df351abdddb3c30e01 \
--hash=sha256:872f880de3fc3a5bdc88a11b39c9710c3497a547cfa9320bc3c5e62fbf272e79
pytest==9.1.0 \
--hash=sha256:41dd9148c08072446394cefd3d79701701335a9f4cae69ba92e39f6c7f5c061c \
--hash=sha256:8ebb0e7888bdf2bdfc602ec51f8f62d50200af37356c74e503c79a94f5c81f32
pytest-cov==5.0.0 \
--hash=sha256:4f0764a1219df53214206bf1feea4633c3b558a2925c8b59f144f682861ce652 \
--hash=sha256:5837b58e9f6ebd335b0f8060eecce69b662415b16dc503883a02f45dfeb14857
requests==2.32.5 \
--hash=sha256:2462f94637a34fd532264295e186976db0f5d453d1cdd31473c85a6a161affb6 \
--hash=sha256:dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf
requests==2.34.2 \
--hash=sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0 \
--hash=sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed
snowballstemmer==3.0.1 \
--hash=sha256:6cd7b3897da8d6c9ffb968a6781fa6532dce9c3618a4b127d920dab764a19064 \
--hash=sha256:6d5eeeec8e9f84d4d56b847692bacf79bc2c8e90c7f80ca4444ff8b6f2e52895
Expand Down
6 changes: 3 additions & 3 deletions scripts/requirements/requirements-docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ packaging==26.0 \
pygments==2.20.0 \
--hash=sha256:6757cd03768053ff99f3039c1a36d6c0aa0b263438fcab17520b30a303a82b5f \
--hash=sha256:81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176
requests==2.32.5 \
--hash=sha256:2462f94637a34fd532264295e186976db0f5d453d1cdd31473c85a6a161affb6 \
--hash=sha256:dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf
requests==2.34.2 \
--hash=sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0 \
--hash=sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed
snowballstemmer==3.0.1 \
--hash=sha256:6cd7b3897da8d6c9ffb968a6781fa6532dce9c3618a4b127d920dab764a19064 \
--hash=sha256:6d5eeeec8e9f84d4d56b847692bacf79bc2c8e90c7f80ca4444ff8b6f2e52895
Expand Down
Loading