diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 61208b7..672695b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,6 +26,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.15.0 hooks: - - id: ruff + - id: ruff-check args: [--fix, --exit-non-zero-on-fix] - id: ruff-format diff --git a/pyproject.toml b/pyproject.toml index f1be122..e38dd36 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,26 +1,26 @@ [project] name = "adetailer" description = "An object detection and auto-mask extension for stable diffusion webui." -authors = [{ name = "dowon", email = "ks2515@naver.com" }] -requires-python = ">=3.9" readme = "README.md" +requires-python = ">=3.9" license = { text = "AGPL-3.0" } -dependencies = [ - "ultralytics>=8.2", - "mediapipe>=0.10.13", - "pydantic<3", - "rich>=13", - "huggingface_hub", -] +authors = [{ name = "dowon", email = "ks2515@naver.com" }] keywords = [ - "stable-diffusion", - "stable-diffusion-webui", - "adetailer", - "ultralytics", + "adetailer", + "stable-diffusion", + "stable-diffusion-webui", + "ultralytics", ] classifiers = [ - "License :: OSI Approved :: GNU Affero General Public License v3", - "Topic :: Scientific/Engineering :: Image Recognition", + "License :: OSI Approved :: GNU Affero General Public License v3", + "Topic :: Scientific/Engineering :: Image Recognition", +] +dependencies = [ + "huggingface_hub", + "mediapipe>=0.10.13", + "pydantic<3", + "rich>=13", + "ultralytics>=8.2", ] dynamic = ["version"] @@ -48,30 +48,31 @@ extend-exclude = ["modules"] [tool.ruff.lint] select = [ - "A", - "B", - "C4", - "C90", - "E", - "EM", - "F", - "FA", - "I001", - "ISC", - "N", - "PD", - "PERF", - "PL", - "PIE", - "PT", - "PTH", - "RET", - "RUF", - "SIM", - "T20", - "TRY", - "UP", - "W", + "A", + "B", + "C4", + "C90", + "E", + "EM", + "F", + "FA", + "I001", + "ISC", + "N", + "PD", + "PERF", + "PL", + "PLC", + "PIE", + "PT", + "PTH", + "RET", + "RUF", + "SIM", + "T20", + "TRY", + "UP", + "W", ] ignore = ["B905", "E501", "PLR2004", "PLW0603"] unfixable = ["F401"]