Skip to content

Commit

Permalink
Bump pylint from 2.13.9 to 2.17.4 (#236)
Browse files Browse the repository at this point in the history
* Bump pylint from 2.13.9 to 2.17.4

Bumps [pylint](https://github.com/PyCQA/pylint) from 2.13.9 to 2.17.4.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Commits](pylint-dev/pylint@v2.13.9...v2.17.4)

---
updated-dependencies:
- dependency-name: pylint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* lint

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ludeeus <[email protected]>
  • Loading branch information
dependabot[bot] and ludeeus authored Jul 24, 2023
1 parent 1e365a0 commit 15ef324
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 37 deletions.
64 changes: 33 additions & 31 deletions poetry.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 @@ -27,7 +27,7 @@ python = "^3.8"
black = "^23.7"
isort = "^5.12.0"
mypy = "^1.4"
pylint = "^2.13.9"
pylint = "^2.17.4"
pytest = "^7.4.0"
pytest-cov = "^4.1.0"

Expand Down
4 changes: 2 additions & 2 deletions tests/issues/test_issue96.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test() -> None:
with pytest.raises(
AwesomeVersionStrategyException,
match=re.escape(
"Strategy unknown does not match ['SemVer'" ", 'CalVer'] for whatever"
"Strategy unknown does not match ['SemVer', 'CalVer'] for whatever"
),
):
AwesomeVersion(
Expand All @@ -53,6 +53,6 @@ def test() -> None:

with pytest.raises(
AwesomeVersionStrategyException,
match=re.escape("Strategy CalVer does not match ['SemVer']" " for 2021.12"),
match=re.escape("Strategy CalVer does not match ['SemVer'] for 2021.12"),
):
AwesomeVersion("2021.12", ensure_strategy=AwesomeVersionStrategy.SEMVER)
2 changes: 1 addition & 1 deletion tests/test_awesomeversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def test_diff() -> None:

diff = version - "2021.12.1"
assert diff.major
assert diff.__repr__().startswith("AwesomeVersionDiff(")
assert repr(diff).startswith("AwesomeVersionDiff(")

with pytest.raises(AwesomeVersionException):
version.diff(None)
Expand Down
6 changes: 4 additions & 2 deletions tests/test_version_scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ def test_named_sections() -> None:
def test_named_sections_invalid() -> None:
"""Test invalid named sections."""
version = AwesomeVersion("latest")
assert version.major == version.year is None
assert version.major is None
assert version.minor is None
assert version.patch is None
assert version.micro == version.patch is None

assert version.year == version.major
assert version.micro == version.patch

0 comments on commit 15ef324

Please sign in to comment.