Skip to content

Commit

Permalink
Add .pylintrc to disable unwanted warnings
Browse files Browse the repository at this point in the history
Previously warnings from pylint where suppressed manually in the codacy
UI, however this only allows for global disables. The .pylintrc
configuration file let us ignore individual warnings that we do not care
about.
  • Loading branch information
ShikhaMishra9 committed Apr 2, 2019
1 parent 112c7e3 commit 9aecaa2
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
38 changes: 38 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@


# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once). You can also use "--disable=all" to
# disable everything first and then reenable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --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=Redefining built-in 'dir',
Redefining built-in 'type',
Redefining built-in 'open',
Redefining built-in 'format',
Redefining built-in 'zip',
Redefining built-in 'range',
Unused import small,
C0204 # Metaclass class method %s should have %s as first argument,
C0111 # Missing %s docstring,
C0301 # Line too long ,
C0304 # Final newline missing,
C0321 # More than one statement on a single line,
C0103 # Invalid name,
C0112 # Empty %s docstring,
C0326 # space,
W0231 # __init__ method from base class %r is not called,
W0312 # Found indentation with %ss instead of %ss,
W0212 # Access to a protected member %s of a client class,
W0223 # Method %r is abstract in class %r but is not overridden,
W0311 # Bad indentation. Found %s %s, expected %s,
W1111 # Assigning to function call which only returns None,
R0903 # Too few public methods,
W0201 # Attribute %r defined outside __init__,
R0914 # Too many local variables,
W0613 # Unused argument ,
W0211 # Static method with %r as first argument,
W0301 # Unnecessary semicolon
2 changes: 0 additions & 2 deletions python/segyio/depth.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import numpy as np
try: from future_builtins import zip
except ImportError: pass

from .tracesortingformat import TraceSortingFormat as Sorting
from .trace import Sequence
from .utils import castarray

Expand Down
1 change: 0 additions & 1 deletion python/segyio/tools.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import segyio
from . import TraceField
from . import TraceSortingFormat
from . import SegySampleFormat

Expand Down

0 comments on commit 9aecaa2

Please sign in to comment.