Skip to content

Commit ec89a37

Browse files
committed
#3 Linter adaptions
1 parent dcbd5b1 commit ec89a37

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

src/archetype/template/pylintrc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[MASTER]
2-
2+
disable=C0114
33
# A comma-separated list of package or module names from where C extensions may
44
# be loaded. Extensions are loading into the active Python interpreter and may
55
# run arbitrary code.
@@ -178,7 +178,7 @@ score=yes
178178
[REFACTORING]
179179

180180
# Maximum number of nested blocks for function / method body
181-
max-nested-blocks=5
181+
max-nested-blocks=7
182182

183183
# Complete name of functions that never returns. When checking for
184184
# inconsistent-return-statements if a never returning function is called then
@@ -320,7 +320,7 @@ indent-after-paren=4
320320
indent-string=' '
321321

322322
# Maximum number of characters on a single line.
323-
max-line-length=88
323+
max-line-length=200
324324

325325
# Maximum number of lines in a module.
326326
max-module-lines=1000
@@ -375,7 +375,7 @@ ignore-docstrings=yes
375375
ignore-imports=yes
376376

377377
# Minimum lines number of a similarity.
378-
min-similarity-lines=8
378+
min-similarity-lines=50
379379

380380

381381
[SPELLING]
@@ -519,19 +519,19 @@ valid-metaclass-classmethod-first-arg=cls
519519
[DESIGN]
520520

521521
# Maximum number of arguments for function / method.
522-
max-args=5
522+
max-args=15
523523

524524
# Maximum number of attributes for a class (see R0902).
525-
max-attributes=7
525+
max-attributes=15
526526

527527
# Maximum number of boolean expressions in an if statement (see R0916).
528528
max-bool-expr=5
529529

530530
# Maximum number of branch for function / method body.
531-
max-branches=12
531+
max-branches=50
532532

533533
# Maximum number of locals for function / method body.
534-
max-locals=15
534+
max-locals=30
535535

536536
# Maximum number of parents for a class (see R0901).
537537
max-parents=7
@@ -543,7 +543,7 @@ max-public-methods=20
543543
max-returns=6
544544

545545
# Maximum number of statements in function / method body.
546-
max-statements=50
546+
max-statements=150
547547

548548
# Minimum number of public methods for a class (see R0903).
549549
min-public-methods=2

src/archetype/template/pylintrc_tests

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[MASTER]
2+
disable=C0114
23

34
# A comma-separated list of package or module names from where C extensions may
45
# be loaded. Extensions are loading into the active Python interpreter and may
@@ -323,7 +324,7 @@ indent-after-paren=4
323324
indent-string=' '
324325

325326
# Maximum number of characters on a single line.
326-
max-line-length=88
327+
max-line-length=200
327328

328329
# Maximum number of lines in a module.
329330
max-module-lines=1000
@@ -378,7 +379,7 @@ ignore-docstrings=yes
378379
ignore-imports=yes
379380

380381
# Minimum lines number of a similarity.
381-
min-similarity-lines=8
382+
min-similarity-lines=50
382383

383384

384385
[SPELLING]
@@ -522,7 +523,7 @@ valid-metaclass-classmethod-first-arg=cls
522523
[DESIGN]
523524

524525
# Maximum number of arguments for function / method.
525-
max-args=5
526+
max-args=15
526527

527528
# Maximum number of attributes for a class (see R0902).
528529
max-attributes=7
@@ -531,10 +532,10 @@ max-attributes=7
531532
max-bool-expr=5
532533

533534
# Maximum number of branch for function / method body.
534-
max-branches=12
535+
max-branches=50
535536

536537
# Maximum number of locals for function / method body.
537-
max-locals=15
538+
max-locals=30
538539

539540
# Maximum number of parents for a class (see R0901).
540541
max-parents=7
@@ -546,7 +547,7 @@ max-public-methods=20
546547
max-returns=6
547548

548549
# Maximum number of statements in function / method body.
549-
max-statements=50
550+
max-statements=150
550551

551552
# Minimum number of public methods for a class (see R0903).
552553
min-public-methods=2

src/archetype/template/tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ commands =
4848
coverage html -d {toxworkdir}/htmlcov
4949

5050
[isort]
51-
line_length = 88
51+
line_length = 200
5252
multi_line_output = 3
5353
force_grid_wrap = 0
5454
use_parentheses = True
@@ -57,7 +57,7 @@ known_first_party = aist, projectnameplaceholder
5757

5858
[flake8]
5959
ignore = E203, E266, E501, W503
60-
max-line-length = 88
60+
max-line-length = 200
6161
max-complexity = 10
6262
select = B,C,E,F,W,T4,B9
6363
import-order-style = google

0 commit comments

Comments
 (0)