Skip to content

Commit

Permalink
chore: upgrade dev dependecies
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogdham committed Oct 5, 2024
1 parent 73c9161 commit dea5b8f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ For the purpose of determining breaking changes:

- Add support for buffer protocol ([PEP 688](https://peps.python.org/pep-0688/))

### :house: Internal

- Upgrade dev dependencies

## [1.0.1] - 2024-04-27

[1.0.1]: https://github.com/rogdham/bigxml/compare/v1.0.0...v1.0.1
Expand Down
10 changes: 5 additions & 5 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
-e .

# build
build==1.2.1
build==1.2.2

# docs
mkdocs==1.6.0
mkdocs==1.6.1

# lint
ruff==0.4.2
ruff==0.6.9

# tests
pytest==8.1.1
pytest==8.3.3
pytest-cov==5.0.0

# type
mypy==1.10.0
mypy==1.11.2
2 changes: 1 addition & 1 deletion src/bigxml/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _parse(
raise RuntimeError("Tried to access a node out of order")

depth = 0
last_child: Optional["Element"] = None
last_child: Optional[Element] = None

def handle_text() -> Iterator[T]:
if last_child is not None:
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_handler_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def handle(
def cases(
*args: Tuple[Tuple[str, ...], Optional[str], Optional[str]],
) -> pytest.MarkDecorator:
tests: List["ParameterSet"] = []
tests: List[ParameterSet] = []
for node_path, expected_text, expected_node_name in args:
nodes = create_nodes(*node_path)
if expected_node_name is None:
Expand All @@ -92,7 +92,7 @@ def cases(
def test_create_handler(
root: Union[XMLElement, XMLText],
expected_text: Optional[str],
expected_node: Optional[str],
expected_node: Union[XMLElement, XMLText, None],
*handles: object,
) -> None:
handler = create_handler(*handles)
Expand Down
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ envlist =
package = wheel
wheel_build_env = .pkg # reuse same wheel across envs
deps =
pytest==8.1.2
pytest==8.3.3
pytest-cov==5.0.0
passenv = PY_COLORS
setenv =
Expand All @@ -22,28 +22,28 @@ commands =
[testenv:build]
skip_install = true
deps =
build==1.2.1
build==1.2.2
commands =
python -m build

[testenv:docs]
skip_install = true
deps =
mkdocs==1.6.0
mkdocs==1.6.1
commands =
mkdocs {posargs:build} -f docs/mkdocs.yml

[testenv:lint]
deps =
ruff==0.4.2
ruff==0.6.9
commands =
ruff check src docs tests
ruff format --check src docs tests

[testenv:type]
deps =
mypy==1.10.0
pytest==8.1.2 # for typing
mypy==1.11.2
pytest==8.3.3 # for typing
commands =
mypy
mypy --explicit-package-bases docs tests

0 comments on commit dea5b8f

Please sign in to comment.