1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
|
[tool.poetry]
name = "anytree"
version = "2.12.1"
description = "Powerful and Lightweight Python Tree Data Structure with various plugins"
authors = [
"c0fec0de <c0fec0de@gmail.com>"
]
readme = "README.rst"
license = "Apache-2.0"
keywords = [
"tree",
"tree data",
"treelib",
"tree walk",
"tree structure",
]
classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
[project]
name = "anytree"
[project.urls]
"Homepage" = "https://github.com/c0fec0de/anytree"
"Documentation" = "https://anytree.readthedocs.io/en/latest/"
"Bug Tracker" = "https://github.com/c0fec0de/anytree/issues"
[tool.poetry.dependencies]
python = ">= 3.7.2, < 4"
six = '*'
[tool.poetry.group.test.dependencies]
black = '^22.3.0'
coverage = '^6.4.4'
isort = '^5.9'
pylint = '^2.15'
pytest = '^6.2'
pyyaml = ">=6.0"
[tool.poetry.group.doc.dependencies]
sphinx = '*'
[build-system]
requires = ["poetry_core>=1.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.mypy_cache
| \.venv
| \.tox
| build
| dist
| setup\.py
)/
'''
[tool.isort]
profile = "black"
line_length = 120
[tool.coverage.report]
exclude_lines = [
'return NotImplemented',
'raise NotImplementedError()',
'pragma: no cover',
]
[tool.pylint.'MESSAGES CONTROL']
max-line-length = 120
disable = [
'consider-using-f-string',
'duplicate-code',
'missing-class-docstring',
'missing-module-docstring',
'redundant-u-string-prefix',
'too-few-public-methods',
'too-many-arguments',
'too-many-instance-attributes',
'super-with-arguments', # TBD
]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py
isolated_build = True
[tox:.package]
basepython = python3
[testenv]
allowlist_externals = *
setenv =
ANYTREE_ASSERTIONS=1
commands =
poetry install --with=test --with=doc
poetry run black .
poetry run isort .
poetry run coverage run --source=anytree --branch -m pytest --doctest-glob=docs/*.rst --doctest-modules --ignore-glob=tests/testdata* --ignore=docs/conf.py --log-level=DEBUG -vv --junitxml=report.xml
poetry run coverage report
poetry run coverage html
poetry run coverage xml
poetry run pylint anytree
poetry run make html -C docs
"""
|