mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
init
This commit is contained in:
35
tox.ini
Normal file
35
tox.ini
Normal file
@ -0,0 +1,35 @@
|
||||
[tox]
|
||||
envlist=
|
||||
py{35,36}-core
|
||||
lint
|
||||
|
||||
[isort]
|
||||
combine_as_imports=True
|
||||
force_sort_within_sections=True
|
||||
include_trailing_comma=True
|
||||
known_standard_library=pytest
|
||||
known_first_party=<MODULE_NAME>
|
||||
line_length=21
|
||||
multi_line_output=3
|
||||
use_parentheses=True
|
||||
|
||||
[flake8]
|
||||
max-line-length= 100
|
||||
exclude= venv*,.tox,docs,build
|
||||
ignore=
|
||||
|
||||
[testenv]
|
||||
usedevelop=True
|
||||
commands=
|
||||
core: py.test {posargs:tests/core}
|
||||
basepython =
|
||||
py35: python3.5
|
||||
py36: python3.6
|
||||
extras=test
|
||||
|
||||
[testenv:lint]
|
||||
basepython=python
|
||||
extras=lint
|
||||
commands=
|
||||
flake8 {toxinidir}/<MODULE_NAME> {toxinidir}/tests
|
||||
isort --recursive --check-only --diff {toxinidir}/<MODULE_NAME> {toxinidir}/tests
|
||||
Reference in New Issue
Block a user