chore: ruff

This commit is contained in:
psychedelicious 2024-03-15 22:00:37 +11:00
parent 9063ea9173
commit 1ed1c1fb24

View File

@ -35,6 +35,7 @@ def generate_config_docstrings() -> str:
return docstring return docstring
# The pydantic app config can be documented automatically using mkdocs, but this requires that the docstring # The pydantic app config can be documented automatically using mkdocs, but this requires that the docstring
# for the class is kept up to date. We use a pydantic model for the app config. Each config setting is a field # for the class is kept up to date. We use a pydantic model for the app config. Each config setting is a field
# with a `description` parameter. It is tedious to update both the description _and_ the docstring for the class. # with a `description` parameter. It is tedious to update both the description _and_ the docstring for the class.
@ -49,7 +50,6 @@ def main():
# Change working directory to the repo root # Change working directory to the repo root
os.chdir(os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))) os.chdir(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
docstring = generate_config_docstrings() docstring = generate_config_docstrings()
# Replace the docstring in the file # Replace the docstring in the file