Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintenance #74

Merged
merged 5 commits into from
Jul 7, 2024
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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/python-poetry/poetry
rev: "f631c22f715e0712d99a7493caab3f8088a582ab" # frozen: 1.6.0
rev: "c85477da8a610a87133299f996f8d8a593aa7bff" # frozen: 1.8.0
hooks:
- id: poetry-check
- id: poetry-lock
Expand All @@ -22,7 +22,7 @@ repos:
name: isort (python)

- repo: https://github.com/psf/black
rev: e87737140f32d3cd7c44ede75f02dcd58e55820e # frozen: 23.9.1
rev: 3702ba224ecffbcec30af640c149f231d90aebdb # frozen: 24.4.2
hooks:
- id: black

Expand Down
571 changes: 301 additions & 270 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ req2flatpak = 'req2flatpak:main'
[tool.poetry.dependencies]
python = "^3.7.2"
packaging = { version = "^21.3", optional = true }
pyyaml = { version = "^6.0", optional = true }
pyyaml = { version = "^6.0.1", optional = true }

[tool.poetry.extras]
packaging = ["packaging"]
Expand All @@ -29,7 +29,7 @@ pylama = { extras = [
"eradicate",
"toml",
], version = "^8.4.1" }
bandit = { extras = ["toml"], version = "^1.7.4" }
bandit = { extras = ["toml"], version = "^1.7.5" }

# type stubs for mypy linting
types-setuptools = "^65.5.0.2"
Expand Down
1 change: 1 addition & 0 deletions tests/test_pypi_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Automated tests for :class:req2flatpak.PypiClient."""

import contextlib
import unittest
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions tests/test_req2flatpak.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for req2flatpak's commandline interface."""

import json
import subprocess
import tempfile
Expand Down
6 changes: 3 additions & 3 deletions tests/test_tags_from_wheel_filename.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ def setUpClass(cls):
# - how to ignore certain imports: https://stackoverflow.com/a/63353431
with mock.patch.dict("sys.modules", {"packaging.utils": None}):
reload(req2flatpak)
cls.implementations[
"without_packaging"
] = req2flatpak.tags_from_wheel_filename
cls.implementations["without_packaging"] = (
req2flatpak.tags_from_wheel_filename
)

# get the implementation that uses the ``packaging`` package
reload(req2flatpak)
Expand Down
Loading