Skip to content

Commit

Permalink
update ruff ignores and fix pytest warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jhkennedy committed Oct 10, 2024
1 parent 703a427 commit 95778d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions {{cookiecutter.__project_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,6 @@ convention = "google"
[tool.ruff.lint.isort]
case-sensitive = true
lines-after-imports = 2

[tool.ruff.lint.extend-per-file-ignores]
"tests/*" = ["D100", "D103", "ANN"]
2 changes: 1 addition & 1 deletion {{cookiecutter.__project_name}}/tests/test_entrypoints.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
def test_{{cookiecutter.__package_name}}(script_runner):
ret = script_runner.run('python', '-m', '{{cookiecutter.__package_name}}', '-h')
ret = script_runner.run(['python', '-m', '{{cookiecutter.__package_name}}', '-h'])
assert ret.success

0 comments on commit 95778d6

Please sign in to comment.