Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: uv sync --group dev

- name: Run pre-commit hooks
run: SKIP=ruff-lint pre-commit run --all-files
run: SKIP=ruff-lint prek run --all-files

# Run `ruff` using github formatting to enable automatic inline annotations.
- name: Run ruff
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Upload a build artifact
if: always() && steps.prepare-artifact.outcome == 'success'
continue-on-error: true
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v6
with:
name: pull-request-payload
path: pull_request_payload.json
17 changes: 9 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
.PHONY: all install lock lint precommit start format
.PHONY: all install just-lock lock outdated lint precommit start format

all: install precommit
all: install prek

install:
uv sync --frozen --all-groups

lock:
just-lock:
uv lock --upgrade
uv sync --frozen --all-groups

lock: just-lock install

outdated:
uv tree --outdated
uv tree --outdated --all-groups

lint:
uv run pre-commit run --all-files
uv run prek run --all-files

precommit:
uv run pre-commit install
prek:
uv run prek install

start:
uv run python -m arthur
Expand Down
1 change: 1 addition & 0 deletions arthur/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ async def main() -> None:
case_insensitive=True,
intents=intents,
max_messages=100,
activity=discord.Game(name="Always watching"),
)
async with arthur.instance as bot:
await bot.start(CONFIG.token.get_secret_value())
Expand Down
25 changes: 13 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ requires-python = "~=3.14.0"
dependencies = [
"pydis-core==11.8.0",
"audioop-lts==0.2.2",
"asyncssh==2.21.1",
"beautifulsoup4==4.14.2",
"humanize==4.14.0",
"asyncssh==2.22.0",
"beautifulsoup4==4.14.3",
"humanize==4.15.0",
"jishaku==2.6.3",
"kubernetes-asyncio==33.3.0",
"kubernetes-asyncio==34.3.3",
"loguru==0.7.3",
"pydantic==2.12.4",
"pydantic==2.12.5",
"pydantic-settings==2.12.0",
"python-freeipa==1.0.10",
"python-keycloak==5.8.1",
"sentry-sdk==2.45.0",
"python-keycloak==7.0.2",
"sentry-sdk==2.49.0",
"tabulate[widechars]==0.9.0",
"wand==0.6.13",
]
Expand All @@ -33,8 +33,8 @@ required-version = ">=0.9.7"

[dependency-groups]
dev = [
"pre-commit==4.4.0",
"ruff==0.14.6",
"prek>=0.2.29",
"ruff==0.14.13",
"taskipy==1.14.1",
]

Expand All @@ -47,16 +47,17 @@ voice = [
]

[tool.taskipy.tasks]
all = "task lock && task precommit"
all = "task lock && task prek"
lock = "task justlock && task install"
justlock = "uv lock --upgrade"
install = "uv sync --frozen --all-groups"
start = "python -m arthur"
lint = "pre-commit run --all-files"
lint = "prek run --all-files"
format = "ruff format arthur"
precommit = "pre-commit install"
prek = "prek install"

[tool.ruff]
target-version = "py314"
extend-exclude = [".cache"]
line-length = 100
unsafe-fixes = true
Expand Down
Loading
Loading