-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
132 lines (112 loc) · 2.56 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "pyfortinet"
authors = [ {name = "Viktor Kertesz", email = "[email protected]"},
]
readme = "README.md"
requires-python = ">=3.9,<4"
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: System :: Networking",
]
dynamic = ['version', 'description']
dependencies = [
"pydantic>2,<3",
"pydantic-settings",
"typer",
"requests==2.31.0",
"ruamel.yaml==0.17.20",
"more-itertools",
]
[project.optional-dependencies]
dev = [
"pytest-cov",
"pytest",
"pytest-async",
"pytest-dependency",
"flit",
"invoke",
"pre-commit",
"ruff",
# mkdocs dependencies
"mkdocs",
"mkdocs-material",
"mkdocs-gen-files",
"mkdocs-literate-nav",
"mkdocs-section-index",
"mkdocstrings",
"mkdocstrings-python",
# optional dependencies
"rich",
"aiohttp",
]
# fancy ouput should be optional
rich = [
"rich"
]
# async should be optional
async = [
"aiohttp"
]
# to ease installing all optional dependencies
all = [
"rich",
"aiohttp"
]
[tool.flit.module]
name = "pyfortinet"
[project.scripts]
#fortiapi = "pyfortinet.main:main" # TDB
[project.urls]
Source = "https://github.com/realvitya/pyfortinet"
Documentation = "https://realvitya.github.io/pyfortinet/"
[tool.pytest.ini_options]
minversion = "6.0"
#addopts = "-ra -q --cov=fortimanager_template_sync --cov-report=term-missing"
asyncio_mode = "auto"
testpaths = [
"tests"
]
[tool.ruff]
# docs: https://docs.astral.sh/ruff
line-length = 120
indent-width = 4
target-version = "py39"
extend-exclude = ["private", ".idea", "example", "docs", "site"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# pylint
"PL",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pymarkdown]
plugins.md013.line_length = 120
plugins.md013.code_block_line_length = 120
plugins.md046.enabled = false # interfere with Note, Tip and similar boxes