-
-
Notifications
You must be signed in to change notification settings - Fork 917
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (111 loc) · 2.72 KB
/
Copy pathpyproject.toml
File metadata and controls
126 lines (111 loc) · 2.72 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
125
126
[tool.towncrier]
package = "hydra"
package_dir = ""
filename = "NEWS.md"
directory = "news/"
title_format = "{version} ({project_date})"
template = "news/_template.rst"
issue_format = "[#{issue}](https://github.com/facebookresearch/hydra/issues/{issue})"
start_string = "<!-- TOWNCRIER -->\n"
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "api_change"
name = "API Change (Renames, deprecations and removals)"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug Fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "plugin"
name = "Plugins"
showcontent = true
[[tool.towncrier.type]]
directory = "config"
name = "Configuration structure changes"
showcontent = true
[[tool.towncrier.type]]
directory = "docs"
name = "Improved Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "maintenance"
name = "Maintenance Changes"
showcontent = true
[tool.ruff]
line-length = 88
target-version = "py310"
include = ["*.py", "*.pyi"]
extend-exclude = [
".sl",
"hydra/grammar/gen",
"temp",
"tools/configen/example/gen",
"tools/configen/tests/test_modules/expected",
"website",
]
[tool.ruff.lint]
exclude = [
"examples/plugins/example_configsource_plugin/hydra_plugins/example_configsource_plugin/example_configsource_plugin.py",
"hydra/test_utils/config_source_common_tests.py",
"tests/test_apps/config_source_test/structured.py",
]
fixable = ["I"]
ignore = ["E203", "E231", "E241", "E701"]
preview = true
select = ["E", "F", "I", "W", "CPY"]
[tool.ruff.lint.per-file-ignores]
".stubs/**" = ["CPY001"]
"examples/plugins/**" = ["I001"]
"hydra/plugins/**" = ["I001"]
"tests/instantiate/__init__.py" = ["F401"]
[tool.ruff.lint.flake8-copyright]
notice-rgx = '(?i)Copyright \(c\) Facebook, Inc. and its affiliates. All Rights Reserved'
[tool.ruff.lint.pycodestyle]
max-line-length = 119
[tool.ruff.lint.isort]
known-first-party = ["hydra", "hydra_app"]
section-order = [
"future",
"standard-library",
"libs",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.lint.isort.sections]
libs = ["setuptools"]
[tool.pyrefly]
project-includes = [
"noxfile.py",
"setup.py",
"build_helpers/**/*.py",
"hydra/**/*.py",
"tests/**/*.py",
]
project-excludes = [
"hydra/grammar/gen/**",
"tests/standalone_apps/**",
"tests/test_apps/**",
]
search-path = [
".stubs",
]
ignore-missing-imports = [
"antlr4",
"antlr4.*",
"nevergrad",
"nevergrad.*",
"rq",
"rq.*",
]
replace-imports-with-any = [
"hydra.grammar.gen.*",
]
enabled-ignores = [
"type",
"pyrefly",
]