Commit 02dbcf4
committed
Add clj-kondo support for libpython-clj2 namespaces
- Add hook for libpython-clj2.require/import-python (v2 namespace)
- Add lint-as rules for require-python (v1 and v2)
- Add :unresolved-namespace exclusions for python.* namespaces
- Extend :unused-namespace exclusions to include python.* aliases
The existing config only covered the legacy libpython-clj namespace.
Users of libpython-clj2 were getting various warnings:
- "Unresolved namespace python" when using python.str, python.list, etc.
- "Unknown require option: :bind-ns" from require-python
Note: py., py.., py.-, py*, py** macros are now natively supported
in clj-kondo 2025.04.07+ (issue #2512) and don't need special config.
Closes #2681 parent 7f57221 commit 02dbcf4
File tree
1 file changed
+39
-8
lines changed- resources/clj-kondo.exports/clj-python/libpython-clj
1 file changed
+39
-8
lines changedLines changed: 39 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 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 | + | |
0 commit comments