Skip to content

Commit

Permalink
Quiet pylint on code in tests/, math import.
Browse files Browse the repository at this point in the history
disallowed-name picks up on 'foo' name used in tests. The rest of the
disallowed names are not something I'd use in src/, anyway.

On macOS the 'math' module apparently has C bindings, and pylint wasn't
correctly seeing math.isnan; c.f. pylint-dev/pylint#4592
  • Loading branch information
spthm committed Sep 14, 2021
1 parent 94b6cad commit f7eab45
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[MASTER]

# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-allow-list=math

[MESSAGES CONTROL]

# Disable the message, report, category or checker with the given id(s). You
Expand All @@ -9,7 +16,8 @@
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
disable=missing-class-docstring,
disable=disallowed-name,
missing-class-docstring,
missing-function-docstring,
missing-method-docstring,
missing-module-docstring,
Expand Down Expand Up @@ -60,7 +68,7 @@ min-similarity-lines=5
[BASIC]

# Good variable names which should always be accepted, separated by a comma.
good-names=c,e,i,j,k,m,n,s,t,x,gt,lt,op
good-names=a,b,c,e,i,j,k,m,n,s,t,v,x,gt,lt,op


[DESIGN]
Expand Down

0 comments on commit f7eab45

Please sign in to comment.