forked from wandb/wandb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
101 lines (89 loc) · 2.27 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
89
90
91
92
93
94
95
96
97
98
99
100
101
[build-system]
requires = ['setuptools<64']
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
wandb/vendor/
| wandb/bin/
| wandb/proto/
| wandb/proto_check/
| wandb/sdk/launch/deploys/
| wandb/run*
| wandb/offline-run*
| __pycache__
| .pyc
| .tox/
'''
[tool.isort]
profile = "black"
skip = ["wandb/__init__.py"]
extend_skip_glob = ["wandb/vendor/**", "wandb/proto/**"]
skip_gitignore = "True"
[tool.commitizen]
name = "cz_conventional_commits"
major_version_zero = true
version = "0.14.3.dev1"
version_files = ["setup.py", "setup.cfg", "wandb/__init__.py"]
tag_format = "v$major.$minor.$patch$prerelease"
changelog_incremental = true
#post_bump_hooks = [
# "tools/cz_version_to_dev.sh",
#]
[tool.commitizen.change_type_map]
"feat" = ":sparkles: Enhancements"
"fix" = ":hammer: Fixes"
"refactor" = ":nail_care: Cleanup"
"perf" = ":rocket: Performance"
security = ":lock: Security"
[tool.ruff]
select = ["F", "E", "W", "B", "I", "N", "D", "C90", "UP"]
ignore = [
"B904",
"E501",
"D1", # Allow missing docstrings.
"D417", # Don't require descriptions for all arguments.
"UP022", # Only valid for Python 3.7+
"UP036", # Only valid for Python 3.7+
]
exclude = [
"tests/functional_tests/t0_main/fastai/t1_v1.py",
"tests/functional_tests/t0_main/metaflow",
"tests/pytest_tests/assets/fixtures/train.py",
"tests/pytest_tests/unit_tests_old",
"wandb/bin",
"wandb/data",
"wandb/env.py",
"wandb/errors",
"wandb/integration/keras/keras.py",
"wandb/integration/magic.py",
"wandb/integration/metaflow",
"wandb/keras",
"wandb/offline-run-*",
"wandb/old",
"wandb/plots",
"wandb/proto_check",
"wandb/proto",
"wandb/run-*",
"wandb/sklearn",
"wandb/superagent",
"wandb/vendor",
"wandb/viz.py",
"wandb/wandb_torch.py",
]
target-version = "py37"
[tool.ruff.isort]
split-on-trailing-comma = false
[tool.ruff.per-file-ignores]
"**/__init__.py" = ["E402", "F401"]
"wandb/__init__.py" = ["I001"]
"wandb/cli/cli.py" = ["C901"]
"wandb/filesync/step_checksum.py" = ["B023"]
"wandb/wandb_controller.py" = ["N803", "N806"]
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.pycodestyle]
ignore-overlong-task-comments = true
[tool.ruff.mccabe]
max-complexity = 18