|
| 1 | +[MASTER] |
| 2 | +# Support both old pylint ([MASTER]) and new pylint ([MAIN]) section names. |
| 3 | +py-version = 3.12 |
| 4 | + |
1 | 5 | [MAIN] |
2 | 6 | py-version = 3.12 |
3 | 7 |
|
4 | 8 | [BASIC] |
5 | 9 | # h and s are intentional short names that map directly to API query parameters. |
6 | | -good-names = h,s,e,i,j,k,_ |
| 10 | +# bp_* are idiomatic FastAPI APIRouter instance names, not constants. |
| 11 | +good-names = h,s,e,i,j,k,_,bp_dc,bp_hc,bp_marvel |
7 | 12 |
|
8 | 13 | [DESIGN] |
9 | 14 | # _build_options and route handlers mirror the full set of API query parameters. |
10 | 15 | max-args = 15 |
11 | 16 | max-positional-arguments = 15 |
12 | 17 |
|
13 | 18 | [MESSAGES CONTROL] |
14 | | -# 'format' and 'help' shadow builtins intentionally — they are public API |
15 | | -# query-parameter names whose spelling cannot be changed without breaking clients. |
| 19 | +# redefined-builtin: 'format' and 'help' shadow builtins intentionally — they |
| 20 | +# are public API query-parameter names that cannot be renamed. |
| 21 | +# line-too-long: not enforced in this project. |
| 22 | +# missing-module-docstring: modules use file-level docstrings only where needed. |
| 23 | +# E0611 (no-name-in-module): false positive — Annotated/Literal exist in |
| 24 | +# typing since Python 3.8/3.9; old pylint doesn't know this. |
| 25 | +# E1136 (unsubscriptable-object): false positive — list[x]/dict[x] are valid |
| 26 | +# in Python 3.9+; old pylint doesn't know this. |
| 27 | +# C0326 (bad-whitespace): false positive — PEP 8 requires spaces around '=' |
| 28 | +# for annotated function parameters; old pylint flags these incorrectly. |
| 29 | +# C0330 (wrong-hanging-indentation): removed in pylint 2.6+ but triggers as a |
| 30 | +# false positive in older Codacy pylint builds. |
16 | 31 | disable = redefined-builtin, |
17 | 32 | line-too-long, |
18 | | - missing-module-docstring |
| 33 | + missing-module-docstring, |
| 34 | + no-name-in-module, |
| 35 | + unsubscriptable-object, |
| 36 | + bad-whitespace, |
| 37 | + wrong-hanging-indentation |
0 commit comments