@schemastore/ruff 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +27 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/index.d.ts
CHANGED
|
@@ -16,11 +16,13 @@ export type RuleSelector =
|
|
|
16
16
|
| 'AIR00'
|
|
17
17
|
| 'AIR001'
|
|
18
18
|
| 'AIR002'
|
|
19
|
+
| 'AIR003'
|
|
19
20
|
| 'AIR3'
|
|
20
21
|
| 'AIR30'
|
|
21
22
|
| 'AIR301'
|
|
22
23
|
| 'AIR302'
|
|
23
24
|
| 'AIR303'
|
|
25
|
+
| 'AIR304'
|
|
24
26
|
| 'AIR31'
|
|
25
27
|
| 'AIR311'
|
|
26
28
|
| 'AIR312'
|
|
@@ -117,6 +119,8 @@ export type RuleSelector =
|
|
|
117
119
|
| 'B034'
|
|
118
120
|
| 'B035'
|
|
119
121
|
| 'B039'
|
|
122
|
+
| 'B04'
|
|
123
|
+
| 'B043'
|
|
120
124
|
| 'B9'
|
|
121
125
|
| 'B90'
|
|
122
126
|
| 'B901'
|
|
@@ -1126,6 +1130,7 @@ export type RuleSelector =
|
|
|
1126
1130
|
| 'RUF069'
|
|
1127
1131
|
| 'RUF07'
|
|
1128
1132
|
| 'RUF070'
|
|
1133
|
+
| 'RUF071'
|
|
1129
1134
|
| 'RUF1'
|
|
1130
1135
|
| 'RUF10'
|
|
1131
1136
|
| 'RUF100'
|
|
@@ -1319,6 +1324,7 @@ export type RuleSelector =
|
|
|
1319
1324
|
| 'TID251'
|
|
1320
1325
|
| 'TID252'
|
|
1321
1326
|
| 'TID253'
|
|
1327
|
+
| 'TID254'
|
|
1322
1328
|
| 'TRY'
|
|
1323
1329
|
| 'TRY0'
|
|
1324
1330
|
| 'TRY00'
|
|
@@ -1432,6 +1438,9 @@ export type ParametrizeNameType = 'csv' | 'tuple' | 'list';
|
|
|
1432
1438
|
export type ParametrizeValuesRowType = 'tuple' | 'list';
|
|
1433
1439
|
export type ParametrizeValuesType = 'tuple' | 'list';
|
|
1434
1440
|
export type Quote = 'double' | 'single';
|
|
1441
|
+
export type ImportSelector = ImportSelection | ImportSelectorSettings;
|
|
1442
|
+
export type ImportSelection = AllImports | string[];
|
|
1443
|
+
export type AllImports = 'all';
|
|
1435
1444
|
export type Strictness = 'parents' | 'all';
|
|
1436
1445
|
export type DocstringCodeLineWidth = LineWidth | 'dynamic';
|
|
1437
1446
|
/**
|
|
@@ -2552,6 +2561,12 @@ export interface Flake8SelfOptions {
|
|
|
2552
2561
|
* Options for the `flake8-tidy-imports` plugin
|
|
2553
2562
|
*/
|
|
2554
2563
|
export interface Flake8TidyImportsOptions {
|
|
2564
|
+
/**
|
|
2565
|
+
* Specific modules that may not be imported lazily, or `"all"` to forbid lazy imports except
|
|
2566
|
+
* for any modules excluded from the selector. This rule is only enforced when targeting
|
|
2567
|
+
* Python 3.15 or newer.
|
|
2568
|
+
*/
|
|
2569
|
+
'ban-lazy'?: ImportSelector | null;
|
|
2555
2570
|
/**
|
|
2556
2571
|
* Whether to ban all relative imports (`"all"`), or only those imports
|
|
2557
2572
|
* that extend into the parent module or beyond (`"parents"`).
|
|
@@ -2572,6 +2587,18 @@ export interface Flake8TidyImportsOptions {
|
|
|
2572
2587
|
* if `banned-module-level-imports` is enabled.
|
|
2573
2588
|
*/
|
|
2574
2589
|
'banned-module-level-imports'?: string[] | null;
|
|
2590
|
+
/**
|
|
2591
|
+
* Specific modules that must be imported lazily in contexts where `lazy import` is legal, or
|
|
2592
|
+
* `"all"` to require every lazily-convertible import to use the `lazy` keyword. Ruff ignores
|
|
2593
|
+
* contexts where `lazy import` is invalid, such as functions, classes, `try`/`except`
|
|
2594
|
+
* blocks, `__future__` imports, and `from ... import *` statements. This rule is only
|
|
2595
|
+
* enforced when targeting Python 3.15 or newer.
|
|
2596
|
+
*/
|
|
2597
|
+
'require-lazy'?: ImportSelector | null;
|
|
2598
|
+
}
|
|
2599
|
+
export interface ImportSelectorSettings {
|
|
2600
|
+
exclude?: string[];
|
|
2601
|
+
include: ImportSelection;
|
|
2575
2602
|
}
|
|
2576
2603
|
export interface ApiBan {
|
|
2577
2604
|
/**
|
package/package.json
CHANGED