-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
86 lines (75 loc) · 1.3 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
[build-system]
requires = ["hatchling>1"]
build-backend = "hatchling.build"
[project]
name = "alphacodings"
version = "0.2.0"
description = "base26 ([A-Z]) and base52 ([A-Za-z]) encodings"
readme = "README.md"
authors = [{name = "Federico Minutoli", email = "[email protected]"}]
license = {file = "LICENSE"}
keywords = ["chunking", "encodings", "GMP", "NLP", "tokenization"]
requires-python = ">3.9"
dependencies = ["gmpy2>1"]
[dependency-groups]
contrib = ["pre-commit>4", "pytest>8"]
[tool.uv]
default-groups = ["contrib"]
[tool.ruff]
src = ["src", "tests"]
exclude = [
".git-rewrite",
".git",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pytest_cache",
".pytype",
".ruff_cache",
".tox",
".venv",
".vscode",
"build",
"dist",
"site-packages",
"venv",
]
line-length = 88
indent-width = 4
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.ruff.lint]
extend-select = [
"ARG",
"B",
"C4",
"EM",
"EXE",
"G",
"I",
"ICN",
"NPY",
"PD",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"RET",
"RUF",
"SIM",
"T20",
"UP",
"YTT",
]
ignore = [
"E741",
"PLR09",
"PLR2004", # magic comparison
"RET504",
]
[tool.ruff.lint.isort]
known-first-party = ["alphacodings"]
lines-after-imports = 2