Match linting rules after merging in template
This commit is contained in:
parent
27da312285
commit
d1b5a56ccf
4
mypy.ini
4
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
|
||||
|
||||
|
|
17
setup.py
17
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=['<MODULE_NAME>'],
|
||||
py_modules=["<MODULE_NAME>"],
|
||||
license="MIT/APACHE2.0",
|
||||
zip_safe=False,
|
||||
keywords="libp2p p2p",
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
|
||||
|
||||
def test_import():
|
||||
import <MODULE_NAME> # noqa: F401
|
||||
|
|
4
tox.ini
4
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=<MODULE_NAME>
|
||||
line_length=88
|
||||
multi_line_output=3
|
||||
|
|
Loading…
Reference in New Issue
Block a user