-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
147 lines (129 loc) · 3.1 KB
/
pyproject.toml
File metadata and controls
147 lines (129 loc) · 3.1 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
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
[build-system]
requires = ['flit_core >=3.4,<4']
build-backend = 'flit_core.buildapi'
[project]
name = 'rht' # Choose a name for your project
version = "0.0.1"
dynamic = ["description"]
authors = [
{ name = 'Name', email = 'who@where.com' }, # Add your details here
]
readme = 'README.md'
license = { file = 'LICENSE.txt' }
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Programming Language :: Python',
'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',
]
keywords = ['machine learning', 'jax', 'research']
requires-python = '>=3.9'
dependencies = [
"reax",
"hydra-core",
"hydra-colorlog",
"hydra-optuna-sweeper",
"rich",
# Dev
"black",
"flit",
"pre-commit",
"pylint",
"pytest",
"pytest-env",
]
[project.scripts]
train_command = "rht.train:main"
eval_command = "rht.eval:main"
[project.urls]
Home = 'https://github.com/user/project'
Source = 'https://github.com/user/project'
[tool.flit.module]
name = 'rht'
[tool.flit.sdist]
exclude = [
'.github/',
'docs/',
'examples/',
'test/',
]
[tool.flynt]
line-length = 100
fail-on-change = true
[tool.isort]
profile = "black"
force_sort_within_sections = true
include_trailing_comma = true
line_length = 100
multi_line_output = 3
[tool.pylint.format]
max-line-length = 100
[tool.pylint.messages_control]
disable = [
# Unfortunately jaxtyping decorator creates a function that seems to mistakenly be identified as
# not returning anything, so we have to disable the error below for now
'assignment-from-no-return',
'duplicate-code',
'import-outside-toplevel',
'missing-docstring',
'locally-disabled',
'too-few-public-methods',
'too-many-arguments',
'too-many-instance-attributes',
'use-dict-literal',
'fixme',
]
[tool.pylint.design]
max-locals = 20
max-branches = 14
max-returns = 8
max-positional-arguments = 8
[tool.bandit]
exclude_dirs = ["tests/"]
skips = ["B101"]
[tool.black]
line-length = 100
[tool.docformatter]
wrap-summaries = 100
wrap-descriptions = 100
[pytest]
log_cli = "True"
log_cli_level = "DEBUG"
[tool.pytest_env]
XLA_PYTHON_CLIENT_PREALLOCATE = false # Don't allow JAX to preallocate memory
[tool.pytest.ini_options]
addopts = [
"--color=yes",
"--durations=0",
"--strict-markers",
"--doctest-modules",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::UserWarning",
]
log_cli = "True"
markers = [
"slow: slow tests",
]
minversion = "6.0"
testpaths = "tests/"
[tool.yapf]
align_closing_bracket_with_visual_indent = true
based_on_style = 'google'
coalesce_brackets = true
column_limit = 100
dedent_closing_brackets = true
indent_dictionary_value = false
split_arguments_when_comma_terminated = true
[tool.coverage.report]
exclude_lines = [
"pragma: nocover",
"raise NotImplementedError",
"raise NotImplementedError()",
"if __name__ == .__main__.:",
]