Skip to content

Commit 72ac687

Browse files
committed
consistently use ruff <command> .; ignore rule COM812
1 parent ab31a4b commit 72ac687

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

template/pyproject.toml.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ ignore = [
135135
"FIX001", # Resolve FIXMEs
136136
"FIX002", # Resolve TODOs
137137
"B028", # No explicit `stacklevel` keyword argument found in warning
138+
"COM812", # Trailing commas are taken care of by `ruff format`
138139
# No docstrings required in the following cases
139140
"D100", # Missing module docstring
140141
"D104", # Missing public package docstring

template/{% if AddPreCommit %}.githooks{% endif %}/pre-commit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ echo "Script $0 triggered ..."
66
echo "Starting ruff analysis..."
77

88
# quietly run ruff
9-
ruff check --fix
10-
ruff format
9+
ruff check --fix .
10+
ruff format .
1111

1212
# use return code to abort commit if necessary
1313
if [ $? != "0" ]; then

template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddGitHubActionBuild %}build.yml{% endif %}.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ jobs:
6161
python -m pip install .[dev,publishing]
6262
- name: Check style against standards using ruff
6363
run: |
64-
ruff check
65-
ruff format --check
64+
ruff check .
65+
ruff format --check .
6666
{%- endif %}
6767

6868
{%- if AddTyping %}
@@ -82,4 +82,4 @@ jobs:
8282
- name: Run {{ SelectTypeChecker }}
8383
run: |
8484
{{ SelectTypeChecker }}
85-
{%- endif %}
85+
{%- endif %}

0 commit comments

Comments
 (0)