forked from bradcfisher/OctoPrint-ExcludeRegionPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pylama.ini
52 lines (41 loc) · 2.04 KB
/
pylama.ini
1
2
3
4
5
6
7
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
45
46
47
48
49
50
51
52
[pylama]
format = pylint
linters = pylint,pycodestyle,pydocstyle,mccabe
; pydocstyle exclusions. Doesn't work to specify them in the [pylama.pydocstyle] section.
; D203 1 blank line required before class docstring (found 0)
; D212 Multi-line docstring summary should start at the first line
; D413 Missing blank line after last section ('Returns')
ignore = D203,D212,D413
; Use a trailing # nopep8 to ignode pycodestyle warnings for a specific line
[pylama:pycodestyle]
max_line_length = 100
[pylama:pydocstyle]
convention = pep257
; # pylint: disable=<CODE> to ignore specific pylint warnings for following code block (or line if trailing comment)
[pylama:pylint]
single-line-if-stmt = no
include-naming-hint = yes
; Threshold limit for R0913 Too many arguments
max-args = 6
; PEP8 specifies snake_case
;module-naming-style = PascalCase
; PascalCase, all-lower (no underscores), "prefix_" before PascalCase,
; or "test_" before PascalCase with optional "_camelCaseSuffix"
module-rgx = ^([a-z]+|([a-z][a-z0-9]+_|[A-Z])([a-zA-Z0-9]+)|test_[A-Z][a-zA-Z0-9]+(_[a-z][a-zA-Z0-9]+)?)$
;method-naming-style = camelCase
; Camel case with optional leading underscore for normal methods, __magic__ methods and relaxed rules for "test_" methods.
method-rgx = ^((_?[a-z][a-zA-Z0-9]{2,30})|(__[a-z]+__)|(_?(test|assert)_[a-zA-Z0-9_]{3,}))$
class-naming-style = PascalCase
argument-naming-style = camelCase
variable-naming-style = camelCase
attr-naming-style = camelCase
good-names = _,x,y,z,x1,y1,x2,y2
; C0111 Missing method docstring [Handled by pydocstyle]
; C0121 Comparison to None should be 'expr is None' [Handled by pycodestyle]
; C0301 Line too long [Handled by pycodestyle]
; C0303 Trailing whitespace [Handled by pycodestyle]
; C0325 Unnecessary parens after %r keyword
; C0326 No space allowed around keyword argument assignment [Handled by pycodestyle]
; W0301 Unnecessary semicolon [Handled by pycodestyle]
; W0311 Bad indentation [Handled by pycodestyle]
disable = C0111,C0121,C0301,C0303,C0325,C0326,W0301,W0311