-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
193 lines (175 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
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
[build-system]
requires = ["setuptools>=48", "setuptools_scm[toml]>=6.3.1"]
build-backend = "setuptools.build_meta"
[project]
name = "morefs"
description = "A collection of self-contained fsspec-based filesystems"
readme = "README.rst"
license = {text = "Apache-2.0"}
authors = [{name = "Iterative", email = "[email protected]"}]
classifiers = [
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.13",
"Development Status :: 4 - Beta"
]
requires-python = ">=3.8"
dynamic = ["version"]
dependencies = [
"fsspec"
]
[project.urls]
Issues = "https://github.com/iterative/morefs/issues"
Source = "https://github.com/iterative/morefs"
[project.optional-dependencies]
memfs = [
"pygtrie>=2.3.2"
]
asynclocalfs = [
"fsspec>=2022.10.0",
"typing_extensions>=3.10.0; python_version < '3.10'",
"aiofile>=3.8.5,<4"
]
asynclocal = [
"morefs[asynclocalfs]"
]
all = [
"morefs[memfs,asynclocalfs]"
]
tests = [
"morefs[all]",
"pytest>=7,<9",
"pytest-asyncio>=0.21.0,<1",
"pytest-cov>=4.1.0",
"pytest-mock",
"pytest-sugar"
]
dev = [
"morefs[tests,all]",
"mypy==1.13.0"
]
[project.entry-points."fsspec.specs"]
memfs = "morefs.memory:MemFS"
dictfs = "morefs.dict:DictFS"
overlayfs = "morefs.overlay:OverlayFileSystem"
asynclocal = "morefs.asyn_local:AsyncLocalFileSystem"
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.setuptools_scm]
[tool.pytest.ini_options]
addopts = "-ra"
[tool.coverage.run]
branch = true
source = ["morefs", "tests"]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"if typing.TYPE_CHECKING:",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"raise AssertionError",
"@overload"
]
[tool.mypy]
# Error output
show_column_numbers = true
show_error_codes = true
show_error_context = true
show_traceback = true
pretty = true
check_untyped_defs = false
# Warnings
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
ignore_missing_imports = true
files = ["src", "tests"]
[tool.codespell]
ignore-words-list = "fo,cachable,afile"
skip = "CODE_OF_CONDUCT.rst"
[tool.ruff]
output-format = "full"
show-fixes = true
[tool.ruff.lint]
ignore = [
"N818",
"S101",
"ISC001",
"PT004",
"PT007",
"RET502",
"RET503",
"SIM105",
"SIM108",
"SIM117",
"TRY003",
"TRY300",
"PLR2004",
"PLW2901",
"LOG007"
]
select = [
"F",
"E",
"W",
"C90",
"I",
"N",
"UP",
"YTT",
"ASYNC",
"S",
"BLE",
"B",
"A",
"C4",
"T10",
"EXE",
"ISC",
"ICN",
"G",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"RSE",
"RET",
"SLOT",
"SIM",
"TID",
"TCH",
"ARG",
"PGH",
"PLC",
"PLE",
"PLR",
"PLW",
"TRY",
"FLY",
"PERF101",
"LOG",
"RUF"
]
[tool.ruff.lint.flake8-unused-arguments]
ignore-variadic-names = true
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
parametrize-names-type = "csv"
[tool.ruff.lint.per-file-ignores]
"noxfile.py" = ["D", "PTH"]
"tests/**" = ["S", "ARG001", "ARG002", "ANN"]
"docs/**" = ["INP"]
[tool.ruff.lint.flake8-type-checking]
strict = true