Skip to content

Commit bebf02e

Browse files
committed
style: format code with ruff
1 parent 08cdda1 commit bebf02e

4 files changed

Lines changed: 1 addition & 8 deletions

File tree

scripts/commands/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _parse_toml_value(s: str):
6666
try:
6767
if "." in s:
6868
return float(s)
69-
69+
7070
return int(s)
7171
except ValueError:
7272
return s

tests/test_support.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,13 @@ def create_sample_repo(tmp_path: Path) -> Path:
5252
"[tool.ruff]\n"
5353
"line-length = 88\n"
5454
),
55-
5655
".editorconfig": (
5756
"root = true\n\n[*.py]\nindent_style = space\nindent_size = 4\n"
5857
),
59-
6058
"pkg/__init__.py": "\n",
61-
6259
"pkg/util.py": (
6360
"VALUE_NAME = 1\n\n\ndef helper_value():\n return VALUE_NAME\n"
6461
),
65-
6662
"pkg/main.py": (
6763
"from pkg.util import helper_value\n\n\n"
6864
"class SampleThing:\n"
@@ -71,7 +67,6 @@ def create_sample_repo(tmp_path: Path) -> Path:
7167
"def main_entry():\n"
7268
" return SampleThing().run_task()\n"
7369
),
74-
7570
"tests/test_main.py": (
7671
"import pytest\n\n"
7772
"from pkg.main import main_entry\n\n\n"

tests/test_symbols.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def test_symbols_extracts_typescript_and_go(tmp_path):
4141
"export type WidgetType = string\n"
4242
"export const VALUE_NAME = 1\n"
4343
),
44-
4544
"pkg/main.go": (
4645
"package main\n"
4746
"type Worker struct{}\n"

tests/test_tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def test_tests_detect_frameworks_run_command_and_conftest(tmp_path):
2626
"Makefile": "test:\n\tpython -m pytest -q\n",
2727
"pkg/mod.py": "def run():\n return 1\n",
2828
"tests/test_mod.py": "def test_run():\n assert True\n",
29-
3029
"tests/conftest.py": (
3130
"import pytest\n\n@pytest.fixture\ndef repo_fixture():\n return 1\n"
3231
),

0 commit comments

Comments
 (0)