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
Binary file modified .coverage
Binary file not shown.
2 changes: 1 addition & 1 deletion .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:

- name: Install test dependencies
run: |
pip install pytest defusedxml
pip install pytest pytest-cov defusedxml xmltodict
pip install -e .

- name: Verify import
Expand Down
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: clean clean-test clean-pyc clean-build docs help
.PHONY: clean clean-test clean-pyc clean-build docs help test-rust test-all
.DEFAULT_GOAL := help

define BROWSER_PYSCRIPT
Expand Down Expand Up @@ -60,11 +60,16 @@ typecheck: ## check types with ty
uvx ty check json2xml tests

test: ## run tests quickly with the default Python
pytest --cov=json2xml --cov-report=xml:coverage/reports/coverage.xml --cov-report=term -xvs tests -n auto
pytest --cov=json2xml --cov-report=xml:coverage/reports/coverage.xml --cov-report=term -xvs tests

test-simple: ## run tests without coverage
pytest -vv tests

test-rust: ## run Rust tests
cd rust && cargo test --no-default-features

test-all: test test-rust ## run all tests (Python and Rust)

check-all: lint typecheck test ## run all checks (lint, typecheck, test)

coverage: ## check code coverage quickly with the default Python
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sphinx-autodoc-typehints==3.6.0
mock==5.2.0
autodoc==0.5.0

tornado==6.5.4
tornado==6.5.5
jinja2==3.1.6
idna==3.11
starlette==0.50.0
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ starlette==0.50.0
# via
# -r requirements.in
# sphinx-autobuild
tornado==6.5.4
tornado==6.5.5
# via -r requirements.in
typing-extensions==4.12.2
# via beautifulsoup4
Expand Down
6 changes: 4 additions & 2 deletions tests/test_rust_dicttoxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"""
from __future__ import annotations

from typing import Any

import pytest

# Check if Rust extension is available
Expand Down Expand Up @@ -494,8 +496,8 @@ def test_large_list(self):

def test_deeply_nested_structure(self):
"""Ensure deep nesting doesn't crash."""
data = {"level": None}
current = data
data: dict[str, Any] = {"level": None}
current: dict[str, Any] = data
for i in range(50):
current["level"] = {"value": i}
current = current["level"]
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

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

Loading