Skip to content

Commit

Permalink
Fix changes due to new ruff version
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWilhelm committed Mar 12, 2024
1 parent fa373cf commit 359dd7a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion test_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ hatch clean
hatch version

hatch run fibonacci 10
hatch run cov
hatch run test:cov
hatch run lint:all
hatch run docs:build

6 changes: 3 additions & 3 deletions {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ typing = [
]
style = [
"echo \"VERSION: `ruff --version`\"",
"ruff {args:.}",
"ruff format --check {args:.}",
"ruff check {args:.}",
"ruff format --diff {args:.}",
]
fix = [
"ruff format {args:.}",
"ruff --fix {args:.}",
"ruff check --fix {args:.}",
"style", # feedback on what is not fixable
]
all = [
Expand Down
10 changes: 5 additions & 5 deletions {{cookiecutter.project_slug}}/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""
Dummy conftest.py for `{{ cookiecutter.project_name }}`.
Dummy conftest.py for `{{ cookiecutter.project_name }}`.
If you don't know what this is for, just leave it empty.
Read more about conftest.py under:
- https://docs.pytest.org/en/stable/fixture.html
- https://docs.pytest.org/en/stable/writing_plugins.html
If you don't know what this is for, just leave it empty.
Read more about conftest.py under:
- https://docs.pytest.org/en/stable/fixture.html
- https://docs.pytest.org/en/stable/writing_plugins.html
"""

# import pytest

0 comments on commit 359dd7a

Please sign in to comment.