-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
132 lines (102 loc) · 2.92 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
[tool.pdm.build]
includes = ["txt.gz", "*.py"]
[tool.mypy]
mypy_path = "./typings"
exclude = [
"__pypackages__/",
"./typings", # for pyright autogen stubs
]
follow_imports_for_stubs = true
follow_imports = "silent"
disallow_any_unimported = false
disallow_any_expr = false
disallow_any_decorated = false
disallow_any_explicit = false
disallow_any_generics = false
disallow_subclassing_any = false
disallow_untyped_calls = false
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = false
implicit_optional = true
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = false
warn_no_return = false
warn_return_any = false
warn_unreachable = true
ignore_errors = false
allow_untyped_globals = false
allow_redefinition = false
local_partial_types = false
implicit_reexport = true
strict_equality = true
strict = true
warn_unused_configs = true
[tool.pyright]
pythonVersion = "3.12"
extraPaths = [
"__pypackages__/3.11/lib",
"__pypackages__/3.12/lib",
"src",
]
exclude = [
"**/__pycache__",
]
useLibraryCodeForTypes = true
[tool.ruff]
exclude = [ "./typings" ]
fix = false
unfixable = ["F401", "F841", "C417"]
output-format = "grouped"
# show-source = true
select = ["ALL"]
ignore = [
"ANN101", "C417", "COM812", "D203", "D213", "D401", "E401",
"FBT002", "EM102", "ERA001", "EXE001", "FBT001",
"I001", "PD", "S101", "SLF001", "TRY003", "UP009",
"EM101", "T201", "PGH003", "ISC001", "PLC3002"
]
indent-width = 2
# show-fixes = true
[tool.ruff.isort]
section-order = ["future", "standard-library", "first-party", "tf", "torch", "jax", "types", "math", "database", "third-party", "config", "local-folder"]
[tool.ruff.isort.sections]
database = ["lucene", "lupyne", "elasticsearch", "sqlite", "shelve"]
tf = ["tensorflow", "keras"]
torch = ["torch", "torchdata", "torchvision", "pytorch_lightning"]
jax = ["jax", "haiku", "flax", "optax", "jraph", "chex", "jaxopt", "equinox", "orbax"]
types = ["typing", "types", "jax.typing", "jaxtyping", "numpy.typing", "typing_extensions"]
math = ["numpy", "scipy", "sklearn", "pandas"]
config = ["config", "settings", "cfg", "smile_config", "tyro"]
[tool.ruff.format]
docstring-code-format = true
preview = true
[tool.ruff.per-file-ignores]
"__init__.py" = [ "D104" ]
"__version__.py" = [ "D100" ]
"sites/*.py" = [ "INP001" ]
[tool.ruff.pylint]
max-args = 10
[tool.ruff.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 15.
max-complexity = 15
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
name = "nautc"
version = "1.1.2"
description = "Convert plain text (letters, sometimes numbers, sometimes punctuation) to obscure but cool characters."
authors = [
{name = "Nasy", email = "nasyxx+python@gmail.com"},
]
dependencies = [
"tyro>=0.7.3",
]
requires-python = "<4.0,>=3.10"
readme = "README.md"
license = {text = "MIT"}
[project.scripts]
nautc = "nautc:main"