-
Notifications
You must be signed in to change notification settings - Fork 908
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept commas in default copyright pattern (#9498)
## Summary Adds commas as an accepted separator between copyright years by default, which is actually documented in one spot, but not currently accurate. Fixes #9477.
- Loading branch information
1 parent
a06ffeb
commit 594b232
Showing
12 changed files
with
192 additions
and
6 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
4 changes: 4 additions & 0 deletions
4
...8_copyright/snapshots/ruff_linter__rules__flake8_copyright__tests__notice_with_comma.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,4 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs | ||
--- | ||
|
10 changes: 10 additions & 0 deletions
10
...uff_linter__rules__flake8_copyright__tests__valid_author_with_comma_invalid_no_space.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,10 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs | ||
--- | ||
<filename>:1:1: CPY001 Missing copyright notice at top of file | ||
| | ||
1 | # Copyright (C) 2022,2023 Ruff | ||
| CPY001 | ||
2 | | ||
3 | import os | ||
| |
10 changes: 10 additions & 0 deletions
10
.../ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_invalid_spaces.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,10 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs | ||
--- | ||
<filename>:1:1: CPY001 Missing copyright notice at top of file | ||
| | ||
1 | # Copyright (C) 2022 , 2023 Ruff | ||
| CPY001 | ||
2 | | ||
3 | import os | ||
| |
4 changes: 4 additions & 0 deletions
4
...ots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_comma_valid_space.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,4 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs | ||
--- | ||
|
4 changes: 4 additions & 0 deletions
4
...yright/snapshots/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash.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,4 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs | ||
--- | ||
|
10 changes: 10 additions & 0 deletions
10
...ts/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash_invalid_space.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,10 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs | ||
--- | ||
<filename>:1:1: CPY001 Missing copyright notice at top of file | ||
| | ||
1 | # Copyright (C) 2022- 2023 Ruff | ||
| CPY001 | ||
2 | | ||
3 | import os | ||
| |
10 changes: 10 additions & 0 deletions
10
...s/ruff_linter__rules__flake8_copyright__tests__valid_author_with_dash_invalid_spaces.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,10 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/flake8_copyright/mod.rs | ||
--- | ||
<filename>:1:1: CPY001 Missing copyright notice at top of file | ||
| | ||
1 | # Copyright (C) 2022 - 2023 Ruff | ||
| CPY001 | ||
2 | | ||
3 | import os | ||
| |
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.