@@ -386,6 +386,9 @@ select = [
386
386
# from .flake8
387
387
"sphinx/*" = [" E241" ]
388
388
389
+ # whitelist ``print`` for stdout messages
390
+ "sphinx/_cli/__init__.py" = [" T201" ]
391
+
389
392
# whitelist ``print`` for stdout messages
390
393
"sphinx/cmd/build.py" = [" T201" ]
391
394
"sphinx/cmd/make_mode.py" = [" T201" ]
@@ -435,282 +438,36 @@ forced-separate = [
435
438
preview = true
436
439
quote-style = " single"
437
440
exclude = [
441
+ " sphinx/_cli/*" ,
438
442
" sphinx/addnodes.py" ,
439
443
" sphinx/application.py" ,
440
- " sphinx/builders/gettext.py" ,
441
- " sphinx/builders/text.py" ,
442
- " sphinx/builders/linkcheck.py" ,
443
- " sphinx/builders/_epub_base.py" ,
444
- " sphinx/builders/dummy.py" ,
445
- " sphinx/builders/changes.py" ,
446
- " sphinx/builders/texinfo.py" ,
447
- " sphinx/builders/dirhtml.py" ,
448
- " sphinx/builders/__init__.py" ,
449
- " sphinx/builders/xml.py" ,
450
- " sphinx/builders/singlehtml.py" ,
451
- " sphinx/builders/epub3.py" ,
452
- " sphinx/builders/manpage.py" ,
453
- " sphinx/builders/latex/constants.py" ,
454
- " sphinx/builders/latex/__init__.py" ,
455
- " sphinx/builders/latex/theming.py" ,
456
- " sphinx/builders/latex/transforms.py" ,
457
- " sphinx/builders/latex/util.py" ,
458
- " sphinx/builders/latex/nodes.py" ,
459
- " sphinx/builders/html/_assets.py" ,
460
- " sphinx/builders/html/__init__.py" ,
461
- " sphinx/builders/html/transforms.py" ,
462
- " sphinx/cmd/quickstart.py" ,
463
- " sphinx/cmd/build.py" ,
464
- " sphinx/cmd/make_mode.py" ,
444
+ " sphinx/builders/*" ,
445
+ " sphinx/cmd/*" ,
465
446
" sphinx/config.py" ,
466
- " sphinx/directives/__init__.py" ,
467
- " sphinx/directives/code.py" ,
468
- " sphinx/directives/patches.py" ,
469
- " sphinx/directives/other.py" ,
470
- " sphinx/domains/math.py" ,
471
- " sphinx/domains/changeset.py" ,
472
- " sphinx/domains/javascript.py" ,
473
- " sphinx/domains/__init__.py" ,
474
- " sphinx/domains/citation.py" ,
475
- " sphinx/domains/rst.py" ,
476
- " sphinx/domains/index.py" ,
477
- " sphinx/domains/std/__init__.py" ,
478
- " sphinx/domains/python/_annotations.py" ,
479
- " sphinx/domains/python/__init__.py" ,
480
- " sphinx/domains/python/_object.py" ,
481
- " sphinx/domains/cpp/_parser.py" ,
482
- " sphinx/domains/cpp/_ids.py" ,
483
- " sphinx/domains/cpp/__init__.py" ,
484
- " sphinx/domains/cpp/_symbol.py" ,
485
- " sphinx/domains/cpp/_ast.py" ,
486
- " sphinx/domains/c/_parser.py" ,
487
- " sphinx/domains/c/_ids.py" ,
488
- " sphinx/domains/c/__init__.py" ,
489
- " sphinx/domains/c/_symbol.py" ,
490
- " sphinx/domains/c/_ast.py" ,
491
- " sphinx/environment/__init__.py" ,
492
- " sphinx/environment/collectors/dependencies.py" ,
493
- " sphinx/environment/collectors/toctree.py" ,
494
- " sphinx/environment/collectors/metadata.py" ,
495
- " sphinx/environment/collectors/title.py" ,
496
- " sphinx/environment/collectors/asset.py" ,
497
- " sphinx/environment/collectors/__init__.py" ,
498
- " sphinx/environment/adapters/toctree.py" ,
499
- " sphinx/environment/adapters/indexentries.py" ,
500
- " sphinx/environment/adapters/asset.py" ,
501
- " sphinx/ext/extlinks.py" ,
502
- " sphinx/ext/todo.py" ,
503
- " sphinx/ext/mathjax.py" ,
504
- " sphinx/ext/doctest.py" ,
505
- " sphinx/ext/autosectionlabel.py" ,
506
- " sphinx/ext/intersphinx/__init__.py" ,
507
- " sphinx/ext/intersphinx/_cli.py" ,
508
- " sphinx/ext/intersphinx/_load.py" ,
509
- " sphinx/ext/intersphinx/_resolve.py" ,
510
- " sphinx/ext/duration.py" ,
511
- " sphinx/ext/imgconverter.py" ,
512
- " sphinx/ext/imgmath.py" ,
513
- " sphinx/ext/apidoc.py" ,
514
- " sphinx/ext/viewcode.py" ,
515
- " sphinx/ext/githubpages.py" ,
516
- " sphinx/ext/linkcode.py" ,
517
- " sphinx/ext/ifconfig.py" ,
518
- " sphinx/ext/inheritance_diagram.py" ,
519
- " sphinx/ext/coverage.py" ,
520
- " sphinx/ext/graphviz.py" ,
521
- " sphinx/ext/napoleon/docstring.py" ,
522
- " sphinx/ext/napoleon/__init__.py" ,
523
- " sphinx/ext/autodoc/typehints.py" ,
524
- " sphinx/ext/autodoc/preserve_defaults.py" ,
525
- " sphinx/ext/autodoc/__init__.py" ,
526
- " sphinx/ext/autodoc/directive.py" ,
527
- " sphinx/ext/autodoc/importer.py" ,
528
- " sphinx/ext/autodoc/type_comment.py" ,
529
- " sphinx/ext/autodoc/mock.py" ,
530
- " sphinx/ext/autosummary/__init__.py" ,
531
- " sphinx/ext/autosummary/generate.py" ,
532
- " sphinx/pycode/ast.py" ,
533
- " sphinx/pycode/__init__.py" ,
534
- " sphinx/pycode/parser.py" ,
447
+ " sphinx/directives/*" ,
448
+ " sphinx/domains/*" ,
449
+ " sphinx/environment/*" ,
450
+ " sphinx/ext/*" ,
451
+ " sphinx/pycode/*" ,
535
452
" sphinx/pygments_styles.py" ,
536
453
" sphinx/registry.py" ,
537
- " sphinx/search/*.py" ,
538
- " sphinx/testing/fixtures.py" ,
539
- " sphinx/testing/path.py" ,
540
- " sphinx/testing/restructuredtext.py" ,
541
- " sphinx/testing/util.py" ,
542
- " sphinx/transforms/__init__.py" ,
543
- " sphinx/transforms/compact_bullet_list.py" ,
544
- " sphinx/transforms/references.py" ,
545
- " sphinx/transforms/i18n.py" ,
546
- " sphinx/transforms/post_transforms/__init__.py" ,
547
- " sphinx/transforms/post_transforms/code.py" ,
548
- " sphinx/transforms/post_transforms/images.py" ,
549
- " sphinx/util/build_phase.py" ,
550
- " sphinx/util/template.py" ,
551
- " sphinx/util/osutil.py" ,
552
- " sphinx/util/docutils.py" ,
553
- " sphinx/util/_pathlib.py" ,
554
- " sphinx/util/cfamily.py" ,
555
- " sphinx/util/math.py" ,
556
- " sphinx/util/logging.py" ,
557
- " sphinx/util/inspect.py" ,
558
- " sphinx/util/parallel.py" ,
559
- " sphinx/util/inventory.py" ,
560
- " sphinx/util/__init__.py" ,
561
- " sphinx/util/docfields.py" ,
562
- " sphinx/util/display.py" ,
563
- " sphinx/util/http_date.py" ,
564
- " sphinx/util/matching.py" ,
565
- " sphinx/util/index_entries.py" ,
566
- " sphinx/util/typing.py" ,
567
- " sphinx/util/images.py" ,
568
- " sphinx/util/exceptions.py" ,
569
- " sphinx/util/requests.py" ,
570
- " sphinx/util/docstrings.py" ,
571
- " sphinx/util/rst.py" ,
572
- " sphinx/util/i18n.py" ,
573
- " sphinx/util/fileutil.py" ,
574
- " sphinx/util/png.py" ,
575
- " sphinx/util/tags.py" ,
576
- " sphinx/util/texescape.py" ,
577
- " sphinx/util/nodes.py" ,
578
- " sphinx/util/_io.py" ,
579
- " sphinx/writers/text.py" ,
580
- " sphinx/writers/html5.py" ,
581
- " sphinx/writers/html.py" ,
582
- " sphinx/writers/texinfo.py" ,
583
- " sphinx/writers/latex.py" ,
584
- " sphinx/writers/xml.py" ,
585
- " sphinx/writers/manpage.py" ,
586
- " tests/conftest.py" ,
587
- " tests/roots/**/*" ,
588
- " tests/test_addnodes.py" ,
589
- " tests/test_application.py" ,
590
- " tests/test_builders/test_build_html_maths.py" ,
591
- " tests/test_builders/test_build_html_image.py" ,
592
- " tests/test_builders/test_build_latex.py" ,
593
- " tests/test_builders/test_build_text.py" ,
594
- " tests/test_builders/test_build_html_5_output.py" ,
595
- " tests/test_builders/test_build_changes.py" ,
596
- " tests/test_builders/test_builder.py" ,
597
- " tests/test_builders/test_build_html_tocdepth.py" ,
598
- " tests/test_builders/test_build_html_download.py" ,
599
- " tests/test_builders/test_build_dirhtml.py" ,
600
- " tests/test_builders/test_build_warnings.py" ,
601
- " tests/test_builders/test_build_html_assets.py" ,
602
- " tests/test_builders/test_build_html.py" ,
603
- " tests/test_builders/test_build_linkcheck.py" ,
604
- " tests/test_builders/test_build_manpage.py" ,
605
- " tests/test_builders/xpath_data.py" ,
606
- " tests/test_builders/test_build_html_highlight.py" ,
607
- " tests/test_builders/test_build_epub.py" ,
608
- " tests/test_builders/test_build_html_code.py" ,
609
- " tests/test_builders/test_build_texinfo.py" ,
610
- " tests/test_builders/xpath_util.py" ,
611
- " tests/test_builders/test_build_gettext.py" ,
612
- " tests/test_builders/conftest.py" ,
613
- " tests/test_builders/test_build_html_numfig.py" ,
614
- " tests/test_builders/test_build.py" ,
615
- " tests/test_config/test_correct_year.py" ,
616
- " tests/test_config/test_config.py" ,
617
- " tests/test_directives/test_directive_patch.py" ,
618
- " tests/test_directives/test_directive_code.py" ,
619
- " tests/test_directives/test_directive_other.py" ,
620
- " tests/test_directives/test_directive_option.py" ,
621
- " tests/test_directives/test_directive_object_description.py" ,
622
- " tests/test_directives/test_directive_only.py" ,
623
- " tests/test_directives/test_directives_no_typesetting.py" ,
624
- " tests/test_domains/test_domain_rst.py" ,
625
- " tests/test_domains/test_domain_py_pyobject.py" ,
626
- " tests/test_domains/test_domain_cpp.py" ,
627
- " tests/test_domains/test_domain_py_canonical.py" ,
628
- " tests/test_domains/test_domain_js.py" ,
629
- " tests/test_domains/test_domain_c.py" ,
630
- " tests/test_domains/test_domain_py_fields.py" ,
631
- " tests/test_domains/test_domain_py.py" ,
632
- " tests/test_domains/test_domain_std.py" ,
633
- " tests/test_domains/test_domain_py_pyfunction.py" ,
634
- " tests/test_environment/test_environment_indexentries.py" ,
635
- " tests/test_environment/test_environment_record_dependencies.py" ,
636
- " tests/test_environment/test_environment_toctree.py" ,
637
- " tests/test_environment/test_environment.py" ,
638
- " tests/test_errors.py" ,
639
- " tests/test_events.py" ,
640
- " tests/test_extensions/test_ext_doctest.py" ,
641
- " tests/test_extensions/test_extension.py" ,
642
- " tests/test_extensions/test_ext_imgconverter.py" ,
643
- " tests/test_extensions/test_ext_graphviz.py" ,
644
- " tests/test_extensions/test_ext_apidoc.py" ,
645
- " tests/test_extensions/test_ext_autodoc.py" ,
646
- " tests/test_extensions/test_ext_todo.py" ,
647
- " tests/test_extensions/autodoc_util.py" ,
648
- " tests/test_extensions/test_ext_extlinks.py" ,
649
- " tests/test_extensions/test_ext_autodoc_events.py" ,
650
- " tests/test_extensions/test_ext_githubpages.py" ,
651
- " tests/test_extensions/test_ext_intersphinx.py" ,
652
- " tests/test_extensions/test_ext_napoleon.py" ,
653
- " tests/test_extensions/test_ext_coverage.py" ,
654
- " tests/test_extensions/ext_napoleon_pep526_data_numpy.py" ,
655
- " tests/test_extensions/test_ext_autodoc_configs.py" ,
656
- " tests/test_extensions/test_ext_viewcode.py" ,
657
- " tests/test_extensions/test_ext_autodoc_preserve_defaults.py" ,
658
- " tests/test_extensions/test_ext_autodoc_mock.py" ,
659
- " tests/test_extensions/test_ext_autodoc_autoclass.py" ,
660
- " tests/test_extensions/test_ext_imgmockconverter.py" ,
661
- " tests/test_extensions/test_ext_autodoc_autoattribute.py" ,
662
- " tests/test_extensions/test_ext_ifconfig.py" ,
663
- " tests/test_extensions/test_ext_autodoc_autofunction.py" ,
664
- " tests/test_extensions/ext_napoleon_pep526_data_google.py" ,
665
- " tests/test_extensions/test_ext_duration.py" ,
666
- " tests/test_extensions/test_ext_autodoc_autoproperty.py" ,
667
- " tests/test_extensions/test_ext_autosummary.py" ,
668
- " tests/test_extensions/test_ext_autosectionlabel.py" ,
669
- " tests/test_extensions/test_ext_napoleon_docstring.py" ,
670
- " tests/test_extensions/test_ext_autodoc_automodule.py" ,
671
- " tests/test_extensions/test_ext_autodoc_private_members.py" ,
672
- " tests/test_extensions/test_ext_math.py" ,
673
- " tests/test_extensions/test_ext_autodoc_autodata.py" ,
674
- " tests/test_extensions/test_ext_inheritance_diagram.py" ,
675
- " tests/test_highlighting.py" ,
676
- " tests/test_intl/test_catalogs.py" ,
677
- " tests/test_intl/test_intl.py" ,
678
- " tests/test_intl/test_locale.py" ,
679
- " tests/test_markup/test_smartquotes.py" ,
680
- " tests/test_markup/test_markup.py" ,
681
- " tests/test_markup/test_parser.py" ,
682
- " tests/test_markup/test_metadata.py" ,
683
- " tests/test_project.py" ,
684
- " tests/test_pycode/test_pycode_parser.py" ,
685
- " tests/test_pycode/test_pycode_ast.py" ,
686
- " tests/test_pycode/test_pycode.py" ,
687
- " tests/test_quickstart.py" ,
688
- " tests/test_roles.py" ,
689
- " tests/test_search.py" ,
690
- " tests/test_toctree.py" ,
691
- " tests/test_transforms/test_transforms_reorder_nodes.py" ,
692
- " tests/test_transforms/test_transforms_move_module_targets.py" ,
693
- " tests/test_transforms/test_transforms_post_transforms_code.py" ,
694
- " tests/test_transforms/test_transforms_post_transforms.py" ,
695
- " tests/test_util/test_util_display.py" ,
696
- " tests/test_util/test_util_inventory.py" ,
697
- " tests/test_util/intersphinx_data.py" ,
698
- " tests/test_util/test_util_logging.py" ,
699
- " tests/test_util/test_util_matching.py" ,
700
- " tests/test_util/test_util_typing.py" ,
701
- " tests/test_util/test_util_fileutil.py" ,
702
- " tests/test_util/test_util_template.py" ,
703
- " tests/test_util/test_util_docstrings.py" ,
704
- " tests/test_util/test_util_images.py" ,
705
- " tests/test_util/test_util.py" ,
706
- " tests/test_util/test_util_nodes.py" ,
707
- " tests/test_util/test_util_i18n.py" ,
708
- " tests/test_util/test_util_rst.py" ,
709
- " tests/test_util/typing_test_data.py" ,
710
- " tests/test_util/test_util_docutils.py" ,
711
- " tests/test_util/test_util_inspect.py" ,
712
- " tests/test_versioning.py" ,
713
- " tests/test_writers/test_api_translator.py" ,
714
- " tests/test_writers/test_docutilsconf.py" ,
715
- " tests/test_writers/test_writer_latex.py" ,
454
+ " sphinx/search/*" ,
455
+ " sphinx/testing/*" ,
456
+ " sphinx/transforms/*" ,
457
+ " sphinx/util/*" ,
458
+ " sphinx/writers/*" ,
459
+ " tests/*" ,
460
+ " tests/roots/*" ,
461
+ " tests/test_builders/*" ,
462
+ " tests/test_config/*" ,
463
+ " tests/test_directives/*" ,
464
+ " tests/test_domains/*" ,
465
+ " tests/test_environment/*" ,
466
+ " tests/test_extensions/*" ,
467
+ " tests/test_intl/*" ,
468
+ " tests/test_markup/*" ,
469
+ " tests/test_pycode/*" ,
470
+ " tests/test_transforms/*" ,
471
+ " tests/test_util/*" ,
472
+ " tests/test_writers/*" ,
716
473
]
0 commit comments