mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-21 10:12:31 +01:00
Some checks are pending
file length / file-length (push) Waiting to run
kuhy_credit drift / drift (push) Waiting to run
kuhy_credit tests / python (push) Waiting to run
kuhy_credit tests / web (push) Waiting to run
kuhy_credit tests / flutter (push) Waiting to run
kuhy_credit tests / godot (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
palette drift / palette (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run
A ListView child got the full row width; the painter scaled the dark field across the row and the glyph left the clip, so the logo was invisible in punchme's settings. Loosen constraints at the root and scale by the short side. Release 0.3.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
66 lines
1.8 KiB
TOML
66 lines
1.8 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=61"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "kuhy-credit"
|
|
version = "0.3.1"
|
|
description = "The shared 'Created by kuhy' logo credit: Tkinter widget and terminal line"
|
|
requires-python = ">=3.14"
|
|
dependencies = [] # pure stdlib: tkinter and webbrowser ship with Python
|
|
|
|
[project.scripts]
|
|
kuhy-credit = "kuhy_credit.terminal:main"
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["kuhy_credit*"]
|
|
exclude = ["kuhy_credit.tests*"]
|
|
|
|
[tool.ruff]
|
|
target-version = "py314"
|
|
line-length = 100
|
|
extend-exclude = ["web", "flutter", "godot"]
|
|
|
|
# The generated data file wraps itself; the formatter would explode it.
|
|
[tool.ruff.format]
|
|
exclude = ["kuhy_credit/_data.py"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["ALL"]
|
|
ignore = ["D203", "D213", "COM812", "ISC001", "S603", "S607", "CPY001"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"tests/*.py" = ["ANN", "ARG", "D", "TC", "PLC0415", "PLR2004", "S101", "SLF001", "E501"]
|
|
"kuhy_credit/_data.py" = ["E501"]
|
|
# E2E drivers: scripts that assert and print, not library code.
|
|
"e2e/*.py" = ["ANN", "D", "TC", "E501", "EM", "INP001", "S101", "S603", "T201", "TRY003", "PLR2004"]
|
|
# The generator and the terminal helper are CLIs: printing is their output.
|
|
"generator/generate.py" = ["T201"]
|
|
"kuhy_credit/terminal.py" = ["T201"]
|
|
|
|
[tool.ruff.lint.pydocstyle]
|
|
convention = "google"
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
pythonpath = ["."]
|
|
addopts = [
|
|
"--strict-markers",
|
|
"--strict-config",
|
|
"-ra",
|
|
"--cov=kuhy_credit",
|
|
"--cov=generator",
|
|
"--cov-branch",
|
|
"--cov-report=term-missing",
|
|
]
|
|
filterwarnings = ["error"]
|
|
|
|
[tool.coverage.run]
|
|
branch = true
|
|
omit = ["*/tests/*"]
|
|
|
|
[tool.coverage.report]
|
|
fail_under = 100
|
|
show_missing = true
|
|
exclude_lines = ["pragma: no cover", 'if __name__ == "__main__":', "if TYPE_CHECKING:"]
|