-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
154 lines (133 loc) · 4.39 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[project]
name = "ram_lib"
version = "0.1.0"
description = "This library obtains RAMs modules asynchronously"
maintainers = [
{ name = "Francisco Javier Fraga Hernández", email = "[email protected]" }
]
authors = [
{ name = "Francisco Javier Fraga Hernández", email = "[email protected]" }
]
[tool.poetry]
name = "ram_lib"
version = "0.1.0"
description = "This library obtains RAMs modules asynchronously"
keywords = ["Python", "Library", "Unix", "RAM"]
license = "Apache License"
maintainers = [
"Francisco Javier Fraga Hernández <[email protected]>"
]
authors = [
"Francisco Javier Fraga Hernández <[email protected]>"
]
readme = "README.md"
repository = "https://pepe.es/pe.git"
[tool.poetry.dependencies]
python = "^3.11"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
sphinx = "^6.0"
sphinx-rtd-theme = "^1.2"
sphinx-pyproject = "^0.1"
[tool.poetry.group.tests]
optional = true
[tool.poetry.group.tests.dependencies]
bandit = "^1.7"
coverage = "^7.2"
cyclonedx-bom = "^3.11"
flake8="^6.0"
flake8-bandit = "^4.1"
flake8-bugbear = "^23.2"
flake8-builtins = "^2.1"
flake8-docstrings = "^1.7"
flake8-formatter-junit-xml = "^0.0"
flake8-html = "^0.4"
flake8-pyproject="^1.2"
mypy = { version = "^1.1", extras = ["reports"] }
nose2 = "^0.12"
nose2-html-report = "^0.6"
pep8-naming = "^0.13"
python-kacl = "^0.3"
shell_executor_lib = { git = "https://github.com/Lagatrix/shell_executor_lib.git", rev = "0.2.0" }
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
poethepoet = "^0.18"
[tool.poe.tasks]
build = { script = "scripts.build:regenerate" }
build-clean = { script = "scripts.build:clean" }
doc = { script = "scripts.doc:regenerate" }
doc-clean = { script = "scripts.doc:clean" }
export-dependencies = { script = "scripts.export_dependencies:regenerate" }
export-dependencies-clean = { script = "scripts.export_dependencies:clean" }
outdated-dependencies = { script = "scripts.outdated_dependencies:regenerate" }
outdated-dependencies-clean = { script = "scripts.outdated_dependencies:clean" }
test-changelog = { script = "scripts.test_changelog:execute" }
test-linter = { script = "scripts.test_linter:reexecute" }
test-linter-clean = { script = "scripts.test_linter:clean" }
test-tests = { script = "scripts.test_tests:retest" }
test-tests-clean = { script = "scripts.test_tests:clean" }
test-typing = { script = "scripts.test_typing:reexecute" }
test-typing-clean = { script = "scripts.test_typing:clean" }
test = [ "test-changelog", "test-linter", "test-typing", "test-tests", ]
test-clean = [ "test-linter-clean", "test-typing-clean", "test-tests-clean", ]
all = [ "build", "doc", "export-dependencies", "outdated-dependencies", "test-changelog", "test-linter",
"test-typing", "test-tests" ]
clean = [ "build-clean", "doc-clean", "export-dependencies-clean", "outdated-dependencies-clean",
"test-linter-clean", "test-typing-clean", "test-tests-clean"]
[tool.sphinx-pyproject]
html_theme = "sphinx_rtd_theme"
copyright = 'Lagatrix'
extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon"]
autodoc_default_options = { members = true, undoc-members = true, private-members = true, ignore-module-all = true }
[tool.coverage.run]
data_file = "reports/coverage/.coverage"
source = ["src"]
[tool.coverage.paths]
source = ["src"]
[tool.coverage.report]
skip_empty = true
exclude_lines = [
"pragma: no cover",
"pass"
]
[tool.coverage.html]
directory = "reports/coverage"
title = "Coverage for tests"
[tool.coverage.xml]
output = "reports/coverage/coverage.xml"
[tool.flake8]
format = "html"
htmldir = "reports/linter"
docstring-convention = "google"
max-line-length = 120
indent-size = 4
max-complexity = 10
color = "always"
show-source = true
statistics = true
per-file-ignores = "__init__.py:F401"
[tool.mypy]
html_report = "reports/typing"
junit_xml = "reports/typing/junit.xml"
files = "src, tests"
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_subclassing_any = true
check_untyped_defs = true
no_implicit_optional = true
show_error_codes = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
warn_unreachable = true
strict_equality = true
strict_concatenate = true
[build-system]
requires = ["poetry-core>=1.1.0"]
build-backend = "poetry.core.masonry.api"