-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
88 lines (76 loc) · 2.03 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
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"
# Enables the usage of setuptools_scm
[tool.setuptools_scm]
[tool.isort]
profile = "black"
line_length = 88
extend_skip_glob = ["data/*"]
[tool.black]
line_length = 88
extend-exclude = "data/*"
[tool.pytest.ini_options]
addopts = '''
-vv
--strict-markers
--doctest-modules
--junitxml=reports/pytest.xml
--cov=offline_mbrl
--cov-config=pyproject.toml
--cov-report xml:reports/coverage.xml
--cov-report html:reports/coverage_html
--ignore="data/"
--ignore="src/offline_mbrl/unmaintained_scripts/"
'''
markers = '''
fast: Fastest tests, a few hundred milliseconds
medium: Medium tests, finishing roughly less than a minute
slow: Slowest tests, can take hours
'''
[tool.coverage.run]
branch = true
data_file = "reports/.coverage"
omit = ["*/unmaintained_scripts/*", "*/scripts/*"]
[tool.coverage.paths]
# Maps coverage measured in site-packages to source files in src
source = ["src/", ".tox/*/lib/python*/site-packages/"]
[tool.mypy]
ignore_missing_imports = true
disallow_untyped_defs = true
exclude = ["venv.*/", "build/", "dist/", "data/", "unmaintained_scripts/"]
[tool.pylint.master]
recursive = "yes"
ignore = [
".tox",
"build",
"dist",
"data",
"conf.py",
"unmaintained_scripts"
]
ignore-patterns = ["venv.*"]
[tool.pylint.messages_control]
max-line-length = 88
extension-pkg-whitelist = "pydantic"
disable = """
too-few-public-methods,
too-many-locals,
too-many-instance-attributes,
too-many-arguments,
too-many-statements,
too-many-branches,
too-many-function-args,
too-many-nested-blocks,
too-many-return-statements,
missing-function-docstring,
missing-module-docstring,
missing-class-docstring,
duplicate-code,
invalid-name
"""
[tool.pylint.typecheck]
generated-members = "numpy.*,torch.*"
[tool.pydocstyle]
convention = "google"
match-dir = "(?!venv|\\.|build|log|dist|unmaintained_scripts).*"