Skip to content

Infra: Fix non-PEP txt files being included and erroring out the build #2405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,28 @@

# List of patterns (relative to source dir) to ignore when looking for source files.
exclude_patterns = [
# Windows:
"Thumbs.db",
".DS_Store",
# Python:
".venv",
"venv",
"requirements.txt",
# Any .txt files in subdirectories:
"**/*.txt",
# Non-PEP .txt files in the root (i.e. not "pep-[0-9][0-9][0-9][0-9].txt"):
"*[!0-9].txt",
"*[!0-9]?.txt",
"*[!0-9]??.txt",
"*[!0-9]???.txt",
"*[!p]?????.txt",
"*[!e]??????.txt",
"*[!p]???????.txt",
# Git
".git",
# Python
"*env*",
# Sphinx:
"build",
"output.txt", # Link-check output
# PEPs:
"pep-0012",
# Meta files:
"README.rst",
"CONTRIBUTING.rst",
"pep_sphinx_extensions/LICENCE.rst",
# Miscellaneous
".codespell",
# Non-built files:
"pep-0012/pep-NNNN.rst",
]

# -- Options for HTML output -------------------------------------------------
Expand Down