Skip to content

Commit

Permalink
Update ruff configuration and reformat files
Browse files Browse the repository at this point in the history
  • Loading branch information
willkg committed May 1, 2024
1 parent 2b2cd32 commit 6a065c2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion bin/delete-random-localstackfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
scenario where in a given .zip upload only some of the files already exists.
"""


import os
import random
import boto3
Expand Down
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[tool.ruff]
line-length = 88
target-version = "py311"

[tool.ruff.lint]
# Enable pycodestyle (E), pyflakes (F), and bugbear (B) rules
select = ["E", "F", "B"]
line-length = 88
# Ignore line length violations that aren't fixed by formatting
ignore = ["E501"]
target-version = "py311"

[tool.ruff.flake8-quotes]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"


Expand Down
7 changes: 4 additions & 3 deletions tecken/tests/test_libdockerflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ def test_check_storage_urls_other_error(settings):
"http://s3.example.com/other-bucket",
]
exception = RuntimeError("A different error")
with patch(
"tecken.storage.StorageBucket.exists", side_effect=exception
), pytest.raises(RuntimeError):
with (
patch("tecken.storage.StorageBucket.exists", side_effect=exception),
pytest.raises(RuntimeError),
):
libdockerflow.check_storage_urls(None)


Expand Down

0 comments on commit 6a065c2

Please sign in to comment.