💬 Commit message: Update 2026-01-24 19:22:34, 7 files, 1285 lines

📁 Files changed: 7
📝 Lines changed: 1285

  • build.py
  • check.py
  • civit.md
  • main.py
  • pyproject.toml
  • sft_get.py
  • uv.lock
This commit is contained in:
Adam Ladachowski
2026-01-24 19:22:34 +01:00
parent 749bd59e99
commit eeb55b2540
7 changed files with 1276 additions and 9 deletions
+71 -2
View File
@@ -1,7 +1,76 @@
[project]
name = "sft-get"
version = "0.1.0"
description = "Add your description here"
description = "Read safetensor metadata and fetch CivitAI model information"
readme = "README.md"
requires-python = ">=3.12"
dependencies = []
dependencies = [
"safetensors>=0.4.0",
"httpx>=0.27.0",
"rich>=13.0.0",
]
[project.scripts]
sft-get = "sft_get:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["sft_get.py"]
[dependency-groups]
dev = [
"nuitka>=2.0",
"ruff>=0.9.0",
"mypy>=1.14.0",
]
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"PTH", # flake8-use-pathlib
"PL", # pylint
"RUF", # ruff-specific
]
ignore = [
"PLR0913", # too many arguments
"PLR2004", # magic value comparison
]
[tool.ruff.lint.isort]
known-first-party = ["sft_get"]
[tool.mypy]
python_version = "3.12"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
follow_imports = "silent"
ignore_missing_imports = false
[[tool.mypy.overrides]]
module = ["safetensors.*"]
ignore_missing_imports = true