Commit 01bac61
committed
Merge branch 'main' into dcreager/generate-ast
* main:
[red-knot] Inline `SubclassOfType::as_instance_type_of_metaclass()` (#15556)
[`flake8-comprehensions`] strip parentheses around generators in `unnecessary-generator-set` (`C401`) (#15553)
[`pylint`] Implement `redefined-slots-in-subclass` (`W0244`) (#9640)
[`flake8-bugbear`] Do not raise error if keyword argument is present and target-python version is less or equals than 3.9 (`B903`) (#15549)
[red-knot] `type[T]` is disjoint from `type[S]` if the metaclass of `T` is disjoint from the metaclass of `S` (#15547)
[red-knot] Pure instance variables declared in class body (#15515)
Update snapshots of #15507 with new annotated snipetts rendering (#15546)
[`pylint`] Do not report methods with only one `EM101`-compatible `raise` (`PLR6301`) (#15507)
Fix unstable f-string formatting for expressions containing a trailing comma (#15545)
Support `knot.toml` files in project discovery (#15505)
Add support for configuring knot in `pyproject.toml` files (#15493)
Fix bracket spacing for single-element tuples in f-string expressions (#15537)
[`flake8-simplify`] Do not emit diagnostics for expressions inside string type annotations (`SIM222`, `SIM223`) (#15405)
[`flake8-pytest-style`] Do not emit diagnostics for empty `for` loops (`PT012`, `PT031`) (#15542)84 files changed
Lines changed: 2465 additions & 540 deletions
File tree
- crates
- red_knot_python_semantic
- resources/mdtest
- narrow
- scopes
- type_of
- type_properties
- src
- module_resolver
- red_knot_server/src
- red_knot_test/src
- red_knot_wasm/src
- red_knot_workspace
- src
- db
- project
- pyproject
- snapshots
- tests
- red_knot
- src
- tests
- ruff_benchmark/benches
- ruff_graph/src
- ruff_linter
- resources/test/fixtures
- flake8_bugbear
- flake8_comprehensions
- flake8_pytest_style
- flake8_simplify
- pylint
- src
- checkers/ast/analyze
- rules
- flake8_bugbear
- rules
- snapshots
- flake8_comprehensions
- rules
- snapshots
- flake8_pytest_style
- rules
- snapshots
- flake8_simplify
- rules
- snapshots
- flake8_unused_arguments/rules
- pylint
- rules
- snapshots
- ruff_macros/src
- ruff_python_formatter
- resources/test/fixtures/ruff/expression
- src
- other
- tests/snapshots
- ruff/src/commands
- fuzz/fuzz_targets
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
| 40 | + | |
36 | 41 | | |
37 | | - | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
89 | 97 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
| |||
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
176 | 170 | | |
177 | 171 | | |
178 | | - | |
| 172 | + | |
179 | 173 | | |
180 | 174 | | |
181 | 175 | | |
| |||
228 | 222 | | |
229 | 223 | | |
230 | 224 | | |
231 | | - | |
| 225 | + | |
232 | 226 | | |
233 | 227 | | |
234 | 228 | | |
235 | | - | |
| 229 | + | |
236 | 230 | | |
237 | 231 | | |
238 | 232 | | |
239 | 233 | | |
240 | 234 | | |
241 | 235 | | |
242 | 236 | | |
243 | | - | |
| 237 | + | |
244 | 238 | | |
245 | 239 | | |
246 | 240 | | |
| |||
324 | 318 | | |
325 | 319 | | |
326 | 320 | | |
327 | | - | |
| 321 | + | |
328 | 322 | | |
329 | 323 | | |
330 | 324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
0 commit comments