-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
103 lines (90 loc) · 2.94 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
[tool.poetry]
name = "netmikro"
version = "0.1.0"
description = "Netmikro is a simple library that provides an easy way to manage Mikrotik routers, simplifying configuration and monitoring tasks."
authors = ["Henrique Sebastião <contato@henriquesebastiao.com>"]
readme = "README.md"
packages = [{include = "netmikro"}]
classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Intended Audience :: Telecommunications Industry",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Topic :: System :: Networking :: Firewalls",
"Topic :: System :: Networking",
"Topic :: System :: Networking :: Monitoring :: Hardware Watchdog",
"Topic :: Utilities",
]
[tool.poetry.urls]
"Documentation" = "https://netmikro.henriquesebastiao.com"
"Homepage" = "https://netmikro.henriquesebastiao.com"
"Repository" = "https://github.com/henriquesebastiao/netmikro"
"Bug Tracker" = "https://github.com/henriquesebastiao/netmikro/issues"
[tool.poetry.dependencies]
python = "^3.11"
netmiko = "^4.4.0"
python-dotenv = "^1.0.1"
pydantic = "^2.8.2"
[tool.poetry.group.dev.dependencies]
pytest-cov = ">=4.1,<7.0"
taskipy = "^1.13.0"
coverage-badge = "^1.1.2"
setuptools = ">=69.5.1,<76.0.0"
pytest = "^8.3.2"
bandit = {extras = ["toml"], version = "^1.7.9"}
radon = {extras = ["toml"], version = "^6.0.1"}
ruff = ">=0.6.2,<0.8.0"
[tool.poetry.group.doc.dependencies]
mkdocs-material = "^9.2.8"
mkdocstrings = ">=0.23,<0.28"
mkdocstrings-python = "^1.6.2"
mkdocs-macros-plugin = "^1.0.5"
jinja2 = "^3.1.3"
pygments = "^2.17.2"
pymdown-extensions = "^10.7"
mkdocs-git-committers-plugin-2 = "^2.2.3"
mkdocs-git-authors-plugin = ">=0.7.2,<0.10.0"
mkdocs-git-revision-date-localized-plugin = "^1.2.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
pythonpath = "."
[tool.coverage.run]
source = [
"netmikro",
]
omit = [
"/tests/*",
]
[tool.ruff]
line-length = 79
extend-exclude = ['']
[tool.ruff.lint]
preview = true
select = ['I', 'F', 'E', 'W', 'PL', 'PT', 'D', 'UP']
ignore = ['D100', 'D104', 'D105', 'D107', 'E501', 'PLR0914']
[tool.ruff.format]
preview = true
quote-style = 'single'
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F403", "F401"]
"tests/*" = ["F401", "F811", "D"]
"validators.py" = ["D"]
[tool.taskipy.tasks]
mypy = "mypy -p netmikro"
radon = "radon cc ./netmikro -a -na"
bandit = "bandit -r ./netmikro"
lint = "ruff check .; ruff check . --diff"
format = 'ruff format .; ruff check . --fix'
doc = "mkdocs serve"
badge = "coverage-badge -o docs/assets/coverage.svg -f"
pre_test = "task lint"
test = "pytest -s -x --cov=netmikro -vv"
post_test = "coverage html"
export-requirements-doc = "poetry export -f requirements.txt --output docs/requirements.txt --without-hashes --only doc"