-
Notifications
You must be signed in to change notification settings - Fork 21
/
pyproject.toml
134 lines (123 loc) · 3.36 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
[build-system]
requires = [
"meson-python",
"setuptools_scm",
"Cython >= 3.0.10",
"numpy",
]
build-backend = "mesonpy"
[project]
name = "versioned-hdf5"
dynamic = ["version"]
authors = [
{ name="Quansight" },
]
description = "Versioned HDF5 provides a versioned abstraction on top of h5py"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
]
dependencies = [
"numpy",
"h5py",
"ndindex>=1.5.1",
]
urls = { Homepage = "https://github.com/deshaw/versioned-hdf5" }
license = { file = 'LICENSE' }
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = [
# pycodestyle
"E",
"W",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# pep8 naming
"N",
# pydocstyle
"D",
# annotations
"ANN",
# debugger
"T10",
# flake8-pytest
"PT",
# flake8-return
"RET",
# flake8-unused-arguments
"ARG",
# flake8-fixme
"FIX",
# flake8-eradicate
"ERA",
# pandas-vet
"PD",
# numpy-specific rules
"NPY",
]
ignore = [
"D104", # Missing docstring in public package
"D100", # Missing docstring in public module
"D211", # No blank line before class
"D213", # Multiline summary second line
"PD901", # Avoid using 'df' for pandas dataframes. Perfectly fine in functions with limited scope
"ANN201", # Missing return type annotation for public function (makes no sense for NoneType return types...)
"ANN101", # Missing type annotation for `self`
"ANN204", # Missing return type annotation for special method
"ANN002", # Missing type annotation for `*args`
"ANN003", # Missing type annotation for `**kwargs`
"D105", # Missing docstring in magic method
"D203", # 1 blank line before after class docstring
"D204", # 1 blank line required after class docstring
"D413", # 1 black line after parameters
"SIM108", # Simplify if/else to one line; not always clearer
"D206", # Docstrings should be indented with spaces; unnecessary when running ruff-format
"E501", # Line length too long; unnecessary when running ruff-format
"W191", # Indentation contains tabs; unnecessary when running ruff-format
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"test_*.py" = ["ANN001"]
[project.optional-dependencies]
dev = ["pre-commit>=3.6.0", 'cython', 'meson-python', 'setuptools-scm']
test = ["pytest", "pytest-env", "hypothesis", "packaging"]
doc = ["sphinx", "sphinx-multiversion", "myst-parser"]
bench = ["asv"]
[tool.setuptools_scm]
[tool.isort]
profile = "black"
[tool.pytest_env]
ENABLE_CHUNK_REUSE_VALIDATION = 1
[tool.pytest.ini_options]
addopts = "--doctest-modules --ignore=analysis/ --import-mode=importlib"
doctest_optionflags = "NORMALIZE_WHITESPACE"
markers = [
"setup_args : kwargs for setup fixture.",
"slow: slow tests",
]
[tool.mypy]
allow_incomplete_defs = true # FIXME
allow_untyped_decorators = true # FIXME
allow_untyped_defs = true # FIXME
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
plugins = "numpy.typing.mypy_plugin"
[[tool.mypy.overrides]]
module = ["*.tests.*"]
allow_untyped_defs = true