ci: add pre-commit and tests workflows
All checks were successful
checks / pre-commit (push) Successful in 1m39s
checks / tests-10 (push) Successful in 1m17s
checks / tests-11 (push) Successful in 1m10s
checks / tests-12 (push) Successful in 1m13s

This commit is contained in:
cătălin 2024-08-04 15:23:55 +02:00
commit bdb5c984fa
No known key found for this signature in database
13 changed files with 339 additions and 297 deletions

View file

@ -5,15 +5,15 @@ authors = [
requires-python = ">=3.10"
dependencies = [
"typer>=0.12",
"rich>=13.3.3",
"rich>=13.3",
"pydantic>=2.7",
"pyyaml>=6.0",
"pyrage>=1.1",
"pendulum>=3.0",
"httpx>=0.27",
"platformdirs>=4.2",
"pydantic-settings>=2.0",
"hishel>=0.0.26",
"hishel>=0.0",
"whenever>=0.6.6",
]
name = "halig"
dynamic = ["version"]
@ -90,7 +90,7 @@ reportMissingTypeStubs = false
reportAttributeAccessIssue = false
[tool.ruff.lint]
extend-select = ["W", "C90", "I", "N", "UP", "S", "BLE", "B", "A", "COM", "C4", "DTZ", "T10", "EM", "ISC", "T20", "PT", "RSE", "RET", "SIM", "PTH", "ERA", "PGH", "PL", "TRY", "RUF"]
extend-select = ["W", "C90", "I", "N", "UP", "S", "BLE", "B", "A", "COM", "C4", "DTZ", "T10", "EM", "ISC", "T20", "PT", "RSE", "RET", "SIM", "PTH", "ERA", "PGH", "PL", "TRY", "RUF", "FURB", "PERF"]
extend-ignore = ["S101", "ISC002", "COM812", "ISC001"]
[tool.mypy]
@ -107,3 +107,10 @@ module = [
"httpx_cache"
]
ignore_missing_imports = true
[tool.coverage.run]
omit = [
"halig/__version__.py",
"halig/literals.py",
"halig/main.py"
]