-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
169 lines (148 loc) · 4.57 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
[project]
name = "edgetest-pip-tools"
requires-python = ">=3.8.0"
description = "pip-tools integration for edgetest"
authors = [
{ name = "Akshay Gupta", email = "[email protected]" },
{ name = "Faisal Dosani", email = "[email protected]" },
{ name = "Jacob Dawang", email = "[email protected]" }
]
license = { text = "Apache Software License" }
classifiers = [
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = ["edgetest>2024.4.0"]
dynamic = ["readme", "version"]
[project.optional-dependencies]
docs = [
"furo",
"sphinx",
"sphinx-copybutton",
"sphinx-tabs",
]
tests = [
"coverage",
"pytest",
"pytest-cov",
]
qa = [
"mypy",
"pip-tools",
"pre-commit",
"ruff~=0.5",
"types-click",
]
build = [
"build",
"twine",
"wheel",
"bumpver",
]
dev = [
"edgetest-pip-tools[docs]",
"edgetest-pip-tools[tests]",
"edgetest-pip-tools[qa]",
"edgetest-pip-tools[build]",
]
[project.urls]
"Documentation" = "https://capitalone.github.io/edgetest-pip-tools/"
"Bug Tracker" = "https://github.com/capitalone/edgetest-pip-tools/issues"
"Source Code" = "https://github.com/capitalone/edgetest-pip-tools"
[project.entry-points."edgetest"]
piptools = "edgetest_pip_tools.plugin"
# Build system
[build-system]
requires = ["setuptools>=64.0.0"]
build-backend = "setuptools.build_meta"
##############################################################################
# Setuptools configuration
##############################################################################
[tool.setuptools]
include-package-data = true
zip-safe = false
[tool.setuptools.dynamic]
version = { attr = "edgetest_pip_tools.__version__" }
readme = { file = ["README.md"], content-type = "text/markdown" }
##############################################################################
# Tooling
##############################################################################
# BUMPVER --------------------------------------------------------------------
[bumpver]
current_version = "2024.8.0"
version_pattern = "YYYY.MM.INC0"
[bumpver.file_patterns]
"docs/source/conf.py" = [
'version = "{version}"',
]
"pyproject.toml" = [
'current_version = "{version}"',
]
"edgetest_pip_tools/__init__.py" = [
'__version__ = "{version}"',
]
# MYPY -----------------------------------------------------------------------
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
allow_redefinition = true
disable_error_code = "empty-body"
# PYTEST ---------------------------------------------------------------------
[tool.pytest.ini_options]
markers = [
"unit: mark unit tests that do not require external interfaces and use mocking",
"integration: mark test that interact with an external system",
]
addopts = "--verbose"
# RUFF -----------------------------------------------------------------------
[tool.ruff]
extend-include = ["*.ipynb"]
target-version = "py39"
[tool.ruff.lint]
preview = true
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"D", # pydocstyle
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C", # flake8-comprehensions
"T20", # flake8-print
"TID252", # flake8-tidy-imports ban relative imports
"SIM", # flake8-simplify
"LOG", # flake8-logging
"RUF", # Ruff errors
]
ignore = [
"C901", # Add back in later
"E111", # Check indentation level. Using formatter instead.
"E114", # Check indentation level. Using formatter instead.
"E117", # Check indentation level. Using formatter instead.
"E203", # Check whitespace. Using formatter instead.
"E501", # Line too long. Using formatter instead.
"D206", # Docstring indentation. Using formatter instead.
"D300", # Use triple single quotes. Using formatter instead.
"SIM108", # Use ternary operator instead of if-else blocks.
"SIM105", # Use ``contextlib.suppress(FileNotFoundError)`` insetad of try - execpt - pass.
"UP035", # ``typing.x`` is deprecated, use ``x`` instead
"UP006", # ``typing.x`` is deprecated, use ``x`` instead
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402"]
"**/{tests,docs}/*" = ["E402", "D", "F841", "ARG"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.pydocstyle]
convention = "numpy"