mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat: add Makefile for project scripts
This is a simple solve for running scripts associated with the project. See the Makefile for the available scripts and brief comments about them.
This commit is contained in:
parent
cb81558302
commit
50ab677ea4
20
Makefile
Normal file
20
Makefile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# simple Makefile with scripts that are otherwise hard to remember
|
||||||
|
# to use, run from the repo root `make <command>`
|
||||||
|
|
||||||
|
# Runs ruff, fixing any safely-fixable errors and formatting
|
||||||
|
ruff:
|
||||||
|
ruff check . --fix
|
||||||
|
ruff format .
|
||||||
|
|
||||||
|
# Runs ruff, fixing all errors it can fix and formatting
|
||||||
|
ruff-unsafe:
|
||||||
|
ruff check . --fix --unsafe-fixes
|
||||||
|
ruff format .
|
||||||
|
|
||||||
|
# Runs mypy, using the config in pyproject.toml
|
||||||
|
mypy:
|
||||||
|
mypy scripts/invokeai-web.py
|
||||||
|
|
||||||
|
# Runs mypy, ignoring the config in pyproject.toml but still ignoring missing (untyped) imports
|
||||||
|
mypy-all:
|
||||||
|
mypy scripts/invokeai-web.py --config-file= --ignore-missing-imports
|
Loading…
Reference in New Issue
Block a user