generated from coroa/python-project-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
142 lines (125 loc) · 3.07 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
[project]
authors = [
{name = "Jonas Hörsch", email = "[email protected]"},
]
description = "Helpers to facilitate working with pandas indices in particular multiindices"
license = {text = "MIT"}
name = "pandas-indexing"
readme = "README.rst"
# complete classifier list:
# http://pypi.org/classifiers/
classifiers = [
'Development Status :: 4 - Beta', # 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Operating System :: POSIX',
'Operating System :: MacOS',
'Operating System :: Microsoft',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
]
keywords = [
'pandas', # eg: 'keyword1', 'keyword2', 'keyword3',
]
dependencies = [
# https://stackoverflow.com/questions/14399534
'pandas>=1.2',
'deprecated',
"attrs",
]
requires-python = ">=3.9, <4"
dynamic = ["version"]
[project.urls]
changelog = "https://github.com/coroa/pandas-indexing/blob/main/CHANGELOG.rst"
documentation = "https://pandas-indexing.readthedocs.io/en/latest/"
homepage = "https://github.com/coroa/pandas-indexing"
repository = "https://github.com/coroa/pandas-indexing.git"
[project.optional-dependencies]
# Add dependencies for building docs and running tests
docs = [
"sphinx>=2.2",
"sphinx-argparse",
"sphinx-rtd-theme",
"myst_nb",
"ipython",
]
test = [
"coverage",
"pytest",
"pytest-cov",
"hypothesis",
]
units = [
"pint>=0.21",
"openscm-units",
]
lint = [
"ruff",
]
[project.scripts]
[tool.pytest.ini_options]
# If a pytest section is found in one of the possible config files
# (pytest.ini, tox.ini or setup.cfg), then pytest will not look for any others,
# so if you add a pytest config section elsewhere,
# you will need to delete this section from setup.cfg.
#norecursedirs =
#migrations
addopts = "-p pytest_cov"
python_files = [
"test_*.py",
"*_test.py",
"tests.py",
]
#addopts =
# -ra
# --strict
# --doctest-modules
# --doctest-glob=\*.rst
# --tb=short
testpaths = [
"tests",
]
[tool.ruff]
builtins = ["ellipsis"]
target-version = "py38"
[tool.ruff.lint]
exclude = [
".eggs",
"doc",
"_typed_ops.pyi",
]
# E402: module level import not at top of file
# E501: line too long - let black worry about that
# E731: do not assign a lambda expression, use a def
# E741: ambiguous variable names
ignore = [
"E402",
"E501",
"E731",
"E741",
]
select = [
# Pyflakes
"F", # Pycodestyle
"E",
"W", # isort
"I", # Pyupgrade
"UP",
]
[tool.ruff.lint.per-file-ignores]
# F401: imported but unsued
"__init__.py" = ["F401"]
[tool.ruff.lint.isort]
known-first-party = ["pandas_indexing"]
lines-after-imports = 2
[tool.setuptools_scm]
fallback_version = "999"
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=46.1.0", "setuptools_scm[toml]>=6.2"]