|
1 | 1 | {
|
2 | 2 | "$schema": "https://raw.githubusercontent.com/microsoft/pyright/main/packages/vscode-pyright/schemas/pyrightconfig.schema.json",
|
3 | 3 | "exclude": [
|
| 4 | + // Avoid scanning Python files in generated folders |
4 | 5 | "build",
|
5 | 6 | ".tox",
|
6 | 7 | ".eggs",
|
7 |
| - "**/_vendor", // Vendored |
8 |
| - "setuptools/_distutils", // Vendored |
9 |
| - "setuptools/config/_validate_pyproject/**", // Auto-generated |
| 8 | + "setuptools/config/_validate_pyproject/**", |
| 9 | + // These are vendored |
| 10 | + "**/_vendor", |
| 11 | + "setuptools/_distutils", |
10 | 12 | ],
|
11 | 13 | // Our testing setup doesn't allow passing CLI arguments, so local devs have to set this manually.
|
12 | 14 | // "pythonVersion": "3.8",
|
|
15 | 17 | "typeCheckingMode": "basic",
|
16 | 18 | // Too many issues caused by dynamic patching, still worth fixing when we can
|
17 | 19 | "reportAttributeAccessIssue": "warning",
|
18 |
| - // Fails on Python 3.12 due to missing distutils and on cygwin CI tests |
19 |
| - "reportAssignmentType": "warning", |
| 20 | + // Fails on Python 3.12 due to missing distutils |
20 | 21 | "reportMissingImports": "warning",
|
21 |
| - "reportOptionalCall": "warning", |
22 | 22 | // FIXME: A handful of reportOperatorIssue spread throughout the codebase
|
23 | 23 | "reportOperatorIssue": "warning",
|
24 | 24 | // Deferred initialization (initialize_options/finalize_options) causes many "potentially None" issues
|
25 |
| - // TODO: Fix with type-guards or by changing how it's initialized |
26 |
| - "reportArgumentType": "warning", // A lot of these are caused by jaraco.path.build's spec argument not being a Mapping https://github.com/jaraco/jaraco.path/pull/3 |
| 25 | + // TODO: Fix with type-guards, by changing how it's initialized, or by casting initial assignments |
| 26 | + "reportArgumentType": "warning", |
27 | 27 | "reportCallIssue": "warning",
|
28 | 28 | "reportGeneralTypeIssues": "warning",
|
29 | 29 | "reportOptionalIterable": "warning",
|
|
0 commit comments