Commit 1a2f930
Select Ruff rules for modern type annotations (jaraco/skeleton#160)
* Select Ruff rules for modern type annotations
Ensure modern type annotation syntax and best practices
Not including those covered by type-checkers or exclusive to Python 3.11+
Not including rules currently in preview either.
These are the same set of rules I have in pywin32 as of mhammond/pywin32#2458
setuptools has all the same rules enabled (except it also includes the `UP` group directly)
* Add PYI011 ignore and #local section
* Update ruff.toml
Co-authored-by: Jason R. Coombs <[email protected]>
* Add # upstream
---------
Co-authored-by: Jason R. Coombs <[email protected]>1 parent 1c9467f commit 1a2f930
1 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
9 | 25 | | |
10 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
11 | 32 | | |
12 | 33 | | |
13 | 34 | | |
| |||
23 | 44 | | |
24 | 45 | | |
25 | 46 | | |
| 47 | + | |
| 48 | + | |
26 | 49 | | |
27 | 50 | | |
28 | 51 | | |
| |||
0 commit comments