forked from vanderschaarlab/temporai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
85 lines (79 loc) · 2.14 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
[build-system]
# AVOID CHANGING REQUIRES: IT WILL BE UPDATED BY PYSCAFFOLD!
requires = ["setuptools>=46.1.0", "setuptools_scm[toml]>=5"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
# For smarter version schemes and other configuration options,
# check out https://github.com/pypa/setuptools_scm
version_scheme = "no-guess-dev"
[tool.black]
line-length = 120
target-version = ['py37', 'py38', 'py39', 'py310']
include = '\.(pyi?|ipynb)$'
# extend-exclude = '''
# ^/(
# docs/conf.py
# )
# '''
# ^
# A regular expression that matches files and directories that should be excluded on recursive searches. An empty
# value means no paths are excluded. Use forward slashes for directories on all platforms (Windows, too). Exclusions
# are calculated first, inclusions later.
# [default: /(\.direnv|\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|venv|\.svn|_build|buck-out|build|dist)/
#
# A regex preceded with ^/ will apply only to files and directories
# in the root of the project.
# ^/foo.py # exclude a file named foo.py in the root of the project (in addition to the defaults)
#
# Example:
#
# ^/(
# (
# \.eggs # exclude a few common directories in the
# | \.git # root of the project
# | \.hg
# | \.mypy_cache
# | \.tox
# | \.venv
# | _build
# | buck-out
# | build
# | dist
# )/
# | foo.py # also separately exclude a file named foo.py in
# # the root of the project
# )
[tool.bandit]
exclude_dirs = ["tests"]
[tool.pydocstyle]
convention = "google"
add-ignore = [
# Disable especially pedantic checks:
"D101", # Disable "Missing docstring in public class" as we take class docstrings from `__init__()`.
"D202",
"D205",
"D402",
"D403",
"D415",
]
# Note: `pydoclint` is run via `flake8`.
# Configure `pyright`.
# May wish to add to pre-commit eventually.
[tool.pyright]
exclude = [
# Defaults:
"**/node_modules",
"**/__pycache__",
"**/.*",
# Custom:
".dev",
"**/logs",
"outputs",
"data",
"tutorials/*/data",
"tutorials/*/logs",
"codecov",
"workspace",
# Exclude tests:
"tests",
]