# pre-commit stop running hooks after the first failure.fail_fast:true# A list of repository mappingsrepos:-repo:https://github.com/pre-commit/pre-commit-hooks# Specify version or tag to use (as of 23.5.31)rev:v4.4.0hooks:# Remove spaces at end of lines except markdown-id:trailing-whitespaceargs:[--markdown-linebreak-ext=md]exclude:(site|site/tool_tips|site/db_tips|site/search|site/git_tips|site/python_tips|site/vscode_tips|site/assets|site/tool_tips/tool\|site/db_tips/mariadb|site/db_tips/mariadb/mariadb\|site/git_tips/git\|site/python_tips/pymysql|site/python_tips/dash_plotly|site/python_tips/pymysql/pymysql\|site/python_tips/dash_plotly/dash\-plotly\|site/vscode_tips/vscode\|site/assets/images|site/assets/javascripts|site/assets/stylesheets|site/assets/javascripts/lunr|site/assets/javascripts/workers|site/assets/javascripts/lunr/min)/.*# Make the last line of the file a newline code-id:end-of-file-fixer# Unify line break code to LFexclude:(site|site/tool_tips|site/db_tips|site/search|site/git_tips|site/python_tips|site/vscode_tips|site/assets|site/tool_tips/tool\|site/db_tips/mariadb|site/db_tips/mariadb/mariadb\|site/git_tips/git\|site/python_tips/pymysql|site/python_tips/dash_plotly|site/python_tips/pymysql/pymysql\|site/python_tips/dash_plotly/dash\-plotly\|site/vscode_tips/vscode\|site/assets/images|site/assets/javascripts|site/assets/stylesheets|site/assets/javascripts/lunr|site/assets/javascripts/workers|site/assets/javascripts/lunr/min)/.*-id:mixed-line-endingargs:[--fix=lf]# toml syntax check-id:check-toml# yaml syntax check-id:check-yaml# https://python-poetry.org/docs/pre-commit-hooks/#usage-repo:https://github.com/python-poetry/poetry# Cannot be executed with local designation (as of 23.5.31)rev:1.5.1hooks:-id:poetry-checkverbose:true-id:poetry-lockverbose:true-id:poetry-exportargs:[-f,requirements.txt,-o,requirements.txt]verbose:truefiles:^pyproject\.toml$-id:poetry-exportargs:[--dev,-f,requirements.txt,-o,requirements-dev.txt]verbose:truefiles:^pyproject\.toml$-repo:https://github.com/executablebooks/mdformatrev:0.7.16hooks:-id:mdformatadditional_dependencies:-mdformat-admon-mdformat-beautysh-mdformat-black-mdformat-config-mdformat-footnote-mdformat-frontmatter-mdformat-simple-breaks-mdformat-tables-mdformat-toc-mdformat-web# Repository local hooks-repo:localhooks:-id:isortname:isortstages:[commit]language:systementry:poetry run isort citypes:[python]-id:blackname:blackstages:[commit]language:systementry:poetry run black citypes:[python]exclude:resources_bin.py-id:flake8name:flake8stages:[commit]language:systementry:poetry run flake8 citypes:[python]-id:mypyname:mypystages:[commit]language:systementry:poetry run mypytypes:[python]#- id: mdformat# name: mdformat# stages: [commit]# language: system# entry: poetry run mdformat .# types: [markdown]# Original script-id:update-pyprojectname:mkdocs buildentry:poetry run python ci/run_mkdocs_cmd.pylanguage:systemverbose:truepass_filenames:falsestages:[commit]additional_dependencies:[]-id:update-pyprojectname:Update pyproject.toml versionentry:poetry run python ci/update_pyproject_version.pylanguage:systemverbose:truepass_filenames:falsestages:[commit]additional_dependencies:[]