@@ -93,7 +93,7 @@ def get_result(self):
9393 " without reference to import errno. See issue "
9494 "https://github.com/adafruit/circuitpython/issues/1582"
9595)
96- ERROR_MISMATCHED_READTHEDOCS = "Mismatched readthedocs.yml "
96+ ERROR_MISMATCHED_READTHEDOCS = "Mismatched readthedocs.yaml "
9797ERROR_MISSING_DESCRIPTION = "Missing repository description"
9898ERROR_MISSING_EXAMPLE_FILES = "Missing .py files in examples folder"
9999ERROR_MISSING_EXAMPLE_FOLDER = "Missing examples folder"
@@ -110,7 +110,7 @@ def get_result(self):
110110ERROR_MISSING_LINT = "Missing lint config"
111111ERROR_MISSING_CODE_OF_CONDUCT = "Missing CODE_OF_CONDUCT.md"
112112ERROR_MISSING_README_RST = "Missing README.rst"
113- ERROR_MISSING_READTHEDOCS = "Missing readthedocs.yml "
113+ ERROR_MISSING_READTHEDOCS = "Missing readthedocs.yaml "
114114ERROR_MISSING_SETUP_PY = "For pypi compatibility, missing setup.py"
115115ERROR_MISSING_REQUIREMENTS_TXT = "For pypi compatibility, missing requirements.txt"
116116ERROR_MISSING_BLINKA = (
@@ -230,25 +230,25 @@ def __init__(
230230
231231 @property
232232 def rtd_yml_base (self ):
233- """The parsed YAML from `.readthedocs.yml ` in the cookiecutter-adafruit-circuitpython repo.
234- Used to verify that a library's `.readthedocs.yml ` matches this version.
233+ """The parsed YAML from `.readthedocs.yaml ` in the cookiecutter-adafruit-circuitpython repo.
234+ Used to verify that a library's `.readthedocs.yaml ` matches this version.
235235 """
236236 if self ._rtd_yaml_base is None :
237237 rtd_yml_dl_url = (
238238 "https://raw.githubusercontent.com/adafruit/cookiecutter-adafruit-"
239239 "circuitpython/main/%7B%7B%20cookiecutter%20and%20'tmp_repo'%20%7D"
240240 "%7D/%7B%25%20if%20cookiecutter.sphinx_docs%20in%20%5B'y'%2C%20'yes'"
241- "%5D%20%25%7D.readthedocs.yml %7B%25%20endif%20%25%7D"
241+ "%5D%20%25%7D.readthedocs.yaml %7B%25%20endif%20%25%7D"
242242 )
243243 rtd_yml = requests .get (rtd_yml_dl_url )
244244 if rtd_yml .ok :
245245 try :
246246 self ._rtd_yaml_base = yaml .safe_load (rtd_yml .text )
247247 except yaml .YAMLError :
248- print ("Error parsing cookiecutter .readthedocs.yml ." )
248+ print ("Error parsing cookiecutter .readthedocs.yaml ." )
249249 self ._rtd_yaml_base = ""
250250 else :
251- print ("Error retrieving cookiecutter .readthedocs.yml " )
251+ print ("Error retrieving cookiecutter .readthedocs.yaml " )
252252 self ._rtd_yaml_base = ""
253253
254254 return self ._rtd_yaml_base
@@ -645,7 +645,7 @@ def validate_contents(self, repo):
645645 files = [x ["name" ] for x in content_list ]
646646
647647 # ignore new/in-work repos, which should have less than 8 files:
648- # ___.py or folder, CoC, .github/, .readthedocs.yml , docs/,
648+ # ___.py or folder, CoC, .github/, .readthedocs.yaml , docs/,
649649 # examples/, README, LICENSE
650650 if len (files ) < 8 :
651651 BUNDLE_IGNORE_LIST .append (repo ["name" ])
@@ -701,11 +701,11 @@ def validate_contents(self, repo):
701701 else :
702702 errors .append (ERROR_UNABLE_PULL_REPO_CONTENTS )
703703
704- if "readthedocs.yml " in files or ".readthedocs.yml " in files :
704+ if "readthedocs.yaml " in files or ".readthedocs.yaml " in files :
705705 if self .rtd_yml_base != "" :
706- filename = "readthedocs.yml "
707- if ".readthedocs.yml " in files :
708- filename = ".readthedocs.yml "
706+ filename = "readthedocs.yaml "
707+ if ".readthedocs.yaml " in files :
708+ filename = ".readthedocs.yaml "
709709 file_info = content_list [files .index (filename )]
710710 rtd_contents = requests .get (file_info ["download_url" ])
711711 if rtd_contents .ok :
@@ -715,7 +715,7 @@ def validate_contents(self, repo):
715715 errors .append (ERROR_MISMATCHED_READTHEDOCS )
716716 except yaml .YAMLError :
717717 self .output_file_data .append (
718- "Error parsing {} .readthedocs.yml ." .format (repo ["name" ])
718+ "Error parsing {} .readthedocs.yaml ." .format (repo ["name" ])
719719 )
720720 errors .append (ERROR_OUTPUT_HANDLER )
721721 else :
0 commit comments