diff --git a/docs/thanks.rst b/docs/thanks.rst index f973935..b8bc737 100644 --- a/docs/thanks.rst +++ b/docs/thanks.rst @@ -55,5 +55,4 @@ Projects - `mypy `__ - `ruff `__ - `Flake8 `__ -- `Pylint `__ - `pre-commit `__ diff --git a/tests/property_tests/_strategies.py b/tests/property_tests/_strategies.py index cf2e7d7..717c3e3 100644 --- a/tests/property_tests/_strategies.py +++ b/tests/property_tests/_strategies.py @@ -112,7 +112,7 @@ OBI_AND_OMAP_FROM_SAME_ITEMS_DIFF_ORDER = st.tuples( _cmpdict = lambda i: (OrderedDict if isinstance(i, OrderedBidictBase) else dict) # noqa: E731 BI_AND_CMPDICT_FROM_SAME_ITEMS = L_PAIRS_NODUP.map( - lambda items: (lambda b: (b, _cmpdict(b)(items)))(_bidict_strat(BIDICT_TYPES, items)) # pylint: disable=unnecessary-direct-lambda-call + lambda items: (lambda b: (b, _cmpdict(b)(items)))(_bidict_strat(BIDICT_TYPES, items)) ) ARGS_ATOM = st.tuples(ATOMS) diff --git a/tests/property_tests/test_properties.py b/tests/property_tests/test_properties.py index ed96d34..265db19 100644 --- a/tests/property_tests/test_properties.py +++ b/tests/property_tests/test_properties.py @@ -488,7 +488,7 @@ def test_pickle_orderedbi_whose_order_disagrees_w_fwdm(): """An OrderedBidict whose order does not match its _fwdm's should pickle with the correct order.""" ob = OrderedBidict({0: 1, 2: 3}) # First get ob._fwdm's order to disagree with ob's, and confirm: - ob.inverse[1] = 4 # pylint: disable=unsupported-assignment-operation + ob.inverse[1] = 4 assert next(iter(ob.items())) == (4, 1) assert next(iter(ob.inverse.items())) == (1, 4) assert next(iter(ob._fwdm.items())) == (2, 3) @@ -557,7 +557,7 @@ def test_deepcopy(bi): def test_iteritems_raises_on_too_many_args(): """:func:`iteritems` should raise if given too many arguments.""" with pytest.raises(TypeError): - iteritems('too', 'many', 'args') # pylint: disable=too-many-function-args + iteritems('too', 'many', 'args') @given(st.I_PAIRS, st.DICTS_KW_PAIRS) @@ -603,7 +603,6 @@ def test_views(bi, data): """Optimized view APIs should be equivalent to using the corresponding MappingViews from :mod:`collections.abc`.""" for check, oracle in (bi.keys(), KeysView(bi)), (bi.values(), ValuesView(bi)), (bi.items(), ItemsView(bi)): # 0-arity methods: __len__, __iter__ - # pylint: disable=unnecessary-dunder-call assert check.__len__() == oracle.__len__() assert list(check.__iter__()) == list(oracle.__iter__()) # 1-arity methods: __contains__ diff --git a/tests/test_class_relationships.py b/tests/test_class_relationships.py index c708e0c..1ef5309 100644 --- a/tests/test_class_relationships.py +++ b/tests/test_class_relationships.py @@ -120,7 +120,7 @@ def test_abstract_bimap_init_fails(): """Instantiating `AbstractBimap` should fail with expected TypeError.""" excmatch = r"Can't instantiate abstract class AbstractBimap with abstract methods .* inverse" with pytest.raises(TypeError, match=excmatch): - AbstractBimap() # pylint: disable=abstract-class-instantiated + AbstractBimap() def test_bimap_inverse_notimplemented():