@schemastore/tox 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +14 -0
  3. package/index.d.ts +759 -0
  4. package/package.json +10 -0
package/index.d.ts ADDED
@@ -0,0 +1,759 @@
1
+ /* eslint-disable */
2
+
3
+ export type Subs =
4
+ | string
5
+ | {
6
+ replace: string;
7
+ name?: string;
8
+ default?: string | Subs[];
9
+ extend?: boolean;
10
+ }
11
+ | {
12
+ replace: string;
13
+ of: string[];
14
+ default?: string | Subs[];
15
+ extend?: boolean;
16
+ };
17
+ /**
18
+ * Deprecated: use 'env_list' instead
19
+ */
20
+ export type EnvList = (
21
+ | Subs
22
+ | {
23
+ /**
24
+ * factor groups for cartesian product expansion
25
+ */
26
+ product: (
27
+ | string[]
28
+ | {
29
+ prefix: string;
30
+ start?: number;
31
+ stop?: number;
32
+ }
33
+ | {
34
+ [k: string]: string[] | undefined;
35
+ }
36
+ )[];
37
+ /**
38
+ * environment names to exclude from product
39
+ */
40
+ exclude?: string[];
41
+ }
42
+ )[];
43
+ /**
44
+ * Deprecated: use 'pass_env' instead
45
+ */
46
+ export type PassEnv = Subs[];
47
+
48
+ /**
49
+ * tox configuration file (tox.toml or [tool.tox] in pyproject.toml)
50
+ */
51
+ export interface ToxConfiguration {
52
+ /**
53
+ * the root directory (where the configuration file is found)
54
+ */
55
+ tox_root?: string;
56
+ /**
57
+ * @deprecated
58
+ * Deprecated: use 'tox_root' instead
59
+ */
60
+ toxinidir?: string;
61
+ /**
62
+ * working directory
63
+ */
64
+ work_dir?: string;
65
+ /**
66
+ * @deprecated
67
+ * Deprecated: use 'work_dir' instead
68
+ */
69
+ toxworkdir?: string;
70
+ /**
71
+ * a folder for temporary files (is not cleaned at start)
72
+ */
73
+ temp_dir?: string;
74
+ /**
75
+ * define environments to automatically run
76
+ */
77
+ env_list?: (
78
+ | Subs
79
+ | {
80
+ /**
81
+ * factor groups for cartesian product expansion
82
+ */
83
+ product: (
84
+ | string[]
85
+ | {
86
+ prefix: string;
87
+ start?: number;
88
+ stop?: number;
89
+ }
90
+ | {
91
+ [k: string]: string[] | undefined;
92
+ }
93
+ )[];
94
+ /**
95
+ * environment names to exclude from product
96
+ */
97
+ exclude?: string[];
98
+ }
99
+ )[];
100
+ envlist?: EnvList;
101
+ /**
102
+ * inherit missing keys from these sections
103
+ */
104
+ base?: Subs[];
105
+ /**
106
+ * Define the minimal tox version required to run
107
+ */
108
+ min_version?: string;
109
+ /**
110
+ * @deprecated
111
+ * Deprecated: use 'min_version' instead
112
+ */
113
+ minversion?: string;
114
+ /**
115
+ * Name of the virtual environment used to provision a tox.
116
+ */
117
+ provision_tox_env?: string;
118
+ /**
119
+ * Name of the virtual environment used to provision a tox.
120
+ */
121
+ requires?: Subs[];
122
+ /**
123
+ * core labels
124
+ */
125
+ labels?: {
126
+ [k: string]:
127
+ | (
128
+ | Subs
129
+ | {
130
+ /**
131
+ * factor groups for cartesian product expansion
132
+ */
133
+ product: (
134
+ | string[]
135
+ | {
136
+ prefix: string;
137
+ start?: number;
138
+ stop?: number;
139
+ }
140
+ | {
141
+ [k: string]: string[] | undefined;
142
+ }
143
+ )[];
144
+ /**
145
+ * environment names to exclude from product
146
+ */
147
+ exclude?: string[];
148
+ }
149
+ )[]
150
+ | undefined;
151
+ };
152
+ /**
153
+ * do not raise error if the environment name conflicts with base python
154
+ */
155
+ ignore_base_python_conflict?: boolean;
156
+ /**
157
+ * @deprecated
158
+ * Deprecated: use 'ignore_base_python_conflict' instead
159
+ */
160
+ ignore_basepython_conflict?: boolean;
161
+ /**
162
+ * skip running missing interpreters
163
+ */
164
+ skip_missing_interpreters?: boolean;
165
+ /**
166
+ * is there any packaging involved in this project
167
+ */
168
+ no_package?: boolean;
169
+ /**
170
+ * @deprecated
171
+ * Deprecated: use 'no_package' instead
172
+ */
173
+ skipsdist?: boolean;
174
+ /**
175
+ * tox environment used to package
176
+ */
177
+ package_env?: string;
178
+ /**
179
+ * @deprecated
180
+ * Deprecated: use 'package_env' instead
181
+ */
182
+ isolated_build_env?: string;
183
+ /**
184
+ * indicates where the packaging root file exists (historically setup.py file or pyproject.toml now)
185
+ */
186
+ package_root?: string;
187
+ /**
188
+ * @deprecated
189
+ * Deprecated: use 'package_root' instead
190
+ */
191
+ setupdir?: string;
192
+ env_run_base?: EnvRunBase;
193
+ env_pkg_base?: EnvRunBase1;
194
+ /**
195
+ * per-environment overrides (keyed by environment name)
196
+ */
197
+ env?: {
198
+ [k: string]: EnvRunBase;
199
+ };
200
+ /**
201
+ * tox configuration in INI format embedded in a TOML file
202
+ */
203
+ legacy_tox_ini?: string;
204
+ [k: string]: unknown | undefined;
205
+ }
206
+ /**
207
+ * base configuration for run environments
208
+ *
209
+ * This interface was referenced by `undefined`'s JSON-Schema definition
210
+ * via the `patternProperty` "^.*$".
211
+ */
212
+ export interface EnvRunBase {
213
+ /**
214
+ * environment variables to set when running commands in the tox environment
215
+ */
216
+ set_env?: {
217
+ [k: string]: Subs;
218
+ };
219
+ setenv?: SetEnv;
220
+ /**
221
+ * inherit missing keys from these sections
222
+ */
223
+ base?: Subs[];
224
+ /**
225
+ * the tox execute used to evaluate this environment
226
+ */
227
+ runner?: string;
228
+ /**
229
+ * description attached to the tox environment
230
+ */
231
+ description?: string;
232
+ /**
233
+ * tox environments that this environment depends on (must be run after those)
234
+ */
235
+ depends?: (
236
+ | Subs
237
+ | {
238
+ /**
239
+ * factor groups for cartesian product expansion
240
+ */
241
+ product: (
242
+ | string[]
243
+ | {
244
+ prefix: string;
245
+ start?: number;
246
+ stop?: number;
247
+ }
248
+ | {
249
+ [k: string]: string[] | undefined;
250
+ }
251
+ )[];
252
+ /**
253
+ * environment names to exclude from product
254
+ */
255
+ exclude?: string[];
256
+ }
257
+ )[];
258
+ /**
259
+ * labels attached to the tox environment
260
+ */
261
+ labels?: Subs[];
262
+ /**
263
+ * directory assigned to the tox environment
264
+ */
265
+ env_dir?: string;
266
+ /**
267
+ * @deprecated
268
+ * Deprecated: use 'env_dir' instead
269
+ */
270
+ envdir?: string;
271
+ /**
272
+ * a folder that is always reset at the start of the run
273
+ */
274
+ env_tmp_dir?: string;
275
+ /**
276
+ * @deprecated
277
+ * Deprecated: use 'env_tmp_dir' instead
278
+ */
279
+ envtmpdir?: string;
280
+ /**
281
+ * a folder for logging where tox will put logs of tool invocation
282
+ */
283
+ env_log_dir?: string;
284
+ /**
285
+ * @deprecated
286
+ * Deprecated: use 'env_log_dir' instead
287
+ */
288
+ envlogdir?: string;
289
+ /**
290
+ * timeout to allow process to exit before sending SIGINT
291
+ */
292
+ suicide_timeout?: number;
293
+ /**
294
+ * timeout before sending SIGTERM after SIGINT
295
+ */
296
+ interrupt_timeout?: number;
297
+ /**
298
+ * timeout before sending SIGKILL after SIGTERM
299
+ */
300
+ terminate_timeout?: number;
301
+ /**
302
+ * run on platforms that match this regular expression (empty means any platform)
303
+ */
304
+ platform?: string;
305
+ /**
306
+ * environment variables to pass on to the tox environment
307
+ */
308
+ pass_env?: Subs[];
309
+ passenv?: PassEnv;
310
+ /**
311
+ * environment variable patterns to exclude after pass_env glob expansion
312
+ */
313
+ disallow_pass_env?: Subs[];
314
+ /**
315
+ * if set to True the content of the output will always be shown when running in parallel mode
316
+ */
317
+ parallel_show_output?: boolean;
318
+ /**
319
+ * always recreate virtual environment if this option is true, otherwise leave it up to tox
320
+ */
321
+ recreate?: boolean;
322
+ /**
323
+ * external command glob to allow calling
324
+ */
325
+ allowlist_externals?: Subs[];
326
+ /**
327
+ * command used to list installed packages
328
+ */
329
+ list_dependencies_command?: Subs[];
330
+ /**
331
+ * install the latest available pre-release (alpha/beta/rc) of dependencies without a specified version
332
+ */
333
+ pip_pre?: boolean;
334
+ /**
335
+ * command used to install packages
336
+ */
337
+ install_command?: Subs[];
338
+ /**
339
+ * constraints to apply to installed python dependencies
340
+ */
341
+ constraints?: string;
342
+ /**
343
+ * If true, apply constraints during install_package_deps.
344
+ */
345
+ constrain_package_deps?: boolean;
346
+ /**
347
+ * Use the exact versions of installed deps as constraints, otherwise use the listed deps.
348
+ */
349
+ use_frozen_constraints?: boolean;
350
+ /**
351
+ * the commands to be called before testing
352
+ */
353
+ commands_pre?: Subs[][];
354
+ /**
355
+ * the commands to be called for testing
356
+ */
357
+ commands?: Subs[][];
358
+ /**
359
+ * the commands to be called after testing
360
+ */
361
+ commands_post?: Subs[][];
362
+ /**
363
+ * commands to run before the environment is removed during recreation (e.g. cache cleanup)
364
+ */
365
+ recreate_commands?: Subs[][];
366
+ /**
367
+ * change to this working directory when executing the test command
368
+ */
369
+ change_dir?: string;
370
+ /**
371
+ * @deprecated
372
+ * Deprecated: use 'change_dir' instead
373
+ */
374
+ changedir?: string;
375
+ /**
376
+ * if True rewrite relative posargs paths from cwd to change_dir
377
+ */
378
+ args_are_paths?: boolean;
379
+ /**
380
+ * when executing the commands keep going even if a sub-command exits with non-zero exit code
381
+ */
382
+ ignore_errors?: boolean;
383
+ /**
384
+ * number of times to retry a failed command (0 means no retries)
385
+ */
386
+ commands_retry?: number;
387
+ /**
388
+ * if set to true a failing result of this testenv will not make tox fail (instead just warn)
389
+ */
390
+ ignore_outcome?: boolean;
391
+ /**
392
+ * if set to true, tox will stop executing remaining environments when this environment fails
393
+ */
394
+ fail_fast?: boolean;
395
+ /**
396
+ * fallback python interpreter used when no factor or explicit base_python is defined
397
+ */
398
+ default_base_python?: Subs[] | string;
399
+ /**
400
+ * environment identifier for python, first one found wins
401
+ */
402
+ base_python?: Subs[] | string;
403
+ /**
404
+ * @deprecated
405
+ * Deprecated: use 'base_python' instead
406
+ */
407
+ basepython?: Subs[] | string;
408
+ /**
409
+ * python dependencies with optional version specifiers, as specified by PEP-440
410
+ */
411
+ deps?: string;
412
+ /**
413
+ * dependency groups to install of the target package
414
+ */
415
+ dependency_groups?: Subs[];
416
+ /**
417
+ * extras to install of the target package
418
+ */
419
+ extras?: Subs[];
420
+ /**
421
+ * PEP 751 pylock.toml lock file path to install locked dependencies from
422
+ */
423
+ pylock?: string;
424
+ /**
425
+ * commands to execute after setup (deps and package install) but before test commands
426
+ */
427
+ extra_setup_commands?: Subs[][];
428
+ /**
429
+ * override core skip_missing_interpreters for this environment
430
+ */
431
+ skip_missing_interpreters?: boolean;
432
+ /**
433
+ * create virtual environments that also have access to globally installed packages.
434
+ */
435
+ system_site_packages?: boolean;
436
+ /**
437
+ * @deprecated
438
+ * Deprecated: use 'system_site_packages' instead
439
+ */
440
+ sitepackages?: boolean;
441
+ /**
442
+ * force virtualenv to always copy rather than symlink
443
+ */
444
+ always_copy?: boolean;
445
+ /**
446
+ * @deprecated
447
+ * Deprecated: use 'always_copy' instead
448
+ */
449
+ alwayscopy?: boolean;
450
+ /**
451
+ * true if you want virtualenv to upgrade pip/wheel/setuptools to the latest version
452
+ */
453
+ download?: boolean;
454
+ /**
455
+ * PEP 440 version spec for virtualenv (e.g. virtualenv<20.22.0). When set, tox bootstraps this version in an isolated environment and runs it via subprocess, enabling Python versions incompatible with the installed virtualenv.
456
+ */
457
+ virtualenv_spec?: string;
458
+ /**
459
+ * skip installation
460
+ */
461
+ skip_install?: boolean;
462
+ /**
463
+ * use develop mode
464
+ */
465
+ use_develop?: boolean;
466
+ /**
467
+ * @deprecated
468
+ * Deprecated: use 'use_develop' instead
469
+ */
470
+ usedevelop?: boolean;
471
+ /**
472
+ * package installation mode - wheel | sdist | sdist-wheel | editable | editable-legacy | deps-only | skip | external
473
+ */
474
+ package?: string;
475
+ /**
476
+ * tox environment used to package
477
+ */
478
+ package_env?: string;
479
+ [k: string]: unknown | undefined;
480
+ }
481
+ /**
482
+ * @deprecated
483
+ * Deprecated: use 'set_env' instead
484
+ */
485
+ export interface SetEnv {
486
+ [k: string]: Subs;
487
+ }
488
+ /**
489
+ * base configuration for packaging environments
490
+ */
491
+ export interface EnvRunBase1 {
492
+ /**
493
+ * environment variables to set when running commands in the tox environment
494
+ */
495
+ set_env?: {
496
+ [k: string]: Subs;
497
+ };
498
+ setenv?: SetEnv;
499
+ /**
500
+ * inherit missing keys from these sections
501
+ */
502
+ base?: Subs[];
503
+ /**
504
+ * the tox execute used to evaluate this environment
505
+ */
506
+ runner?: string;
507
+ /**
508
+ * description attached to the tox environment
509
+ */
510
+ description?: string;
511
+ /**
512
+ * tox environments that this environment depends on (must be run after those)
513
+ */
514
+ depends?: (
515
+ | Subs
516
+ | {
517
+ /**
518
+ * factor groups for cartesian product expansion
519
+ */
520
+ product: (
521
+ | string[]
522
+ | {
523
+ prefix: string;
524
+ start?: number;
525
+ stop?: number;
526
+ }
527
+ | {
528
+ [k: string]: string[] | undefined;
529
+ }
530
+ )[];
531
+ /**
532
+ * environment names to exclude from product
533
+ */
534
+ exclude?: string[];
535
+ }
536
+ )[];
537
+ /**
538
+ * labels attached to the tox environment
539
+ */
540
+ labels?: Subs[];
541
+ /**
542
+ * directory assigned to the tox environment
543
+ */
544
+ env_dir?: string;
545
+ /**
546
+ * @deprecated
547
+ * Deprecated: use 'env_dir' instead
548
+ */
549
+ envdir?: string;
550
+ /**
551
+ * a folder that is always reset at the start of the run
552
+ */
553
+ env_tmp_dir?: string;
554
+ /**
555
+ * @deprecated
556
+ * Deprecated: use 'env_tmp_dir' instead
557
+ */
558
+ envtmpdir?: string;
559
+ /**
560
+ * a folder for logging where tox will put logs of tool invocation
561
+ */
562
+ env_log_dir?: string;
563
+ /**
564
+ * @deprecated
565
+ * Deprecated: use 'env_log_dir' instead
566
+ */
567
+ envlogdir?: string;
568
+ /**
569
+ * timeout to allow process to exit before sending SIGINT
570
+ */
571
+ suicide_timeout?: number;
572
+ /**
573
+ * timeout before sending SIGTERM after SIGINT
574
+ */
575
+ interrupt_timeout?: number;
576
+ /**
577
+ * timeout before sending SIGKILL after SIGTERM
578
+ */
579
+ terminate_timeout?: number;
580
+ /**
581
+ * run on platforms that match this regular expression (empty means any platform)
582
+ */
583
+ platform?: string;
584
+ /**
585
+ * environment variables to pass on to the tox environment
586
+ */
587
+ pass_env?: Subs[];
588
+ passenv?: PassEnv;
589
+ /**
590
+ * environment variable patterns to exclude after pass_env glob expansion
591
+ */
592
+ disallow_pass_env?: Subs[];
593
+ /**
594
+ * if set to True the content of the output will always be shown when running in parallel mode
595
+ */
596
+ parallel_show_output?: boolean;
597
+ /**
598
+ * always recreate virtual environment if this option is true, otherwise leave it up to tox
599
+ */
600
+ recreate?: boolean;
601
+ /**
602
+ * external command glob to allow calling
603
+ */
604
+ allowlist_externals?: Subs[];
605
+ /**
606
+ * command used to list installed packages
607
+ */
608
+ list_dependencies_command?: Subs[];
609
+ /**
610
+ * install the latest available pre-release (alpha/beta/rc) of dependencies without a specified version
611
+ */
612
+ pip_pre?: boolean;
613
+ /**
614
+ * command used to install packages
615
+ */
616
+ install_command?: Subs[];
617
+ /**
618
+ * constraints to apply to installed python dependencies
619
+ */
620
+ constraints?: string;
621
+ /**
622
+ * If true, apply constraints during install_package_deps.
623
+ */
624
+ constrain_package_deps?: boolean;
625
+ /**
626
+ * Use the exact versions of installed deps as constraints, otherwise use the listed deps.
627
+ */
628
+ use_frozen_constraints?: boolean;
629
+ /**
630
+ * the commands to be called before testing
631
+ */
632
+ commands_pre?: Subs[][];
633
+ /**
634
+ * the commands to be called for testing
635
+ */
636
+ commands?: Subs[][];
637
+ /**
638
+ * the commands to be called after testing
639
+ */
640
+ commands_post?: Subs[][];
641
+ /**
642
+ * commands to run before the environment is removed during recreation (e.g. cache cleanup)
643
+ */
644
+ recreate_commands?: Subs[][];
645
+ /**
646
+ * change to this working directory when executing the test command
647
+ */
648
+ change_dir?: string;
649
+ /**
650
+ * @deprecated
651
+ * Deprecated: use 'change_dir' instead
652
+ */
653
+ changedir?: string;
654
+ /**
655
+ * if True rewrite relative posargs paths from cwd to change_dir
656
+ */
657
+ args_are_paths?: boolean;
658
+ /**
659
+ * when executing the commands keep going even if a sub-command exits with non-zero exit code
660
+ */
661
+ ignore_errors?: boolean;
662
+ /**
663
+ * number of times to retry a failed command (0 means no retries)
664
+ */
665
+ commands_retry?: number;
666
+ /**
667
+ * if set to true a failing result of this testenv will not make tox fail (instead just warn)
668
+ */
669
+ ignore_outcome?: boolean;
670
+ /**
671
+ * if set to true, tox will stop executing remaining environments when this environment fails
672
+ */
673
+ fail_fast?: boolean;
674
+ /**
675
+ * fallback python interpreter used when no factor or explicit base_python is defined
676
+ */
677
+ default_base_python?: Subs[] | string;
678
+ /**
679
+ * environment identifier for python, first one found wins
680
+ */
681
+ base_python?: Subs[] | string;
682
+ /**
683
+ * @deprecated
684
+ * Deprecated: use 'base_python' instead
685
+ */
686
+ basepython?: Subs[] | string;
687
+ /**
688
+ * python dependencies with optional version specifiers, as specified by PEP-440
689
+ */
690
+ deps?: string;
691
+ /**
692
+ * dependency groups to install of the target package
693
+ */
694
+ dependency_groups?: Subs[];
695
+ /**
696
+ * extras to install of the target package
697
+ */
698
+ extras?: Subs[];
699
+ /**
700
+ * PEP 751 pylock.toml lock file path to install locked dependencies from
701
+ */
702
+ pylock?: string;
703
+ /**
704
+ * commands to execute after setup (deps and package install) but before test commands
705
+ */
706
+ extra_setup_commands?: Subs[][];
707
+ /**
708
+ * override core skip_missing_interpreters for this environment
709
+ */
710
+ skip_missing_interpreters?: boolean;
711
+ /**
712
+ * create virtual environments that also have access to globally installed packages.
713
+ */
714
+ system_site_packages?: boolean;
715
+ /**
716
+ * @deprecated
717
+ * Deprecated: use 'system_site_packages' instead
718
+ */
719
+ sitepackages?: boolean;
720
+ /**
721
+ * force virtualenv to always copy rather than symlink
722
+ */
723
+ always_copy?: boolean;
724
+ /**
725
+ * @deprecated
726
+ * Deprecated: use 'always_copy' instead
727
+ */
728
+ alwayscopy?: boolean;
729
+ /**
730
+ * true if you want virtualenv to upgrade pip/wheel/setuptools to the latest version
731
+ */
732
+ download?: boolean;
733
+ /**
734
+ * PEP 440 version spec for virtualenv (e.g. virtualenv<20.22.0). When set, tox bootstraps this version in an isolated environment and runs it via subprocess, enabling Python versions incompatible with the installed virtualenv.
735
+ */
736
+ virtualenv_spec?: string;
737
+ /**
738
+ * skip installation
739
+ */
740
+ skip_install?: boolean;
741
+ /**
742
+ * use develop mode
743
+ */
744
+ use_develop?: boolean;
745
+ /**
746
+ * @deprecated
747
+ * Deprecated: use 'use_develop' instead
748
+ */
749
+ usedevelop?: boolean;
750
+ /**
751
+ * package installation mode - wheel | sdist | sdist-wheel | editable | editable-legacy | deps-only | skip | external
752
+ */
753
+ package?: string;
754
+ /**
755
+ * tox environment used to package
756
+ */
757
+ package_env?: string;
758
+ [k: string]: unknown | undefined;
759
+ }