Commit 1d6fc5c
committed
Ban relative imports via flake8-tidy-imports
Adds flake8-tidy-imports as a flake8 dependency and enables
--ban-relative-imports=true (I252), per the project's stated
preference for absolute imports. I250/I251 (the plugin's other
checks) are ignored to keep this change scoped to relative imports
only.
Fixes the one existing relative import this rule catches:
chromadb/utils/embedding_functions/schemas/registry.py.
Fixes #23341 parent f2cfcc0 commit 1d6fc5c
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments