Skip to content

Commit

Permalink
Merge pull request #598 from NBISweden/develop
Browse files Browse the repository at this point in the history
Prepare for SweFreq v26
  • Loading branch information
talavis authored Aug 26, 2019
2 parents 2e51da0 + 5b836d9 commit 575f066
Show file tree
Hide file tree
Showing 50 changed files with 3,626 additions and 2,179 deletions.
123 changes: 39 additions & 84 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ ignore-patterns=
#init-hook=

# Use multiple processes to speed up Pylint.
jobs=1
jobs=2

# Control the amount of potential inferred values when inferring a single
# object. This can help the performance when dealing with large functions or
# complex, nested conditions.
limit-inference-results=100

# List of plugins (as comma separated values of python modules names) to load,
# usually to register additional checkers.
Expand Down Expand Up @@ -54,92 +59,20 @@ 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,
disable=too-few-public-methods,
missing-docstring,
logging-not-lazy,
logging-fstring-interpolation,
logging-format-interpolation,
import-error,
missing-docstring,
abstract-method,
bad-continuation,
logging-format-interpolation,
invalid-name,
bad-whitespace,
wrong-import-order,
too-few-public-methods,
keyword-arg-before-vararg,
arguments-differ,
line-too-long,
import-error,
no-self-use
attribute-defined-outside-init,
relative-beyond-top-level

# 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 @@ -178,6 +111,11 @@ score=yes
# Maximum number of nested blocks for function / method body
max-nested-blocks=5

# Complete name of functions that never returns. When checking for
# inconsistent-return-statements if a never returning function is called then
# it will be considered as an explicit return statement and no message will be
# printed.
never-returning-functions=sys.exit

[BASIC]

Expand Down Expand Up @@ -329,6 +267,10 @@ single-line-if-stmt=no
# function parameter format
logging-modules=logging

# Format style used to check logging format string. `old` means using %
# formatting, while `new` is for `{}` formatting.
logging-format-style=new


[MISCELLANEOUS]

Expand Down Expand Up @@ -373,6 +315,14 @@ spelling-private-dict-file=
spelling-store-unknown-words=no


[STRING]

# This flag controls whether the implicit-str-concat-in-sequence should
# generate a warning on implicit string concatenation in sequences defined over
# several lines.
check-str-concat-over-line-jumps=no


[TYPECHECK]

# List of decorators that produce context managers, such as
Expand All @@ -389,6 +339,10 @@ generated-members=
# mixin class is detected if its name ends with "mixin" (case insensitive).
ignore-mixin-members=yes

# Tells whether to warn about missing members when the owner of the attribute
# is inferred to be None.
ignore-none=yes

# This flag controls whether pylint should warn about no-member and similar
# checks whenever an opaque object is returned when inferring. The inference
# can return multiple potential results while evaluating a Python object, but
Expand Down Expand Up @@ -470,7 +424,7 @@ exclude-protected=_asdict,
valid-classmethod-first-arg=cls

# List of valid names for the first argument in a metaclass class method.
valid-metaclass-classmethod-first-arg=mcs
valid-metaclass-classmethod-first-arg=cls


[DESIGN]
Expand Down Expand Up @@ -542,5 +496,6 @@ known-third-party=enchant
[EXCEPTIONS]

# Exceptions that will emit a warning when being caught. Defaults to
# "Exception"
overgeneral-exceptions=Exception
# "BaseException, Exception".
overgeneral-exceptions=BaseException,
Exception
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ before_install:
install:
- pip install -r backend/requirements.txt
- pip install -r test/requirements.txt
- pip install -r scripts/importer/requirements.txt
- pip install coverage coveralls
- pip install pylint
script:
- test/travis_script.sh
addons:
Expand Down
Loading

0 comments on commit 575f066

Please sign in to comment.