-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update fixes; change default to five
- Loading branch information
1 parent
cc81842
commit 372e369
Showing
8 changed files
with
93 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...s/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR0917_too_many_positional.py.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pylint/mod.rs | ||
--- | ||
too_many_positional.py:1:5: PLR0917 Too many positional arguments: (8/5) | ||
| | ||
1 | def f(x, y, z, t, u, v, w, r): # Too many positional arguments (8/3) | ||
| ^ PLR0917 | ||
2 | pass | ||
| | ||
|
||
too_many_positional.py:21:5: PLR0917 Too many positional arguments: (6/5) | ||
| | ||
21 | def f(x, y, z, /, u, v, w): # Too many positional arguments (6/3) | ||
| ^ PLR0917 | ||
22 | pass | ||
| | ||
|
||
too_many_positional.py:29:5: PLR0917 Too many positional arguments: (6/5) | ||
| | ||
29 | def f(x, y, z, a, b, c, *, u, v, w): # Too many positional arguments (6/3) | ||
| ^ PLR0917 | ||
30 | pass | ||
| | ||
|
||
|
22 changes: 22 additions & 0 deletions
22
...er/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__max_positional_args.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pylint/mod.rs | ||
--- | ||
too_many_positional_params.py:3:5: PLR0917 Too many positional arguments: (7/4) | ||
| | ||
1 | # Too many positional arguments (7/4) for max_positional=4 | ||
2 | # OK for dummy_variable_rgx ~ "skip_.*" | ||
3 | def f(w, x, y, z, skip_t, skip_u, skip_v): | ||
| ^ PLR0917 | ||
4 | pass | ||
| | ||
|
||
too_many_positional_params.py:9:5: PLR0917 Too many positional arguments: (7/4) | ||
| | ||
7 | # Too many positional arguments (7/4) for max_args=4 | ||
8 | # Too many positional arguments (7/3) for dummy_variable_rgx ~ "skip_.*" | ||
9 | def f(w, x, y, z, t, u, v): | ||
| ^ PLR0917 | ||
10 | pass | ||
| | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.