forked from networktocode/network-importer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
106 lines (96 loc) · 2.29 KB
/
pyproject.toml
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
[tool.poetry]
name = "network-importer"
version = "3.1.0"
description = "Network Importer tool to import an existing network into a Database / Source Of Truth"
authors = ["Network to Code, LLC <opensource@networktocode.com>"]
homepage = "https://github.com/networktocode/network-importer"
repository = "https://github.com/networktocode/network-importer"
keywords = ["network", "source-of-truth", "netbox", "diffsync"]
license = "Apache-2.0"
readme = "README.md"
include = [
"LICENSE",
"README.md",
"docs/*",
]
packages = [
{ include = "network_importer" },
]
[tool.poetry.dependencies]
python = "^3.8.0"
pynetbox = "^5.0"
toml = "^0.10"
nornir = "^3.0"
termcolor = "^1.1"
click = "^7.1 || ^8.0"
pydantic = "^1.6"
genie = "^22.7"
pyats = "^22.7"
netmiko = "^3.3"
ntc-templates = "^2.0"
structlog = "^20.1.0"
diffsync = "^1.2"
rich = "^9.2"
pynautobot = "^1.0.2"
nornir-napalm = "^0.1.2"
nornir-utils = "^0.1.2"
nornir-netmiko = "^0.1.1"
pybatfish = "2021.2.26.830"
[tool.poetry.dev-dependencies]
bandit = "^1.6"
pylint = "^2.4"
pyment = "^0.3"
pytest = "^5.4"
pdbpp = "^0.10.2"
requests_mock = "^1.7"
pyyaml = "^5.3"
black = "^22.6"
pydocstyle = "^5.0.2"
yamllint = "^1.20.0"
invoke = "^1.4.1"
flake8 = "^3.8.3"
[tool.poetry.scripts]
network-importer = 'network_importer.cli:main'
[tool.black]
line-length = 120
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.tox
| \.venv
| env/
| _build
| build
| dist
)/
'''
[tool.pylint.basic]
# No docstrings required for private methods (pylint default) or for test_ functions.
no-docstring-rgx="^(_|test_)"
[tool.pylint.messages_control]
# Line length is enforced by Black, so pylint doesn't need to check it.
# Pylint and Black disagree about how to format multi-line arrays; Black wins.
disable = """,
line-too-long,
duplicate-code,
too-few-public-methods,
consider-using-with,
unspecified-encoding,
use-dict-literal,
consider-using-from-import,
use-list-literal,
"""
[tool.pylint.miscellaneous]
# Don't flag TODO as a failure, let us commit with things that still need to be done in the code
notes = """,
FIXME,
XXX,
"""
[tool.pytest.ini_options]
testpaths = [
"tests"
]
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"