You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|:warning: Ensure that your schema definitions come from internal or trusted sources. Yamale does not protect against intentionally malicious schemas. |
5
10
|:------------|
@@ -11,8 +16,6 @@ A schema and validator for YAML.
11
16
What's YAML? See the current spec [here](http://www.yaml.org/spec/1.2/spec.html) and an introduction
12
17
to the syntax [here](https://github.com/Animosity/CraftIRC/wiki/Complete-idiot's-introduction-to-yaml).
parser.add_argument("-s", "--schema", default="schema.yaml", help="filename of schema. Default is schema.yaml.")
121
-
parser.add_argument("-n", "--cpu-num", default=4, type=int, help="number of CPUs to use. Default is 4.")
140
+
parser.add_argument(
141
+
"-e",
142
+
"--exclude",
143
+
metavar="PATTERN",
144
+
action="append",
145
+
help="Python regex used to exclude files from validation. Any substring match of a file's absolute path will be excluded. Uses default Python3 regex. Option can be supplied multiple times.",
146
+
)
122
147
parser.add_argument(
123
148
"-p",
124
149
"--parser",
125
150
default="pyyaml",
126
151
help='YAML library to load files. Choices are "ruamel" or "pyyaml" (default).',
127
152
)
128
153
parser.add_argument(
129
-
"--no-strict", action="store_true", help="Disable strict mode, unexpected elements in the data will be accepted."
154
+
"-n",
155
+
"--cpu-num",
156
+
default=4,
157
+
type=int_or_auto,
158
+
help="Number of child processes to spawn for validation. Default is 4. 'auto' to use CPU count.",
130
159
)
160
+
parser.add_argument(
161
+
"-x",
162
+
"--no-strict",
163
+
action="store_true",
164
+
help="Disable strict mode, unexpected elements in the data will be accepted.",
0 commit comments