Skip to content

Commit 4ad86b8

Browse files
committed
Tried to make changes so that I could use an escaped double quote. However, ruff insisted that I use a single quote on the outside and a regular double quote on the inside.
1 parent 93aabbd commit 4ad86b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_package.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_linting():
2121
root_dir = os.path.dirname(os.path.dirname(__file__))
2222
toml_file = os.path.join(root_dir, "pyproject.toml")
2323
subprocess.run(
24-
f"ruff check {root_dir} --config {toml_file}",
24+
f'ruff check "{root_dir}" --config "{toml_file}"',
2525
check=True,
2626
shell=True,
2727
)
@@ -32,7 +32,7 @@ def test_formatting():
3232
root_dir = os.path.dirname(os.path.dirname(__file__))
3333
toml_file = os.path.join(root_dir, "pyproject.toml")
3434
subprocess.run(
35-
f"ruff format --check {root_dir} --config {toml_file}",
35+
f'ruff format --check "{root_dir}" --config "{toml_file}"',
3636
check=True,
3737
shell=True,
3838
)
@@ -50,7 +50,7 @@ def test_typing():
5050
root_dir = os.path.dirname(os.path.dirname(__file__))
5151
toml_file = os.path.join(root_dir, "pyproject.toml")
5252
subprocess.run(
53-
f"mypy -p pyttb --config-file {toml_file} {skip_untyped}",
53+
f'mypy -p pyttb --config-file "{toml_file}" {skip_untyped}',
5454
check=True,
5555
shell=True,
5656
)
@@ -61,7 +61,7 @@ def test_spelling():
6161
root_dir = os.path.dirname(os.path.dirname(__file__))
6262
toml_file = os.path.join(root_dir, "pyproject.toml")
6363
subprocess.run(
64-
f"codespell --toml {toml_file}",
64+
f'codespell --toml "{toml_file}"',
6565
check=True,
6666
shell=True,
6767
)

0 commit comments

Comments
 (0)