Skip to content

Commit 4e4b2d8

Browse files
committed
uvx ruff format pyperformance/tests/test_pyproject_toml.py
1 parent 76e477d commit 4e4b2d8

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

pyperformance/tests/test_pyproject_toml.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import unittest
2-
import tempfile
31
import pathlib
2+
import tempfile
3+
import unittest
4+
45
from pyperformance import _pyproject_toml
56

67

@@ -44,17 +45,17 @@ def test_parse_full_valid_project_section(self):
4445

4546
def test_parse_fails_on_missing_name(self):
4647
with tempfile.TemporaryDirectory() as tmpdir:
47-
toml_content = """
48+
toml_content = """
4849
[project]
4950
version = "1.0"
5051
"""
5152

52-
with self.assertRaisesRegex(ValueError, r'missing required "name" field'):
53-
_pyproject_toml.parse_pyproject_toml(toml_content, rootdir=str(tmpdir))
53+
with self.assertRaisesRegex(ValueError, r'missing required "name" field'):
54+
_pyproject_toml.parse_pyproject_toml(toml_content, rootdir=str(tmpdir))
5455

5556
def test_parse_fails_on_unsupported_section(self):
5657
with tempfile.TemporaryDirectory() as tmpdir:
57-
toml_content = """
58+
toml_content = """
5859
[project]
5960
name = "my-test-bench"
6061
version = "1.0"
@@ -63,8 +64,8 @@ def test_parse_fails_on_unsupported_section(self):
6364
key = "value"
6465
"""
6566

66-
with self.assertRaisesRegex(ValueError, "unsupported sections"):
67-
_pyproject_toml.parse_pyproject_toml(toml_content, rootdir=str(tmpdir))
67+
with self.assertRaisesRegex(ValueError, "unsupported sections"):
68+
_pyproject_toml.parse_pyproject_toml(toml_content, rootdir=str(tmpdir))
6869

6970
def test_parse_readme_file_missing_with_requirefiles_true(self):
7071
with tempfile.TemporaryDirectory() as tmpdir:
@@ -94,5 +95,6 @@ def test_parse_readme_file_missing_with_requirefiles_false(self):
9495
)
9596
self.assertEqual(data["project"]["readme"]["file"], "MISSING_README.md")
9697

98+
9799
if __name__ == "__main__":
98100
unittest.main()

0 commit comments

Comments
 (0)