Skip to content

Commit

Permalink
pylint: Set a minimum duplicate match to 10 lines.
Browse files Browse the repository at this point in the history
This patch adjusts pylint to disregard duplicate matches
for up to 10 lines.

The number is chosen to permit overriding with up to
3 identical lines for `def arguments(self)` and
`def result(self)` while two more lines for `arity`
and `input_style` in the bignum test suite.

Signed-off-by: Minos Galanakis <[email protected]>
  • Loading branch information
minosgalanakis committed Dec 20, 2022
1 parent 82dad10 commit e080cc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[MASTER]
init-hook='import sys; sys.path.append("scripts")'
min-similarity-lines=10

[BASIC]
# We're ok with short funtion argument names.
Expand Down

0 comments on commit e080cc3

Please sign in to comment.