forked from HabanaAI/Gaudi-tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
53 lines (42 loc) · 1 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
[metadata]
license_file = "LICENSE"
[build-system]
requires = [
"setuptools",
"wheel",
]
[tool.check-manifest]
ignore = [
"*.yml",
".github",
".github/*"
]
[tool.docformatter]
recursive = true
# this need to be shorter as some docstings are r"""...
wrap-summaries = 119
wrap-descriptions = 120
blank = true
[tool.black]
# https://github.com/psf/black
line-length = 120
exclude = "(.eggs|.git|.hg|.mypy_cache|.venv|_build|buck-out|build|dist)"
[tool.ruff]
line-length = 120
# Enable Pyflakes `E` and `F` codes by default.
lint.select = [
"E", "W", # see: https://pypi.org/project/pycodestyle
"F", # see: https://pypi.org/project/pyflakes
"I", # Isort
]
lint.ignore = [
"E731", # Do not assign a lambda expression, use a def
"E501", # TODO: Line too long
]
lint.ignore-init-module-imports = true
[tool.ruff.lint.pydocstyle]
# Use Google-style docstrings.
convention = "google"
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10