mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore: ruff
This commit is contained in:
parent
9063ea9173
commit
1ed1c1fb24
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user