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
|
run: uv run ruff format --check hate_crack
|
||||||
|
|
||||||
- name: Ty
|
- 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
|
- name: Pytest
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ always_run = true
|
|||||||
[[repos.hooks]]
|
[[repos.hooks]]
|
||||||
id = "ty"
|
id = "ty"
|
||||||
name = "ty"
|
name = "ty"
|
||||||
entry = "uv run ty check hate_crack"
|
entry = "uv run ty check --exit-zero-on-warning hate_crack"
|
||||||
language = "system"
|
language = "system"
|
||||||
stages = ["pre-push"]
|
stages = ["pre-push"]
|
||||||
pass_filenames = false
|
pass_filenames = false
|
||||||
|
|||||||
+8
-1
@@ -93,6 +93,13 @@ unresolved-import = "warn"
|
|||||||
# BeautifulSoup union types and module-level globals
|
# BeautifulSoup union types and module-level globals
|
||||||
unresolved-attribute = "warn"
|
unresolved-attribute = "warn"
|
||||||
invalid-argument-type = "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]
|
[tool.pytest.ini_options]
|
||||||
testpaths = [
|
testpaths = [
|
||||||
@@ -101,7 +108,7 @@ testpaths = [
|
|||||||
|
|
||||||
[dependency-groups]
|
[dependency-groups]
|
||||||
dev = [
|
dev = [
|
||||||
"ty==0.0.17",
|
"ty==0.0.63",
|
||||||
"ruff==0.16.0",
|
"ruff==0.16.0",
|
||||||
"pytest==9.0.3",
|
"pytest==9.0.3",
|
||||||
"pytest-cov==7.1.0",
|
"pytest-cov==7.1.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user