diff --git a/mypy.ini b/mypy.ini index 1dd91ee7..fffd2aa8 100644 --- a/mypy.ini +++ b/mypy.ini @@ -6,13 +6,13 @@ disallow_untyped_defs = True disallow_any_generics = True disallow_untyped_calls = True disallow_untyped_decorators = True -disallow_subclassing_any = True +disallow_subclassing_any = False ignore_missing_imports = True strict_optional = False warn_unused_ignores = True strict_equality = True warn_redundant_casts = True -warn_return_any = True +warn_return_any = False warn_unused_configs = True warn_unreachable = True diff --git a/setup.py b/setup.py index f823a15c..c0b6f353 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -from setuptools import ( - setup, - find_packages, -) +from setuptools import find_packages, setup extras_require = { "test": [ @@ -21,7 +18,7 @@ extras_require = { "flake8-bugbear>=19.8.0,<20", "docformatter>=1.3.1,<2", ], - 'doc': [ + "doc": [ "Sphinx>=1.6.5,<2", "sphinx_rtd_theme>=0.4.3,<=1", "towncrier>=19.2.0, <20", @@ -38,10 +35,10 @@ extras_require = { } extras_require["dev"] = ( - extras_require['dev'] + # noqa: W504 - extras_require['test'] + # noqa: W504 - extras_require['lint'] + # noqa: W504 - extras_require['doc'] + extras_require["dev"] + + extras_require["test"] + + extras_require["lint"] + + extras_require["doc"] ) @@ -74,7 +71,7 @@ setup( ], python_requires=">=3.7,<4", extras_require=extras_require, - py_modules=[''], + py_modules=[""], license="MIT/APACHE2.0", zip_safe=False, keywords="libp2p p2p", diff --git a/tests/core/test_import.py b/tests/core/test_import.py index f146ae79..07b2a18e 100644 --- a/tests/core/test_import.py +++ b/tests/core/test_import.py @@ -1,4 +1,2 @@ - - def test_import(): import # noqa: F401 diff --git a/tox.ini b/tox.ini index 52d621cf..ce0fbe01 100644 --- a/tox.ini +++ b/tox.ini @@ -9,10 +9,10 @@ envlist = docs [isort] -combine_as_imports=True +combine_as_imports=False force_sort_within_sections=True include_trailing_comma=True -known_third_party=hypothesis,pytest,p2pclient,pexpect +known_third_party=hypothesis,pytest,p2pclient,pexpect,factory known_first_party= line_length=88 multi_line_output=3