Skip to content

Commit 77b7dad

Browse files
committed
Ignore Ruff copyright-header rule
1 parent bc11240 commit 77b7dad

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ select = ["ALL"]
120120
ignore = [
121121
"ANN401", # flake8-annotate typing.Any
122122
"COM812", # Comply with ruff-format.
123+
"CPY001", # Missing copyright notice at top of file.
123124
"ISC001", # Comply with ruff-format.
124125
"FBT",
125126
"S101", # raise errors for asserts.

‎src/_pytask/collect_utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def parse_products_from_task_function(
246246
return out
247247

248248

249-
def _collect_nodes_and_provisional_nodes( # noqa: PLR0913
249+
def _collect_nodes_and_provisional_nodes( # noqa: PLR0913, PLR0917
250250
collection_func: Callable[..., Any],
251251
session: Session,
252252
node_path: Path,

‎tests/test_compat.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
),
7171
],
7272
)
73-
def test_check_for_optional_program( # noqa: PLR0913
73+
def test_check_for_optional_program( # noqa: PLR0913, PLR0917
7474
name, extra, errors, caller, expectation, expected
7575
):
7676
with expectation:

‎tests/test_mark.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,10 @@ def task_func(arg=arg):
191191
[
192192
(
193193
"foo or",
194-
("at column 7: expected not OR left parenthesis OR identifier; got end of "
195-
"input"),
194+
(
195+
"at column 7: expected not OR left parenthesis OR "
196+
"identifier; got end of input"
197+
),
196198
),
197199
(
198200
"foo or or",

0 commit comments

Comments
 (0)