Modernized development tooling and added CI pipeline.
CI / Formatting (push) Successful in 10s
CI / Linting (push) Successful in 10s
CI / Tests (push) Successful in 14s
CI / Type Checking (push) Successful in 20s

This commit is contained in:
2026-02-18 13:47:06 -05:00
parent b065c3dd05
commit 3a93a56f88
13 changed files with 380 additions and 81 deletions
+57 -8
View File
@@ -19,18 +19,67 @@ crabstero = "crabstero.__main__:main"
Repository = "https://git.logal.dev/LogalDeveloper/Crabstero"
[dependency-groups]
dev = ["mypy>=1.18.1", "black>=26.1.0"]
dev = [
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"mypy>=1.18.1",
"ruff>=0.15.1",
]
[tool.uv]
extra-index-url = ["https://git.logal.dev/api/packages/LogalDeveloper/pypi/simple/"]
publish-url = "https://git.logal.dev/api/packages/LogalDeveloper/pypi"
[build-system]
requires = ["setuptools>=61.0", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"
requires = ["hatchling>=1.28.0", "hatch-vcs>=0.5.0"]
build-backend = "hatchling.build"
[tool.setuptools.packages.find]
include = ["crabstero*"]
[tool.hatch.version]
source = "vcs"
[tool.setuptools_scm]
version_file = "crabstero/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["crabstero"]
[tool.hatch.build.hooks.vcs]
version-file = "crabstero/_version.py"
[tool.mypy]
python_version = "3.14"
strict = true
exclude = ["crabstero/_version\\.py"]
warn_unreachable = true
explicit_package_bases = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.ruff]
target-version = "py314"
extend-exclude = ["crabstero/_version.py"]
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line length enforced by the formatter; residual violations are in strings/docstrings/comments
]
[tool.coverage.run]
source = ["crabstero"]
omit = [
"crabstero/_version.py",
]
[tool.coverage.report]
show_missing = true
skip_empty = true