-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (94 loc) · 2.37 KB
/
pyproject.toml
File metadata and controls
102 lines (94 loc) · 2.37 KB
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
[project]
name = "allisbns"
version = "0.1.4"
description = "Works with Anna's Archive's ISBN code files"
keywords = ["annas-archive"]
authors = [
{ name = "Maxim Stolyarchuk", email = "maxim.stolyarchuk@gmail.com" }
]
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 3 - Alpha",
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.12"
dependencies = [
"bencode-py>=4.0.0",
"numpy>=2.3.5",
"zstandard>=0.25.0",
]
[project.optional-dependencies]
docs = [
"ipython>=9.8.0",
"sphinx>=9.0.4",
"sphinx-mdinclude>=0.6.2",
]
examples = [
"allisbns[plotting]",
"h5py>=3.15.1",
"hdf5plugin>=6.0.0",
"jupyter>=1.1.1",
"polars>=1.36.1",
"tqdm>=4.67.1",
]
plotting = [
"matplotlib>=3.10.7",
]
[project.urls]
Documentation = "https://allisbns.readthedocs.io/en/stable"
Changelog = "https://github.com/xymaxim/allisbns/blob/main/CHANGELOG.md"
GitHub = "https://github.com/xymaxim/allisbns"
[build-system]
requires = ["uv_build>=0.9.5,<0.10.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"defusedxml>=0.7.1",
"mypy>=1.19.0",
"pytest>=9.0.2",
"ruff>=0.14.6",
]
[tool.uv.build-backend]
source-exclude = ["*\\~", "\\#*\\#"]
[tool.ruff]
line-length = 88
exclude = [
".ipynb_checkpoints",
]
[tool.ruff.lint]
pydocstyle.convention = "google"
select = ["ALL"]
ignore = [
"ANN", # flake8-annotations
"COM812", # missing-trailing-comma
"D102", # undocumented-public-method
"D103", # undocumented-public-function
"D104", # undocumented-public-package
"D105", # undocumented-magic-method
"D401", # non-imperative-mood
"E731", # lambda-assignment
"EM101", # raw-string-in-exception
"EM102", # f-string-in-exception
"FBT", # flake8-boolean-trap
"PLR2004", # magic-value-comparison
"PTH123", # builtin-open
"SIM108", # if-else-block-instead-of-if-exp
"SLF001", # private-member-access
"TRY003", # raise-vanilla-args
]
[tool.ruff.lint.extend-per-file-ignores]
"tests/*.py" = [
"ANN",
"D",
"ERA001",
"PT",
"S101"
]
"examples/*" = ["D", "INP", "T201"]
"examples/*.ipynb" = ["T201"]
[tool.ruff.lint.isort]
lines-after-imports = 2
lines-between-types = 1