forked from databricks/megablocks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
46 lines (42 loc) · 1.53 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
# build requirements
[build-system]
requires = ["setuptools < 70.0.0", "torch >= 2.3.0, < 2.4"]
build-backend = "setuptools.build_meta"
# Pytest
[tool.pytest.ini_options]
# By default, run tests in README codeblocks, raise typos in fixtures as errors,
# have a short traceback, skip gpu tests, and display in color
addopts = "--codeblocks --strict-markers --tb=short -m 'not gpu' --color=yes"
pythonpath = [
"."
]
markers = [
# For distributed testing
"world_size(val)",
# Should be run during daily regression
"daily",
# Whether the test will be reading data from a remote source, and may require credentials
"remote",
# whether the test requires a gpu
"gpu",
]
filterwarnings = [
# "error", # warnings should be treated like errors, but still need to fix some warnings
'ignore:ExtraArgumentWarning', # extra arguments originate from pytest-specific CLI args
'ignore:DistributedDefaultValueWarning', # default distributed values are fine
'ignore:NoDistributedWarning', # running without distributed is fine
'ignore:Deterministic mode is activated:UserWarning', # all tests run with deterministic mode
'ignore:SubsetNumBatchesWarning', # different subsets OK for testing
'ignore:No optimizer:UserWarning', # testing defaults
'ignore:No scheduler:UserWarning', # testing defaults
'ignore::DeprecationWarning:tensorboard', # ignore tensorboard
]
# Coverage
[tool.coverage.run]
parallel = true
branch = true
relative_files = true
concurrency = ["thread"]
include = [
"megablocks/*"
]