forked from taraslayshchuk/es2csv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
178 lines (150 loc) · 4.28 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
[build-system]
requires = ["hatchling","hatch-requirements-txt"]
build-backend = "hatchling.build"
#Project
[project]
name = "esxport"
dynamic = ["version","dependencies","optional-dependencies"]
description = "An adept Python CLI utility designed for querying Elasticsearch and exporting result as a CSV file."
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.8"
license = {file = "LICENSE"}
authors = [
{ name = "Nikhil Badyal", email = "[email protected]" },
]
keywords = [
"bulk",
"csv",
"elasticsearch",
"es",
"export",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
"Topic :: Database",
"Topic :: Internet",
"Topic :: System :: Systems Administration",
"Topic :: Text Processing",
"Topic :: Utilities",
]
[project.urls]
Homepage = "https://github.com/nikhilbadyal/esxport"
"Bug Tracker"="https://github.com/nikhilbadyal/esxport/issues"
Repository = "https://github.com/nikhilbadyal/esxport.git"
[project.scripts]
esxport = "esxport.cli:cli"
#Hatch
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.metadata.hooks.requirements_txt]
files = ["requirements.txt"]
[tool.hatch.metadata.hooks.requirements_txt.optional-dependencies]
dev = ["requirements.dev.txt"]
[tool.hatch.version]
path = "esxport/__init__.py"
[tool.hatch.build.targets.sdist]
only-include = ["esxport"]
[tool.hatch.build.targets.wheel]
only-include = ["esxport"]
[tool.ruff]
line-length = 120
select = ["ALL"]
ignore = [
"ANN401", #Disallow Any
"D401", #Imperative mood
"RUF012", #ignore till https://github.com/astral-sh/ruff/issues/5243
"UP004" #useless-object-inheritance
]
target-version = "py38"
fix = true
show-fixes = true
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.ruff.per-file-ignores]
"**test.py" = ["S101","SLF001","PT019","S311"]
[tool.docformatter]
recursive = true
wrap-summaries = 120
wrap-descriptions = 120
[tool.black]
line-length = 120
[pycodestyle]
max-line-length = 120
exclude = ["venv"]
[tool.mypy]
ignore_missing_imports = true
check_untyped_defs = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
[tools.pytest]
pythonpath = ["esxport"]
[tool.pytest.ini_options]
addopts = "--cov=. --cov-report=xml --cov-report=term-missing --junitxml=junit.xml --ff -x --no-cov-on-fail --emoji --dist loadgroup --tx=4*popen"
[tool.coverage.run]
#branch = true #https://github.com/nedbat/coveragepy/issues/605
parallel = true
[tool.coverage.report]
skip_covered = true
skip_empty = true
show_missing=true
sort="-Stmts"
omit = ["test/**"]
exclude_lines = [
'if TYPE_CHECKING:',
'if __name__ == "__main__":'
]
[tool.pyright]
include = ["."]
typeCheckingMode = "strict"
exclude = ["**/test",]
reportMissingTypeStubs = false
[tool.tbump]
# Uncomment this if your project is hosted on GitHub:
# github_url = "https://github.com/<user or organization>/<project>/"
[tool.tbump.version]
current = "8.15.0"
# Example of a semver regexp.
# Make sure this matches current_version before
# using tbump
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
'''
[tool.tbump.git]
message_template = "⬆️ Bump to {new_version}"
tag_template = "v{new_version}"
# For each file to patch, add a [[tool.tbump.file]] config
# section containing the path of the file, relative to the
# tbump.toml location.
[[tool.tbump.file]]
src = "pyproject.toml"
[[tool.tbump.file]]
src = "esxport/__init__.py"
[[tool.tbump.file]]
src = "test/.env"
search = 'STACK_VERSION={current_version}'
# You can specify a list of commands to
# run after the files have been patched
# and before the git commit is made
# [[tool.tbump.before_commit]]
# name = "check changelog"
# cmd = "grep -q {new_version} Changelog.rst"
# Or run some commands after the git tag and the branch
# have been pushed:
# [[tool.tbump.after_push]]
# name = "publish"
# cmd = "./publish.sh"