Skip to content

Commit

Permalink
Merge pull request #64 from SpiNNakerManchester/pylint_fix
Browse files Browse the repository at this point in the history
Pylint fix
  • Loading branch information
rowleya committed Jun 6, 2022
2 parents b2e5be9 + 864e61e commit 1f384d1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 97 deletions.
98 changes: 7 additions & 91 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019 The University of Manchester
# Copyright (c) 2019-2022 The University of Manchester
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -69,85 +69,7 @@ confidence=
# --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=print-statement,
parameter-unpacking,
unpacking-in-except,
old-raise-syntax,
backtick,
long-suffix,
old-ne-operator,
old-octal-literal,
import-star-module-level,
non-ascii-bytes-literal,
raw-checker-failed,
bad-inline-option,
locally-disabled,
locally-enabled,
file-ignored,
suppressed-message,
useless-suppression,
deprecated-pragma,
apply-builtin,
basestring-builtin,
buffer-builtin,
cmp-builtin,
coerce-builtin,
execfile-builtin,
file-builtin,
long-builtin,
raw_input-builtin,
reduce-builtin,
standarderror-builtin,
unicode-builtin,
xrange-builtin,
coerce-method,
delslice-method,
getslice-method,
setslice-method,
no-absolute-import,
old-division,
dict-iter-method,
dict-view-method,
next-method-called,
metaclass-assignment,
indexing-exception,
raising-string,
reload-builtin,
oct-method,
hex-method,
nonzero-method,
cmp-method,
input-builtin,
round-builtin,
intern-builtin,
unichr-builtin,
map-builtin-not-iterating,
zip-builtin-not-iterating,
range-builtin-not-iterating,
filter-builtin-not-iterating,
using-cmp-argument,
eq-without-hash,
div-method,
idiv-method,
rdiv-method,
exception-message-attribute,
invalid-str-codec,
sys-max-int,
bad-python3-import,
deprecated-string-function,
deprecated-str-translate-call,
deprecated-itertools-function,
deprecated-types-field,
next-method-defined,
dict-items-not-iterating,
dict-keys-not-iterating,
dict-values-not-iterating,
invalid-name,
too-many-lines,
global-statement,
fixme,
protected-access,
attribute-defined-outside-init
disable=

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down Expand Up @@ -321,13 +243,6 @@ max-line-length=100
# Maximum number of lines in a module
max-module-lines=1000

# List of optional constructs for which whitespace checking is disabled. `dict-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
# `empty-line` allows space-only lines.
no-space-check=trailing-comma,
dict-separator

# Allow the body of a class to be on the same line as the declaration if body
# contains single statement.
single-line-class-stmt=no
Expand All @@ -341,15 +256,15 @@ single-line-if-stmt=no

# Logging modules to check that the string format arguments are in logging
# function parameter format
logging-modules=logging
logging-modules=logging,FormatAdapter


[MISCELLANEOUS]

# List of note tags to take in consideration, separated by a comma.
notes=FIXME,
XXX,
TODO
XXX



[SIMILARITIES]
Expand Down Expand Up @@ -465,7 +380,8 @@ init-import=no
# List of method names used to declare (i.e. assign) instance attributes.
defining-attr-methods=__init__,
__new__,
setUp
_new_run_clear,
_machine_clear

# List of member names, which should be excluded from the protected access
# warning.
Expand Down
17 changes: 11 additions & 6 deletions spalloc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from spalloc._version import __version__ # noqa
from spalloc._version import __version__ # noqa: F401

# Alias useful objects
from spalloc.protocol_client import ProtocolClient, ProtocolError # noqa
from spalloc.protocol_client import ProtocolTimeoutError # noqa
from spalloc.protocol_client import SpallocServerException # noqa
from spalloc.job import Job, JobDestroyedError, StateChangeTimeoutError # noqa
from spalloc.states import JobState # noqa
from spalloc.protocol_client import ProtocolClient, ProtocolError
from spalloc.protocol_client import ProtocolTimeoutError
from spalloc.protocol_client import SpallocServerException
from spalloc.job import Job, JobDestroyedError, StateChangeTimeoutError
from spalloc.states import JobState

__all__ = [
"Job", "JobDestroyedError", "JobState", "ProtocolClient",
"ProtocolError", "ProtocolTimeoutError", "SpallocServerException",
"StateChangeTimeoutError"]

0 comments on commit 1f384d1

Please sign in to comment.