diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3e71440..1eb645c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,7 @@ repos: types: [python] - repo: https://github.com/PyCQA/pylint - rev: pylint-2.5.2 + rev: 'v2.17.7' hooks: - id: pylint additional_dependencies: @@ -41,7 +41,7 @@ repos: "deprecation", "aio-pika~=6.6,<6.8.2", "pamqp~=2.0", - "pyyaml~=5.1", + "pyyaml~=6.0", "pytest~=5.4", "pytest-notebook", "pika", @@ -53,10 +53,16 @@ repos: "--disable=duplicate-code", "--disable=import-outside-toplevel", "--disable=missing-docstring", - "--disable=bad-continuation", "--disable=locally-disabled", "--disable=too-few-public-methods", "--disable=too-many-arguments", "--disable=too-many-instance-attributes", + "--disable=unspecified-encoding", + "--disable=consider-using-with", + "--disable=no-else-raise", + "--disable=raise-missing-from", + "--disable=not-async-context-manager", + "--disable=superfluous-parens", + "--disable=use-list-literal", ] exclude: *exclude_files diff --git a/kiwipy/rmq/communicator.py b/kiwipy/rmq/communicator.py index e90a05f..e9fa721 100644 --- a/kiwipy/rmq/communicator.py +++ b/kiwipy/rmq/communicator.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# pylint: disable=cyclic-import import asyncio from functools import partial import copy diff --git a/kiwipy/rmq/tasks.py b/kiwipy/rmq/tasks.py index c9ab467..bb24794 100644 --- a/kiwipy/rmq/tasks.py +++ b/kiwipy/rmq/tasks.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# pylint: disable=cyclic-import import asyncio import collections import contextlib diff --git a/kiwipy/rmq/threadcomms.py b/kiwipy/rmq/threadcomms.py index cfe3e0f..c503efb 100644 --- a/kiwipy/rmq/threadcomms.py +++ b/kiwipy/rmq/threadcomms.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# pylint: disable=cyclic-import import asyncio from contextlib import contextmanager import concurrent.futures @@ -132,7 +133,6 @@ def __init__( "replacement and the class should be reinstantiated if it's been closed." ) def start(self): - # pylint: disable=no-self-use raise DeprecationWarning( 'This method was deprecated in v0.6.0 and will be removed in 0.7.0. There is no ' "replacement and the class should be reinstantiated if it's been closed." diff --git a/setup.py b/setup.py index 33f10c0..587797e 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ 'sphinx', 'sphinx-autobuild', ], - 'pre-commit': ['pre-commit~=2.2', 'pylint==2.5.2'], + 'pre-commit': ['pre-commit~=2.2'], 'rmq': ['aio-pika~=6.6,<6.8.2', 'pamqp~=2.0', 'pyyaml~=6.0'], 'tests': [ 'coverage',