-
-
Notifications
You must be signed in to change notification settings - Fork 159
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (109 loc) · 2.68 KB
/
Copy pathpyproject.toml
File metadata and controls
124 lines (109 loc) · 2.68 KB
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[tool.ruff]
line-length = 88
target-version = "py310"
include = ["*.py", "*.pyi", "*.ipynb"]
extend-exclude = [
".claude",
".sl",
"omegaconf/grammar/gen",
"omegaconf/vendor",
"subprojects",
"temp",
]
[tool.ruff.lint]
exclude = ["docs/notebook/Tutorial.ipynb"]
fixable = ["I"]
ignore = ["E501", "E701", "E714", "E721"]
select = ["E", "F", "I", "W"]
[tool.ruff.lint.isort]
known-first-party = ["omegaconf"]
[tool.pytest.ini_options]
addopts = "--import-mode=append -Werror"
pythonpath = ["."]
norecursedirs = ["subprojects", ".git", ".sl", ".venv"]
[tool.bumpversion]
# Version source of truth. Use bump-my-version so configured files stay in sync.
# `bump-my-version bump pre_n` updates 2.4.0.dev13 to 2.4.0.dev14.
# `bump-my-version bump --new-version 2.4.0` sets the final release version.
current_version = "2.4.0.dev16"
parse = '''(?x)
(?P<major>\d+)
\.(?P<minor>\d+)
\.(?P<patch>\d+)
(?:
\.(?P<pre_l>dev)
(?P<pre_n>\d+)
)?
'''
serialize = [
"{major}.{minor}.{patch}.{pre_l}{pre_n}",
"{major}.{minor}.{patch}",
]
search = '{current_version}'
replace = '{new_version}'
regex = false
ignore_missing_version = false
tag = false
sign_tags = false
allow_dirty = false
commit = false
[tool.bumpversion.parts.pre_l]
values = ["final", "dev"]
optional_value = "final"
[tool.bumpversion.parts.pre_n]
first_value = "0"
[[tool.bumpversion.files]]
filename = "omegaconf/version.py"
[[tool.bumpversion.files]]
filename = "subprojects/omegaconf-pydevd/version.py"
[tool.towncrier]
package = "omegaconf"
package_dir = ""
filename = "NEWS.md"
directory = "news/"
title_format = "## {version} ({project_date})"
template = "news/_template.rst"
issue_format = "[#{issue}](https://github.com/omry/omegaconf/issues/{issue})"
start_string = "<!-- TOWNCRIER -->\n"
underlines = [""]
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug Fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "api_change"
name = "API changes and deprecations"
showcontent = true
[[tool.towncrier.type]]
directory = "docs"
name = "Improved Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Miscellaneous changes"
showcontent = true
[tool.pyrefly]
project-excludes = [
"build/**",
"temp/**",
".nox/**",
".venv/**",
"omegaconf/vendor/**",
"subprojects/**",
]
project-includes = [
"benchmark",
"build_helpers",
"docs/source/conf.py",
"omegaconf",
"tests",
"noxfile.py",
"setup.py",
]
ignore-missing-imports = [
"omegaconf.grammar.gen.*",
]