Skip to content

Commit

Permalink
pyproject: bump ruff, conditional rule (#14)
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
woodruffw authored Feb 21, 2024
1 parent 3b7a32c commit 07889bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test = ["pytest", "pytest-cov", "pretend", "coverage[toml]"]
lint = [
# NOTE: ruff is under active development, so we pin conservatively here
# and let Dependabot periodically perform this update.
"ruff < 0.0.293",
"ruff ~= 0.2",
"mypy >= 1.0",
"types-html5lib",
"types-requests",
Expand Down Expand Up @@ -89,10 +89,12 @@ target-version = "py38"
[tool.ruff.lint]
select = ["ALL"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
{% if cookiecutter.entry_point -%}
"{{ cookiecutter.__project_src_path }}/_cli.py" = [
"T201", # allow `print` in cli module
]
{%- endif %}
"test/**/*.py" = [
"D", # no docstrings in tests
"S101", # asserts are expected in tests
Expand Down

0 comments on commit 07889bd

Please sign in to comment.