-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
134 lines (121 loc) · 2.91 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
[project]
name = "xlstm-jax"
version = "0.0.1"
authors = [
{ name="Phillip Lippe", email="[email protected]" },
{ name="Richard Kurle", email="[email protected]" },
{ name="Patrick Blies", email="[email protected]" },
{ name="Korbinian Pöppel", email="[email protected]" },
{ name="Sebastian Böck", email="[email protected]" },
{ name="Maximilian Beck", email="[email protected]" },
]
description = "xLSTM implementation in JAX"
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
[project.urls]
Homepage = "https://github.com/NX-AI/xlstm-jax"
Issues = "https://github.com/NX-AI/xlstm-jax/issues"
# docformatter
[tool.docformatter]
diff = false
docstring-length = [40, 1000]
in-place = true
pre-summary-newline = true
recursive = true
wrap-summaries = 100
wrap-descriptions = 100
non-cap = ["xLSTM"]
# flake8
[tool.flake8]
count = true
extend-ignore = "E203"
exclude = [
".git", # No need to traverse our git directory
"__pycache__", # There's no value in checking cache directories
]
#max-complexity = 15
max-doc-length = 120
max-line-length = 120
per-file-ignores = """
*/__init__.py: F401
"""
# interrogate
[tool.interrogate]
ignore-init-method = false
ignore-init-module = true
ignore-magic = true
ignore-semiprivate = false
ignore-private = true
ignore-property-decorators = false
ignore-module = true
ignore-nested-functions = true
ignore-nested-classes = true
ignore-setters = true
ignore-overloaded-functions = false
fail-under = 65
exclude = []
ignore-regex = []
ext = []
style = "google"
verbose = 1 # possible values: 0 (minimal output), 1 (-v), 2 (-vv)
quiet = false
whitelist-regex = []
color = true
omit-covered-files = false
# pylint
[tool.pylint.main]
fail-under = 9
max-line-length = 120
py-version = "3.11"
disable = [
"duplicate-code", # TODO: enable after directory structure cleanup
"invalid-name",
"logging-fstring-interpolation",
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
"too-many-arguments",
"too-many-locals",
"too-many-positional-arguments",
]
# ruff
[tool.ruff]
exclude = [
".eggs",
".git",
".ipynb_checkpoints",
".pytest_cache",
".ruff_cache",
".vscode",
"__pypackages__",
"_build",
"build",
"dist",
"node_modules",
"site-packages",
"archive",
]
line-length = 120
target-version = "py311"
[tool.ruff.lint]
select = ["I001"]
[tool.ruff.lint.mccabe]
max-complexity = 18
[tool.ruff.lint.isort]
combine-as-imports = true
section-order = ["future", "standard-library", "third-party", "first-party", "xlstm_jax", "local-folder"]
[tool.ruff.lint.isort.sections]
"xlstm_jax" = ["xlstm_jax"]
[tool.ruff.format]
quote-style = "double"
# setuptools
[tool.setuptools]
packages = ["xlstm_jax"]
[tool.pytest.ini_options]
testpaths = [
"tests",
]