@@ -7,43 +7,62 @@ load-plugins = ["pylint.extensions.docparams"]
77[tool .pylint .basic ]
88argument-naming-style = " snake_case"
99attr-naming-style = " snake_case"
10- bad-names = [" foo" , " bar" , " baz" , " toto" , " tutu" , " tata" ]
1110class-naming-style = " PascalCase"
12- docstring-min-length = 10
1311function-naming-style = " snake_case"
1412variable-naming-style = " snake_case"
15-
13+ module-naming-style = " snake_case"
14+ bad-names = [" foo" , " bar" , " baz" , " toto" , " tutu" , " tata" ]
15+ docstring-min-length = 10
1616
1717[tool .pylint .format ]
1818max-line-length = 100
1919max-module-lines = 1000
2020
21+ [tool .pylint .docs ]
22+ docstring-style = " sphinx"
23+ default-docstring-type = " sphinx"
24+ accept-no-param-doc = false
25+ accept-no-raise-doc = false
26+ accept-no-return-doc = false
27+ accept-no-yields-doc = false
28+
2129[tool .pylint ."messages control" ]
2230enable = [
23- " C0116" ,
24- " C0115" ,
25- " C0114" ,
26- " C0301" ,
27- " E1101" ,
28- " W0611" ,
31+ " missing-module-docstring" ,
32+ " missing-class-docstring" ,
33+ " wrong-exception-operation" ,
34+ " wrong-spelling-in-comment" ,
35+ " wrong-spelling-in-docstring" ,
36+ " missing-any-param-doc" ,
37+ " missing-format-attribute" ,
38+ " missing-kwoa" ,
39+ " missing-param-doc" ,
40+ " missing-parentheses-for-call-in-test" ,
41+ " missing-raises-doc" ,
42+ " missing-return-doc" ,
43+ " missing-return-type-doc" ,
44+ " missing-timeout" ,
45+ " missing-type-doc" ,
46+ " missing-yield-doc" ,
47+ " missing-yield-type-doc" ,
48+ " trailing-newlines" ,
49+ " trailing-whitespace" ,
2950]
3051disable = [
52+ " C0199" , # empty-first-line-docstring
3153 " W0702" , # bare-except
3254 " W0703" , # broad-except
3355 " W4901" , # global-statement
34- " R0902 " , # too-many-instance-attributes
35- " R0903 " , # too-few-public-methods
36- " R1702 " ,
37- " R0801 " ,
38- " W0108 "
56+ " W0108 " , # lambda
57+ " W0622 " , # redefined-builtin id
58+ " E0015 " ,
59+ " E0401 " , # import-error
60+ " E0611 " , # no-name-in-module
3961]
4062
4163[tool .pylint .design ]
4264max-args = 5
4365
44- [tool .pylint .docs ]
45- docstring-min-length = 10
46-
4766[tool .pylint .variables ]
4867init-import = false
4968dummy-variables-rgx = " _.*|dummy"
@@ -56,3 +75,20 @@ enable = [
5675 " E1101" ,
5776 " W0611" ,
5877]
78+
79+ [tool .pylint .tests ]
80+ disable = [
81+ " W0702" , # bare-except
82+ " W0703" , # broad-except
83+ " W4901" , # global-statement
84+ " R0902" , # too-many-instance-attributes
85+ " R0903" , # too-few-public-methods
86+ " R1702" , # too-many-nested-blocks
87+ " R0801" , # duplicate-code
88+ " W0108" , # lambda
89+ " E0401" , # import-error
90+ " W0613" , # unused-argument
91+ " W0212" , # protected-access
92+ " W0107" , # unnecessary-pass
93+ " C0103" # invalid-name
94+ ]
0 commit comments