mirror of
https://github.com/kuhyx/steam-backlog-enforcer.git
synced 2026-11-28 19:09:15 +01:00
deps: earned_time 0.6.1 (tutor cutover), ruff 0.17.0 (CPY001 ignored: no copyright policy)
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / web-coverage (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / web-coverage (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7ec94f6e4a
commit
3c49c9a133
@ -68,7 +68,7 @@ repos:
|
|||||||
# RUFF - Linter + formatter
|
# RUFF - Linter + formatter
|
||||||
# ===========================================================================
|
# ===========================================================================
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.15.2
|
rev: v0.17.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
exclude: ^scripts/file_length/
|
exclude: ^scripts/file_length/
|
||||||
@ -110,7 +110,7 @@ repos:
|
|||||||
- --disable-error-code=list-item
|
- --disable-error-code=list-item
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- types-requests
|
- types-requests
|
||||||
- earned-time @ git+https://github.com/kuhyx/utils@earned-time-v0.6.0#subdirectory=earned_time
|
- earned-time @ git+https://github.com/kuhyx/utils@earned-time-v0.6.1#subdirectory=earned_time
|
||||||
|
|
||||||
# ===========================================================================
|
# ===========================================================================
|
||||||
# PYLINT
|
# PYLINT
|
||||||
@ -130,12 +130,12 @@ repos:
|
|||||||
# (steam_backlog_enforcer._mcp_server).
|
# (steam_backlog_enforcer._mcp_server).
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- aiohttp==3.14.4
|
- aiohttp==3.14.4
|
||||||
- earned-time @ git+https://github.com/kuhyx/utils@earned-time-v0.6.0#subdirectory=earned_time
|
- earned-time @ git+https://github.com/kuhyx/utils@earned-time-v0.6.1#subdirectory=earned_time
|
||||||
- howlongtobeatpy==1.0.23
|
- howlongtobeatpy==1.0.24
|
||||||
- mcp==2.3.0
|
- mcp==2.3.0
|
||||||
- pytest
|
- pytest
|
||||||
- requests
|
- requests
|
||||||
- websockets==17.1
|
- websockets==17.2
|
||||||
|
|
||||||
# ===========================================================================
|
# ===========================================================================
|
||||||
# BANDIT - Security linter
|
# BANDIT - Security linter
|
||||||
|
|||||||
@ -16,7 +16,7 @@ dependencies = [
|
|||||||
"websockets==17.2",
|
"websockets==17.2",
|
||||||
# The earner registry (gaming budget terms); stdlib-only, so the root
|
# The earner registry (gaming budget terms); stdlib-only, so the root
|
||||||
# daemon imports it from the desktop user's site-packages.
|
# daemon imports it from the desktop user's site-packages.
|
||||||
"earned-time @ git+https://github.com/kuhyx/utils@earned-time-v0.6.0#subdirectory=earned_time",
|
"earned-time @ git+https://github.com/kuhyx/utils@earned-time-v0.6.1#subdirectory=earned_time",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Optional extras. The `mcp` group is ONLY needed by the MCP server
|
# Optional extras. The `mcp` group is ONLY needed by the MCP server
|
||||||
@ -54,6 +54,7 @@ ignore = [
|
|||||||
"COM812", # formatter handles this
|
"COM812", # formatter handles this
|
||||||
"ISC001", # formatter may create these
|
"ISC001", # formatter may create these
|
||||||
"S603", # prone to false positives
|
"S603", # prone to false positives
|
||||||
|
"CPY001", # personal repo, no copyright policy (ruff 0.17 made CPY001 stable under select=ALL)
|
||||||
# Conflicts with SIM117. A `pytest.raises` that needs patches in scope has
|
# Conflicts with SIM117. A `pytest.raises` that needs patches in scope has
|
||||||
# no legal form: combine them into one `with` and PT012 objects to the
|
# no legal form: combine them into one `with` and PT012 objects to the
|
||||||
# extra context managers; nest `raises` inside and SIM117 objects to the
|
# extra context managers; nest `raises` inside and SIM117 objects to the
|
||||||
|
|||||||
@ -5,7 +5,7 @@ aiohttp==3.14.4
|
|||||||
bandit==1.9.4
|
bandit==1.9.4
|
||||||
codespell==2.4.3
|
codespell==2.4.3
|
||||||
coverage==7.16.2
|
coverage==7.16.2
|
||||||
earned-time @ git+https://github.com/kuhyx/utils@earned-time-v0.6.0#subdirectory=earned_time
|
earned-time @ git+https://github.com/kuhyx/utils@earned-time-v0.6.1#subdirectory=earned_time
|
||||||
howlongtobeatpy==1.0.24
|
howlongtobeatpy==1.0.24
|
||||||
mcp==2.3.0
|
mcp==2.3.0
|
||||||
mypy==2.4.0
|
mypy==2.4.0
|
||||||
@ -18,6 +18,6 @@ pytest-sugar==1.1.1
|
|||||||
pytest-timeout==2.4.0
|
pytest-timeout==2.4.0
|
||||||
pytest-xdist==3.8.0
|
pytest-xdist==3.8.0
|
||||||
requests==2.34.2
|
requests==2.34.2
|
||||||
ruff==0.16.10
|
ruff==0.17.0
|
||||||
types-requests==2.33.0.20261006
|
types-requests==2.33.0.20261006
|
||||||
websockets==17.2
|
websockets==17.2
|
||||||
|
|||||||
@ -41,13 +41,19 @@ _HOUR = 3600.0
|
|||||||
|
|
||||||
|
|
||||||
def _later_penalised(day: date) -> list[earned_time.Earner]:
|
def _later_penalised(day: date) -> list[earned_time.Earner]:
|
||||||
"""Earners in force on ``day`` whose penalty starts after reading's cut."""
|
"""Earners in force on ``day`` whose penalty starts after reading's cut.
|
||||||
cut = earned_time.READING.penalty_from
|
|
||||||
|
The start is ``penalty_start(e, None)``: no ledger is wired here, so an
|
||||||
|
earner nobody has confirmed (``confirmed_on`` unset) has not started its
|
||||||
|
penalty yet -- the same fail-closed rule the budget itself applies.
|
||||||
|
"""
|
||||||
|
cut = earned_time.penalty_start(earned_time.READING, None)
|
||||||
assert cut is not None
|
assert cut is not None
|
||||||
|
starts = {e.name: earned_time.penalty_start(e, None) for e in registry_for(day)}
|
||||||
return [
|
return [
|
||||||
e
|
e
|
||||||
for e in registry_for(day)
|
for e in registry_for(day)
|
||||||
if e.penalty_from is not None and cut < e.penalty_from <= day
|
if (start := starts[e.name]) is not None and cut < start <= day
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user