Skip to content

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

ignoring E203 flake8 error ignoring implicit-str-concat pylint error fixing pylint comment on test_request_cb_kwargs.py

Emmanuel Rondan1a3db8149224
diff --git a/.flake8 b/.flake8
index 0c64d009e..544d72956 100644
--- a/.flake8
+++ b/.flake8
@@ -1,7 +1,7 @@
[flake8]
max-line-length = 119
-ignore = W503
+ignore = W503, E203
exclude =
docs/conf.py
diff --git a/pylintrc b/pylintrc
index 0a2276fb8..94465fca4 100644
--- a/pylintrc
+++ b/pylintrc
@@ -28,6 +28,7 @@ disable=abstract-method,
fixme,
function-redefined,
global-statement,
+ implicit-str-concat,
import-error,
import-outside-toplevel,
import-self,
diff --git a/tests/test_request_cb_kwargs.py b/tests/test_request_cb_kwargs.py
index 5a3dae103..454b68942 100644
--- a/tests/test_request_cb_kwargs.py
+++ b/tests/test_request_cb_kwargs.py
@@ -106,8 +106,8 @@ class KeywordArgumentsSpider(MockServerSpider):
self.crawler.stats.inc_value("boolean_checks", 3)
elif response.url.endswith("/general_without"):
self.checks.append(
- kwargs == {}
- ) # pylint: disable=use-implicit-booleaness-not-comparison
+ kwargs == {} # pylint: disable=use-implicit-booleaness-not-comparison
+ )
self.crawler.stats.inc_value("boolean_checks")
def parse_no_kwargs(self, response):