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_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

View File

@ -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=['<MODULE_NAME>'],
py_modules=["<MODULE_NAME>"],
license="MIT/APACHE2.0",
zip_safe=False,
keywords="libp2p p2p",

View File

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

View File

@ -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=<MODULE_NAME>
line_length=88
multi_line_output=3