update pyproject.toml and vscode settings

This commit is contained in:
mauwii 2023-02-18 03:01:55 +01:00
parent b4fd02b910
commit 0443befd2f
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB
2 changed files with 50 additions and 63 deletions

View File

@ -49,7 +49,7 @@
"evenBetterToml.formatter.inlineTableExpand": true, "evenBetterToml.formatter.inlineTableExpand": true,
"evenBetterToml.formatter.reorderArrays": true, "evenBetterToml.formatter.reorderArrays": true,
"evenBetterToml.formatter.reorderKeys": true, "evenBetterToml.formatter.reorderKeys": true,
"evenBetterToml.formatter.compactEntries": true, "evenBetterToml.formatter.compactEntries": false,
"evenBetterToml.schema.enabled": true, "evenBetterToml.schema.enabled": true,
"isort.check": true, "isort.check": true,
"isort.args": ["--profile=black", "--filter-files", "--color"], "isort.args": ["--profile=black", "--filter-files", "--color"],

View File

@ -1,10 +1,10 @@
[build-system] [build-system]
build-backend="setuptools.build_meta" build-backend = "setuptools.build_meta"
requires=["setuptools ~= 67.1", "wheel"] requires = ["setuptools ~= 67.1", "wheel"]
[project] [project]
authors=[{name="The InvokeAI Project", email="lincoln.stein@gmail.com"}] authors = [{name = "The InvokeAI Project", email = "lincoln.stein@gmail.com"}]
classifiers=[ classifiers = [
"Development Status :: 4 - Beta", "Development Status :: 4 - Beta",
"Environment :: GPU :: NVIDIA CUDA", "Environment :: GPU :: NVIDIA CUDA",
"Environment :: GPU", "Environment :: GPU",
@ -27,7 +27,7 @@ classifiers=[
"Topic :: Scientific/Engineering :: Artificial Intelligence", "Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Processing", "Topic :: Scientific/Engineering :: Image Processing",
] ]
dependencies=[ dependencies = [
"accelerate", "accelerate",
"albumentations", "albumentations",
"click", "click",
@ -75,16 +75,16 @@ dependencies=[
"transformers~=4.25", "transformers~=4.25",
"windows-curses; sys_platform=='win32'", "windows-curses; sys_platform=='win32'",
] ]
description="An implementation of Stable Diffusion which provides various new features and options to aid the image generation process" description = "An implementation of Stable Diffusion which provides various new features and options to aid the image generation process"
dynamic=["version"] dynamic = ["version"]
keywords=["AI", "stable-diffusion"] keywords = ["AI", "stable-diffusion"]
license={text="MIT"} license = {text = "MIT"}
name="InvokeAI" name = "InvokeAI"
readme={content-type="text/markdown", file="README.md"} readme = {content-type = "text/markdown", file = "README.md"}
requires-python=">=3.9, <3.11" requires-python = ">=3.9, <3.11"
[project.optional-dependencies] [project.optional-dependencies]
"dev"=[ "dev" = [
"black[jupyter]", "black[jupyter]",
"flake8", "flake8",
"flake8-black", "flake8-black",
@ -92,90 +92,77 @@ requires-python=">=3.9, <3.11"
"isort", "isort",
"pre-commit", "pre-commit",
] ]
"dist"=["pip-tools", "pipdeptree", "twine"] "dist" = ["pip-tools", "pipdeptree", "twine"]
"docs"=[ "docs" = [
"mkdocs-git-revision-date-localized-plugin", "mkdocs-git-revision-date-localized-plugin",
"mkdocs-material<9.0", "mkdocs-material<9.0",
"mkdocs-redirects==1.2.0", "mkdocs-redirects==1.2.0",
] ]
"test"=["pytest-cov", "pytest>6.0.0"] "test" = ["pytest-cov", "pytest>6.0.0"]
"xformers"=["triton; sys_platform=='linux'", "xformers~=0.0.16; sys_platform!='darwin'"] "xformers" = [
"triton; sys_platform=='linux'",
"xformers~=0.0.16; sys_platform!='darwin'",
]
[project.scripts] [project.scripts]
# legacy entrypoints; provided for backwards compatibility # legacy entrypoints; provided for backwards compatibility
"configure_invokeai.py"="ldm.invoke.config.invokeai_configure:main" "configure_invokeai.py" = "ldm.invoke.config.invokeai_configure:main"
"invoke.py"="ldm.invoke.CLI:main" "invoke.py" = "ldm.invoke.CLI:main"
"merge_embeddings.py"="ldm.invoke.merge_diffusers:main" "merge_embeddings.py" = "ldm.invoke.merge_diffusers:main"
"textual_inversion.py"="ldm.invoke.training.textual_inversion:main" "textual_inversion.py" = "ldm.invoke.training.textual_inversion:main"
# modern entrypoints # modern entrypoints
"invokeai"="ldm.invoke.CLI:main" "invokeai" = "ldm.invoke.CLI:main"
"invokeai-configure"="ldm.invoke.config.invokeai_configure:main" "invokeai-configure" = "ldm.invoke.config.invokeai_configure:main"
"invokeai-merge"="ldm.invoke.merge_diffusers:main" "invokeai-merge" = "ldm.invoke.merge_diffusers:main"
"invokeai-ti"="ldm.invoke.training.textual_inversion:main" "invokeai-ti" = "ldm.invoke.training.textual_inversion:main"
[project.urls] [project.urls]
"Bug Reports"="https://github.com/invoke-ai/InvokeAI/issues" "Bug Reports" = "https://github.com/invoke-ai/InvokeAI/issues"
"Discord"="https://discord.gg/ZmtBAhwWhy" "Discord" = "https://discord.gg/ZmtBAhwWhy"
"Documentation"="https://invoke-ai.github.io/InvokeAI/" "Documentation" = "https://invoke-ai.github.io/InvokeAI/"
"Homepage"="https://invoke-ai.github.io/InvokeAI/" "Homepage" = "https://invoke-ai.github.io/InvokeAI/"
"Source"="https://github.com/invoke-ai/InvokeAI/" "Source" = "https://github.com/invoke-ai/InvokeAI/"
[tool.setuptools] [tool.setuptools]
license-files=["LICENSE"] license-files = ["LICENSE"]
[tool.setuptools.dynamic] [tool.setuptools.dynamic]
version={attr="ldm.invoke.__version__"} version = {attr = "ldm.invoke.__version__"}
[tool.setuptools.packages.find] [tool.setuptools.packages.find]
"include"=[ "include" = [
"invokeai.assets.web*", "invokeai.assets.web*",
"invokeai.backend*", "invokeai.backend*",
"invokeai.configs*", "invokeai.configs*",
"invokeai.frontend.dist*", "invokeai.frontend.dist*",
"ldm*", "ldm*",
] ]
"where"=["."] "where" = ["."]
[tool.setuptools.package-data] [tool.setuptools.package-data]
"invokeai.assets.web"=["**.png"] "invokeai.assets.web" = ["**.png"]
"invokeai.configs"=["**.example", "**.txt", "**.yaml"] "invokeai.configs" = ["**.example", "**.txt", "**.yaml"]
"invokeai.frontend.dist"=["**"] "invokeai.frontend.dist" = ["**"]
[tool.black] [tool.black]
exclude=''' line-length = 88
/( target-version = ['py310']
.git
| .tox
| .venv
| _build
| build
| dist
| node_modules
)/
'''
include='.pyi?$'
line-length=88
source=["installer", "invokeai/backend", "ldm/invoke"]
target-version=['py39']
[tool.isort] [tool.isort]
profile="black" profile = "black"
py_version=39
skip_gitignore=true
skip_glob=["scripts/orig_scripts/*"]
[tool.coverage.run] [tool.coverage.run]
branch=true branch = true
parallel=true parallel = true
[tool.coverage.report] [tool.coverage.report]
skip_covered=true skip_covered = true
skip_empty=true skip_empty = true
[tool.coverage.paths] [tool.coverage.paths]
source=["invokeai/backend", "ldm/invoke"] source = ["invokeai/backend", "ldm/invoke"]
[tool.pytest.ini_options] [tool.pytest.ini_options]
addopts=["--cov=invokeai/backend", "--cov=ldm/invoke"] addopts = ["--cov=invokeai/backend", "--cov=ldm/invoke"]