Match linting rules after merging in template

This commit is contained in:
Jason Carver
2019-11-26 12:55:59 -08:00
parent 27da312285
commit d1b5a56ccf
4 changed files with 11 additions and 16 deletions

View File

@ -6,13 +6,13 @@ disallow_untyped_defs = True
disallow_any_generics = True disallow_any_generics = True
disallow_untyped_calls = True disallow_untyped_calls = True
disallow_untyped_decorators = True disallow_untyped_decorators = True
disallow_subclassing_any = True disallow_subclassing_any = False
ignore_missing_imports = True ignore_missing_imports = True
strict_optional = False strict_optional = False
warn_unused_ignores = True warn_unused_ignores = True
strict_equality = True strict_equality = True
warn_redundant_casts = True warn_redundant_casts = True
warn_return_any = True warn_return_any = False
warn_unused_configs = True warn_unused_configs = True
warn_unreachable = True warn_unreachable = True

View File

@ -1,9 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from setuptools import ( from setuptools import find_packages, setup
setup,
find_packages,
)
extras_require = { extras_require = {
"test": [ "test": [
@ -21,7 +18,7 @@ extras_require = {
"flake8-bugbear>=19.8.0,<20", "flake8-bugbear>=19.8.0,<20",
"docformatter>=1.3.1,<2", "docformatter>=1.3.1,<2",
], ],
'doc': [ "doc": [
"Sphinx>=1.6.5,<2", "Sphinx>=1.6.5,<2",
"sphinx_rtd_theme>=0.4.3,<=1", "sphinx_rtd_theme>=0.4.3,<=1",
"towncrier>=19.2.0, <20", "towncrier>=19.2.0, <20",
@ -38,10 +35,10 @@ extras_require = {
} }
extras_require["dev"] = ( extras_require["dev"] = (
extras_require['dev'] + # noqa: W504 extras_require["dev"]
extras_require['test'] + # noqa: W504 + extras_require["test"]
extras_require['lint'] + # noqa: W504 + extras_require["lint"]
extras_require['doc'] + extras_require["doc"]
) )
@ -74,7 +71,7 @@ setup(
], ],
python_requires=">=3.7,<4", python_requires=">=3.7,<4",
extras_require=extras_require, extras_require=extras_require,
py_modules=['<MODULE_NAME>'], py_modules=["<MODULE_NAME>"],
license="MIT/APACHE2.0", license="MIT/APACHE2.0",
zip_safe=False, zip_safe=False,
keywords="libp2p p2p", keywords="libp2p p2p",

View File

@ -1,4 +1,2 @@
def test_import(): def test_import():
import <MODULE_NAME> # noqa: F401 import <MODULE_NAME> # noqa: F401

View File

@ -9,10 +9,10 @@ envlist =
docs docs
[isort] [isort]
combine_as_imports=True combine_as_imports=False
force_sort_within_sections=True force_sort_within_sections=True
include_trailing_comma=True include_trailing_comma=True
known_third_party=hypothesis,pytest,p2pclient,pexpect known_third_party=hypothesis,pytest,p2pclient,pexpect,factory
known_first_party=<MODULE_NAME> known_first_party=<MODULE_NAME>
line_length=88 line_length=88
multi_line_output=3 multi_line_output=3