-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
156 lines (134 loc) · 4.13 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
155
156
[build-system]
requires = ["poetry-core==1.9.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "dataplaybook"
version = "1.0.20"
description = "Playbooks for data. Open, process and save table based data."
authors = ["Johann Kellerman <kellerza@gmail.com>"]
readme = "README.md"
packages = [{ include = "dataplaybook" }]
license = "Apache-2.0"
repository = "https://github.com/kellerza/data-playbook"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
keywords = ["data", "tables", "excel", "mongodb", "generators"]
[tool.poetry.extras]
mongodb = ["pymongo"]
lxml = ["lxml", "types-lxml"]
all = ["pymongo", "python-pptx", "O365", "lxml", "types-lxml"]
[tool.poetry.dependencies]
python = ">3.10"
pymongo = { version = "*", optional = true }
python-pptx = { version = "*", optional = true }
O365 = { version = ">=1.0.4,<2", optional = true }
lxml = { version = "^5.3.0", optional = true }
attrs = ">21"
colordict = "^1.2.6"
colorlog = "*"
voluptuous = ">=0.11.5"
jinja2 = ">=3,<4"
openpyxl = ">=3,<4"
typeguard = ">=2,<3"
icecream = "*"
fuzzywuzzy = "*"
python-Levenshtein = "*"
requests = ">=2.0.0"
typing-extensions = "*"
[tool.poetry.group.dev.dependencies]
types-lxml = { version = "^2024.9.16", optional = true }
pytest = "*"
pytest-aiohttp = "*"
pytest-cov = "*"
pytest-github-actions-annotate-failures = "*"
types-requests = "*"
pylint = "*"
python-semantic-release = "*"
[tool.poetry.scripts]
dataplaybook = "dataplaybook.__main__:main"
[tool.semantic_release]
commit = true
tag = true
vcs_release = true
commit_parser = "emoji"
# https://python-semantic-release.readthedocs.io/en/latest/configuration.html#version-toml
version_variables = ["dataplaybook/const.py:VERSION"]
version_toml = ["pyproject.toml:tool.poetry.version"]
build_command = "pip install poetry && poetry build"
commit_version_number = true
# https://python-semantic-release.readthedocs.io/en/latest/multibranch_releases.html#configuring-multibranch-releases
[tool.semantic_release.branches.main]
#match = 'v\d+\.\d+\.\d+'
match = "master"
[tool.semantic_release.commit_parser_options]
major_tags = [":boom:"]
minor_tags = [":rockets:"]
patch_tags = [":ambulance:", ":lock:", ":bug:", ":dolphin:"]
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py311"
src = ["src", "test"]
extend-exclude = ["src/rfr"]
include = ["tests/*.py", "src/**/*.py"]
[tool.ruff.lint]
select = ["F", "E", "W", "I001"]
ignore = ["E203", "E501"]
[tool.ruff.lint.flake8-import-conventions]
banned-from = ["typing"]
[tool.ruff.lint.isort]
no-lines-before = ["future", "standard-library"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"
[tool.mypy]
disallow_untyped_defs = true
ignore_missing_imports = true
exclude = ["dataplaybook/tasks/fnb.py"]
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[tool.pylint.MASTER]
ignore-paths = ['build']
# https://stackoverflow.com/questions/64162504/settings-for-pylint-in-setup-cfg-are-not-getting-used
[tool.pylint.'MESSAGES CONTROL']
max-line-length = 120
good-names = ["db", "fr", "cr", "k", "i"]
disable = '''line-too-long,
unsubscriptable-object,
unused-argument,
too-many-branches,
too-many-locals,
too-many-statements,
too-many-instance-attributes,
too-few-public-methods,
R0401,
R0801,
wrong-import-order,
R0917,
too-many-positional-arguments,
'''
[tool.pylint.design]
# limiting the number of returns might discourage
# the use of guard clauses. So we increase the
# allowed number of returns from 6 to 8
max-returns = 8
[tool.pytest.ini_options]
pythonpath = ["dataplaybook"]
testpaths = ["dataplaybook"] #, "tests"]
filterwarnings = "ignore:.+@coroutine.+deprecated.+"
norecursedirs = [".git", "modules"]
log_cli = true
log_cli_level = "DEBUG"
asyncio_mode = "auto"