Skip to content

Commit d299b19

Browse files
committed
chore: fix ruff
1 parent b7aa937 commit d299b19

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

python-projector/pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ python_projector = ["scripts/**/*.sh", "scripts/**/*.py"] # CHANGE (name of the
4949
[tool.setuptools.packages.find]
5050
where = ["src"]
5151

52-
[tool.projector.pip_compile]
53-
requirements_in_dir = "deps"
54-
requirements_out_dir = "deps/lock"
55-
python_platforms = ["x86_64-manylinux_2_28", "aarch64-apple-darwin", "x86_64-apple-darwin"]
52+
[tool.projector.pip-compile]
53+
requirements-in-dir = "deps"
54+
requirements-out-dir = "deps/lock"
55+
python-platforms = ["x86_64-manylinux_2_28", "aarch64-apple-darwin", "x86_64-apple-darwin"]
5656

5757
[tool.pytest.ini_options]
5858
addopts = "--cov=python_projector" # CHANGE (name of the importing module name)
@@ -159,6 +159,7 @@ ignore = [
159159
"SIM108", # use ternary operator instead of if-else
160160
"TRY003", # long message in except
161161
"PLR2004", # magic value comparison
162+
"PLW2901" # loop variable overwritten by assignment target
162163
]
163164

164165
[tool.ruff.lint.per-file-ignores]

python-projector/src/python_projector/utils/toml.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ def get_toml_value(
1212
return_path_object: bool = False,
1313
) -> Any:
1414
"""
15+
.
16+
1517
Args:
1618
return_path_object: Return a path object safely (when returning a default, don't convert to Path).
1719
"""

0 commit comments

Comments
 (0)