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

@ -99,7 +99,10 @@ requires-python=">=3.9, <3.11"
"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]
@ -144,27 +147,11 @@ version={attr="ldm.invoke.__version__"}
"invokeai.frontend.dist" = ["**"] "invokeai.frontend.dist" = ["**"]
[tool.black] [tool.black]
exclude='''
/(
.git
| .tox
| .venv
| _build
| build
| dist
| node_modules
)/
'''
include='.pyi?$'
line-length = 88 line-length = 88
source=["installer", "invokeai/backend", "ldm/invoke"] target-version = ['py310']
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