Skip to content

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

Make the pylint test pass (#5207)

Andrey Rahmatullin89b654b82df7
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index e7080db9a..6bdfcb5dc 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -19,6 +19,7 @@ jobs:
- python-version: 3.8
env:
TOXENV: pylint
+ TOX_PIP_VERSION: 20.3.3
- python-version: 3.9
env:
TOXENV: typing
@@ -37,5 +38,8 @@ jobs:
- name: Run check
env: ${{ matrix.env }}
run: |
+ if [[ ! -z "$TOX_PIP_VERSION" ]]; then
+ pip install tox-pip-version
+ fi
pip install -U tox
tox
diff --git a/.github/workflows/tests-ubuntu.yml b/.github/workflows/tests-ubuntu.yml
index b42e8b127..521d7ae70 100644
--- a/.github/workflows/tests-ubuntu.yml
+++ b/.github/workflows/tests-ubuntu.yml
@@ -40,6 +40,7 @@ jobs:
- python-version: 3.8
env:
TOXENV: extra-deps
+ TOX_PIP_VERSION: 20.3.3
- python-version: 3.9
env:
TOXENV: asyncio
@@ -68,6 +69,9 @@ jobs:
$PYPY_VERSION/bin/pypy3 -m venv "$HOME/virtualenvs/$PYPY_VERSION"
source "$HOME/virtualenvs/$PYPY_VERSION/bin/activate"
fi
+ if [[ ! -z "$TOX_PIP_VERSION" ]]; then
+ pip install tox-pip-version
+ fi
pip install -U tox
tox
diff --git a/pylintrc b/pylintrc
index 972bf99de..a44712507 100644
--- a/pylintrc
+++ b/pylintrc
@@ -6,6 +6,7 @@ jobs=1 # >1 hides results
disable=abstract-method,
anomalous-backslash-in-string,
arguments-differ,
+ arguments-renamed,
attribute-defined-outside-init,
bad-classmethod-argument,
bad-continuation,
@@ -21,6 +22,8 @@ disable=abstract-method,
cell-var-from-loop,
comparison-with-callable,
consider-iterating-dictionary,
+ consider-using-dict-items,
+ consider-using-from-import,
consider-using-in,
consider-using-set-comprehension,
consider-using-sys-exit,
@@ -105,6 +108,7 @@ disable=abstract-method,
unsubscriptable-object,
unused-argument,
unused-import,
+ unused-private-member,
unused-variable,
unused-wildcard-import,
used-before-assignment,