Skip to content

Commit 471b7ce

Browse files
committed
fix: ruff config
1 parent 15b883f commit 471b7ce

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ homebrew_releaser = ["py.typed"]
3939
line-length = 120
4040

4141
[tool.ruff.lint]
42-
extend-ignore = ["E203"]
42+
extend-select = ["I", "E501"]
4343

4444
[tool.mypy]
4545
disable_error_code = "import-untyped"

test/unit/test_formula.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
)
1212
from homebrew_releaser.homebrew import update_python_resources
1313

14-
1514
FORMULA_PATH = "test/formulas"
1615
USERNAME = "Justintime50"
1716
VERSION = "0.1.0"

test/unit/test_readme_updater.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ def test_format_formula_data_error_reading_formula():
100100
with pytest.raises(SystemExit) as error:
101101
_format_formula_data("test")
102102

103-
assert (
104-
str(error.value) == "There was a problem opening or reading the formula data: "
105-
)
103+
assert str(error.value) == "There was a problem opening or reading the formula data: "
106104

107105

108106
def test_generate_table():
@@ -168,9 +166,7 @@ def test_retrieve_old_table_no_readme(mock_logger):
168166
"""Tests that we retrieve only the old table data when start and end tags exist."""
169167
old_table, old_table_found = _retrieve_old_table("test")
170168

171-
mock_logger.assert_called_once_with(
172-
"Could not find a valid README in this project to update."
173-
)
169+
mock_logger.assert_called_once_with("Could not find a valid README in this project to update.")
174170
assert old_table == ""
175171
assert old_table_found is False
176172

0 commit comments

Comments
 (0)