File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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]\n indent_style = space\n indent_size = 4\n "
5857 ),
59-
6058 "pkg/__init__.py" : "\n " ,
61-
6259 "pkg/util.py" : (
6360 "VALUE_NAME = 1\n \n \n def 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 "
Original file line number Diff line number Diff 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 "
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ def test_tests_detect_frameworks_run_command_and_conftest(tmp_path):
2626 "Makefile" : "test:\n \t python -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\n def repo_fixture():\n return 1\n "
3231 ),
You can’t perform that action at this time.
0 commit comments