mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 08:00:54 +00:00
Match linting rules after merging in template
This commit is contained in:
4
mypy.ini
4
mypy.ini
@ -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
|
||||||
|
|
||||||
|
|||||||
17
setup.py
17
setup.py
@ -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",
|
||||||
|
|||||||
@ -1,4 +1,2 @@
|
|||||||
|
|
||||||
|
|
||||||
def test_import():
|
def test_import():
|
||||||
import <MODULE_NAME> # noqa: F401
|
import <MODULE_NAME> # noqa: F401
|
||||||
|
|||||||
4
tox.ini
4
tox.ini
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user