diff --git a/pyproject.toml b/pyproject.toml index 15ffe9f..2a1c448 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -122,7 +122,7 @@ optional-dependencies.develop = [ "mypy<1.20", "poethepoet<1", "pyproject-fmt<3", - "ruff<0.13", + "ruff<0.15", "validate-pyproject<1", ] optional-dependencies.docs = [ @@ -191,8 +191,6 @@ lint.extend-ignore = [ "B905", "C408", # Unnecessary `dict()` call (rewrite as a literal) "ERA001", # Found commented-out code. - # df is a bad variable name. Be kinder to your future self. - "PD901", # Unnecessary variable assignment before `return` statement "RET504", # Unnecessary `elif` after `return` statement diff --git a/tests/github/test_cli.py b/tests/github/test_cli.py index b79ac36..0b98ea9 100644 --- a/tests/github/test_cli.py +++ b/tests/github/test_cli.py @@ -35,12 +35,12 @@ def test_cli_att(cli_runner): """ result = cli_runner.invoke( cli, - args="gh att --organization=tech-writing --when=2025W08", + args="gh att --organization=tech-writing --when=2025W09", catch_exceptions=False, ) assert result.exit_code == 0 - assert "# Attention report 2025W08" in result.output - assert "sphinx-design-elements" in result.output + assert "# Attention report 2025W09" in result.output + assert "rapporto" in result.output def test_cli_backup_unauthorized(cli_runner, capfd): @@ -55,5 +55,7 @@ def test_cli_backup_unauthorized(cli_runner, capfd): assert result.exit_code == 2 assert "ERROR: Command" in result.output - out, err = capfd.readouterr() - assert "API request returned HTTP 401: Unauthorized" in err + _, err = capfd.readouterr() + assert ( + "API request returned HTTP 401: Unauthorized" in err or "API Error: 401 Unauthorized" in err + )