Skip to content

Commit 07889bd

Browse files
authored
pyproject: bump ruff, conditional rule (#14)
Signed-off-by: William Woodruff <[email protected]>
1 parent 3b7a32c commit 07889bd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ test = ["pytest", "pytest-cov", "pretend", "coverage[toml]"]
3434
lint = [
3535
# NOTE: ruff is under active development, so we pin conservatively here
3636
# and let Dependabot periodically perform this update.
37-
"ruff < 0.0.293",
37+
"ruff ~= 0.2",
3838
"mypy >= 1.0",
3939
"types-html5lib",
4040
"types-requests",
@@ -89,10 +89,12 @@ target-version = "py38"
8989
[tool.ruff.lint]
9090
select = ["ALL"]
9191

92-
[tool.ruff.per-file-ignores]
92+
[tool.ruff.lint.per-file-ignores]
93+
{% if cookiecutter.entry_point -%}
9394
"{{ cookiecutter.__project_src_path }}/_cli.py" = [
9495
"T201", # allow `print` in cli module
9596
]
97+
{%- endif %}
9698
"test/**/*.py" = [
9799
"D", # no docstrings in tests
98100
"S101", # asserts are expected in tests

0 commit comments

Comments
 (0)