Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Update pylint exceptions, and run pylint by default with tox

Adrián Chaves32a01e32f31b
diff --git a/pylintrc b/pylintrc
index 94465fca4..c8654b8d3 100644
--- a/pylintrc
+++ b/pylintrc
@@ -12,6 +12,7 @@ disable=abstract-method,
bad-mcs-classmethod-argument,
bare-except,
broad-except,
+ broad-exception-raised,
c-extension-no-member,
catching-non-exception,
cell-var-from-loop,
@@ -46,12 +47,14 @@ disable=abstract-method,
method-hidden,
missing-docstring,
no-else-raise,
+ no-else-return,
no-member,
no-method-argument,
no-name-in-module,
no-self-argument,
no-value-for-parameter,
not-callable,
+ pointless-exception-statement,
pointless-statement,
pointless-string-statement,
protected-access,
@@ -87,6 +90,7 @@ disable=abstract-method,
unused-private-member,
unused-variable,
unused-wildcard-import,
+ use-dict-literal,
used-before-assignment,
useless-object-inheritance, # Required for Python 2 support
useless-return,
diff --git a/tox.ini b/tox.ini
index 7385e4468..77385968e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,7 +4,7 @@
# and then run "tox" from this directory.
[tox]
-envlist = pre-commit,typing,py
+envlist = pre-commit,pylint,typing,py
minversion = 1.7.0
[testenv]