Skip to content

Commit

Permalink
Update dependency black to v24
Browse files Browse the repository at this point in the history
… and require the new version because of the changes.

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Nils Philippsen <nils@redhat.com>
  • Loading branch information
nphilipp committed Mar 15, 2024
1 parent c7c00e9 commit 06c0a25
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 33 deletions.
3 changes: 1 addition & 2 deletions fmn/sender/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ async def setup(self):
# Here we connect to the destination server if relevant.
...

async def stop(self):
...
async def stop(self): ...

@cached_property
def closed(self):
Expand Down
49 changes: 24 additions & 25 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 @@ -99,7 +99,7 @@ fedora-messaging-git-hook-messages = {version = "*", optional = true}

[tool.poetry.group.dev.dependencies]
poetry = "^1.2.0b2"
black = "^22.6.0 || ^23.0.0"
black = "^24.0.0"
pytest = "^7.1.2 || ^8.0.0"
pytest-asyncio = "^0.18.3 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.23.0"
pytest-cov = "^3.0.0 || ^4.0.0"
Expand Down
8 changes: 5 additions & 3 deletions tests/cache/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ def test_method(self):
patterns = util.get_pattern_for_cached_calls(test_object.test_method, **kwargs)

assert any(
f":self:{expected_self}:" in pattern
if with_arg == "with-arg"
else pattern.endswith(f":self:{expected_self}")
(
f":self:{expected_self}:" in pattern
if with_arg == "with-arg"
else pattern.endswith(f":self:{expected_self}")
)
for pattern in patterns
)
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ def clear_settings(tmp_path):
non_existing = str(tmp_path / "non-existing-file")
# with open(non_existing, "w") as fh:
# fh.write("DATABASE__SQLALCHEMY__ECHO=true\n")
with mock.patch("fmn.core.config.DEFAULT_CONFIG_FILE", new=non_existing), mock.patch(
"fmn.core.config._settings_file", new=non_existing
with (
mock.patch("fmn.core.config.DEFAULT_CONFIG_FILE", new=non_existing),
mock.patch("fmn.core.config._settings_file", new=non_existing),
):
get_settings.cache_clear()
yield
Expand Down

0 comments on commit 06c0a25

Please sign in to comment.