Skip to content

Commit

Permalink
Bump development dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLooman committed Dec 16, 2023
1 parent 513d83d commit 12564ff
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 23 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.mypy_cache/
.pytest_cache/
.tox/
coverage*.xml
.venv/
__pycache__
build/
Expand Down
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changes
- Treat upnp:class as case-insensitive when in non-strict mode (@chishm)
- Raise a `DidlLiteException` when upnp:class is invalid when in strict mode (@chishm)
- Drop Python3.6 and Python3.7 support, add Python3.10, Python3.11, Python3.12 support
- Bump development dependencies


1.3.2 (2021-11-29)
Expand Down
8 changes: 4 additions & 4 deletions didl_lite/didl_lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
to_camel_case,
)

TDO = TypeVar("TDO", bound="DidlObject")
TC = TypeVar("TC", bound="Container")
TD = TypeVar("TD", bound="Descriptor")
TR = TypeVar("TR", bound="Resource")
TDO = TypeVar("TDO", bound="DidlObject") # pylint: disable=invalid-name
TC = TypeVar("TC", bound="Container") # pylint: disable=invalid-name
TD = TypeVar("TD", bound="Descriptor") # pylint: disable=invalid-name
TR = TypeVar("TR", bound="Resource") # pylint: disable=invalid-name


class DidlLiteException(Exception):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


TEST_REQUIRES = [
"pytest~=6.1.2",
"pytest~=7.4.3",
]


Expand Down
6 changes: 3 additions & 3 deletions tests/test_didl_lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class TestDidlLite:
"""Tests for didl_lite."""

# pylint: disable=no-self-use, too-many-public-methods
# pylint: disable=too-many-public-methods

def test_item_from_xml(self) -> None:
"""Test item from XML."""
Expand Down Expand Up @@ -642,15 +642,15 @@ def test_property_case(self) -> None:
assert not hasattr(item, "otherItem")
assert not hasattr(item, "other_item")

item.storageMedium = "CD"
item.storageMedium = "CD" # pylint: disable=invalid-name
assert item.storage_medium is item.storageMedium
assert item.storage_medium == "CD"

item.long_description = "Long description"
assert item.long_description is item.longDescription
assert item.long_description == "Long description"

item.otherItem = "otherItem"
item.otherItem = "otherItem" # pylint: disable=invalid-name
assert hasattr(item, "otherItem")
assert not hasattr(item, "other_item")
assert item.otherItem == "otherItem"
39 changes: 24 additions & 15 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,50 +1,59 @@
[tox]
envlist = py38, py39, py310, py311, py312, flake8, pylint, codespell, typing, black

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312, flake8, pylint, codespell, typing, black

[testenv]
commands = py.test --cov=didl_lite --cov-report=term {posargs}
commands = py.test --cov=didl_lite --cov-report=term --cov-report=xml:coverage-{env_name}.xml {posargs}
ignore_errors = True
deps =
pytest ~= 6.2.4
pytest-asyncio ~= 0.15.1
pytest-cov ~= 2.12.1
coverage ~= 5.5
pytest == 7.4.3
pytest-asyncio ~= 0.23.2
pytest-cov ~= 4.1.0
coverage ~= 7.3.3
asyncmock ~= 0.4.2

[testenv:flake8]
basepython = python3
ignore_errors = True
deps =
flake8 >= 3.9.2
flake8-docstrings == 1.6.0
flake8-noqa == 1.1.0
pydocstyle == 6.1.1
flake8 ~= 6.1.0
flake8-docstrings == 1.7.0
flake8-noqa == 1.3.2
pydocstyle == 6.3.0
commands = flake8 didl_lite tests

[testenv:pylint]
basepython = python3
ignore_errors = True
deps =
pylint ~= 2.11.1
pytest ~= 6.2.4
pylint ~= 3.0.3
pytest == 7.4.3
commands = pylint didl_lite tests

[testenv:codespell]
basepython = python3
ignore_errors = True
deps =
codespell >= 2.1.0
codespell ~= 2.2.6
commands = codespell didl_lite tests

[testenv:typing]
basepython = python3
ignore_errors = True
deps =
mypy >= 0.910
pytest ~= 6.2.4
mypy ~= 1.7.1
pytest == 7.4.3
commands = mypy --ignore-missing-imports didl_lite tests

[testenv:black]
basepython = python3
deps =
black >= 21.7b0
black >= 23.12.0
commands = black --diff didl_lite tests

0 comments on commit 12564ff

Please sign in to comment.