mirror of
https://github.com/trustedsec/hate_crack.git
synced 2026-07-28 14:47:22 -07:00
Merge latest main into ruff bump
# Conflicts: # pyproject.toml
This commit is contained in:
@@ -40,7 +40,11 @@ jobs:
|
||||
run: uv run ruff format --check hate_crack
|
||||
|
||||
- name: Ty
|
||||
run: uv run ty check hate_crack
|
||||
# ty 0.0.63 fails CI on warning-level diagnostics by default;
|
||||
# keep the pre-0.0.63 behaviour of failing only on errors so the
|
||||
# rules already downgraded to "warn" in [tool.ty.rules] stay
|
||||
# non-blocking.
|
||||
run: uv run ty check --exit-zero-on-warning hate_crack
|
||||
|
||||
- name: Pytest
|
||||
env:
|
||||
|
||||
@@ -22,7 +22,7 @@ always_run = true
|
||||
[[repos.hooks]]
|
||||
id = "ty"
|
||||
name = "ty"
|
||||
entry = "uv run ty check hate_crack"
|
||||
entry = "uv run ty check --exit-zero-on-warning hate_crack"
|
||||
language = "system"
|
||||
stages = ["pre-push"]
|
||||
pass_filenames = false
|
||||
|
||||
+8
-1
@@ -93,6 +93,13 @@ unresolved-import = "warn"
|
||||
# BeautifulSoup union types and module-level globals
|
||||
unresolved-attribute = "warn"
|
||||
invalid-argument-type = "warn"
|
||||
# ty 0.0.63 tightened these to error for the same legacy pattern
|
||||
# (module-level `hcatHashFile = None` etc. in main.py, later used as
|
||||
# strings). Downgrade to warn to match the rest.
|
||||
unsupported-operator = "warn"
|
||||
no-matching-overload = "warn"
|
||||
invalid-assignment = "warn"
|
||||
unresolved-global = "warn"
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = [
|
||||
@@ -101,7 +108,7 @@ testpaths = [
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"ty==0.0.17",
|
||||
"ty==0.0.63",
|
||||
"ruff==0.16.0",
|
||||
"pytest==9.0.3",
|
||||
"pytest-cov==7.1.0",
|
||||
|
||||
Reference in New Issue
Block a user