-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
195 lines (170 loc) · 3.58 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
[build-system]
requires = [
"setuptools>=61.2", "setuptools-git-versioning"
]
build-backend = "setuptools.build_meta"
[tool.setuptools-git-versioning]
enabled = true
# Used if no untracked files and current commit is tagged.
template = "{tag}"
# Used if there are no untracked files, and current commit is not tagged.
dev_template = "{tag}.post{ccount}"
# Used if untracked files exist or uncommitted changes have been made.
dirty_template = "{tag}.post{ccount}+dirty"
[project]
name = "rtab"
description = "A simple formatting cli that converts json, yaml or csv into tables using the rich library"
authors = [
{ name = "Nishant Dash" },
]
classifiers = [
"Environment :: Plugins",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT",
"Operating System :: OS Independent",
"Topic :: Utilities",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
]
requires-python = ">=3.10"
dependencies = [
"PyYaml",
"rich",
"typer",
]
dynamic = [
"version",
]
[project.readme]
file = "README.md"
content-type = "text/markdown; charset=UTF-8; variant=GFM"
[project.license]
text = "MIT"
[project.urls]
Homepage = "https://github.com/nishant-dash/rtab"
[project.optional-dependencies]
lint = [
"flake8",
"flake8-docstrings",
"flake8-colors",
"pyproject-flake8",
"pylint",
"mypy",
"black",
"isort",
"types-PyYAML",
"codespell",
]
unittests = [
"pytest",
"pytest-cov",
"pytest-mock",
"gevent",
]
[project.scripts]
rtab = "rtab:main"
[tool.setuptools]
include-package-data = true
license-files = [
"LICENSE",
]
[tool.setuptools.packages.find]
exclude = [
"tests",
]
namespaces = false
[tool.setuptools.package-data]
"*" = [
"*.csv",
]
[tool.aliases]
test = "pytest"
[tool.flake8]
ignore = ["C901", "D100", "D101", "D102", "D103", "W503", "W504"]
exclude = ['.eggs', '.git', '.tox', '.venv', '.build', 'build', 'report']
max-line-length = 99
max-complexity = 10
[tool.black]
line-length = 99
ignore = ["D400"]
exclude = '''
/(
| .eggs
| .git
| .tox
| .venv
| .build
| build
| report
)/
'''
[tool.isort]
profile = "black"
skip_glob = [
".eggs",
".git",
".tox",
".venv",
".build",
"build",
"report"
]
[tool.pylint]
max-line-length = 99
load-plugins = "pylint.extensions.docparams"
ignore-paths = [
".eggs",
".git",
".tox",
".venv",
".build",
"build",
"report",
"tests"
]
no-docstring-rgx = "__.*__"
default-docstring-type = "sphinx"
accept-no-param-doc = false
accept-no-raise-doc = false
accept-no-return-doc = true
accept-no-yields-doc = false
[tool.mypy]
warn_unused_ignores = true
warn_unused_configs = true
warn_unreachable = true
disallow_untyped_defs = false
warn_no_return = false
ignore_missing_imports = true
exclude = [
".eggs",
".git",
".tox",
".venv",
".build",
"build",
"lib",
"report",
"tests"
]
disable_error_code = ["assignment", "return-value", "attr-defined"]
[tool.coverage.run]
relative_files = true
concurrency = ["gevent"]
source = ["."]
omit = ["tests/**", "docs/**", "lib/**", "snap/**", "build/**", "setup.py", ".tox/**"]
[tool.coverage.report]
fail_under = 90
show_missing = true
[tool.coverage.html]
directory = "tests/unit/report/html"
[tool.coverage.xml]
output = "tests/unit/report/coverage.xml"
[tool.codespell]
skip = ".eggs,.tox,.git,.venv,venv,build,.build,lib,report"
quiet-level = 3
check-filenames = true
[tool.pytest.ini_options]
filterwarnings = [
"ignore::RuntimeWarning",
]