
import os


# All paths are set with the intent you should run this script from the root of the repo with the command
# python utils/check_doctest_list.py
_UpperCAmelCase					: Tuple      =       "."


if __name__ == "__main__":
					_UpperCAmelCase					: Union[str, Any]      =       os.path.join(REPO_PATH, "utils/documentation_tests.txt")
					_UpperCAmelCase					: Optional[Any]      =       []
					_UpperCAmelCase					: Union[str, Any]      =       []
					with open(doctest_file_path) as fp:
										for line in fp:
															_UpperCAmelCase					: Any      =       line.strip()
															_UpperCAmelCase					: Optional[int]      =       os.path.join(REPO_PATH, line)
															if not (os.path.isfile(path) or os.path.isdir(path)):
																				non_existent_paths.append(line)
															all_paths.append(path)
					if len(non_existent_paths) > 0:
										_UpperCAmelCase					: Tuple      =       "\n".join(non_existent_paths)
										raise ValueError(F'''`utils/documentation_tests.txt` contains non-existent paths:\n{non_existent_paths}''')
					if all_paths != sorted(all_paths):
										raise ValueError("Files in `utils/documentation_tests.txt` are not in alphabetical order.")


import requests


def       A       (					lowercase    ,       lowercase )   ->  None:
		'''simple docstring'''

		UpperCamelCase		=     {'Content-Type': 'application/json'}
		UpperCamelCase		=     requests.post(lowercase    ,       json={'text': message_body}    ,       headers=lowercase )
		if response.status_code != 200:
				UpperCamelCase		=     (
				    'Request to slack returned an error '
				    f'''{response.status_code}, the response is:\n{response.text}'''
				)
				raise ValueError(lowercase )


if __name__ == "__main__":
					# Set the slack url to the one provided by Slack when you create the webhook at
					# https://my.slack.com/services/new/incoming-webhook/
					send_slack_message("<YOUR MESSAGE BODY>", "<SLACK CHANNEL URL>")
