Skip to content
Open
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/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Log in to the Container registry
uses: docker/login-action@v3
Expand All @@ -34,7 +34,7 @@ jobs:
latest=auto

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ jobs:

runs-on: [self-hosted, deployment-runner]
container:
image: hashicorp/levant:0.3
image: hashicorp/levant:0.4
options: --user root
if: github.ref != 'refs/heads/main' && github.event_name == 'push'
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- run: |
levant deploy \
-force-count=true \
-var git_sha="${GITHUB_SHA}" \
-var environment_slug="${GITHUB_REF_NAME}" \
-address "http://nomad.service.consul:4646" \
Expand All @@ -45,12 +46,12 @@ jobs:
- build
runs-on: [self-hosted, deployment-runner]
container:
image: hashicorp/levant:0.3
image: hashicorp/levant:0.4
options: --user root
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- run: |
levant deploy \
-var git_sha="${GITHUB_SHA}" \
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ jobs:
runs-on: ubuntu-latest
name: "Check code style"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@v7
with:
# this should be the same as in pyproject.toml
version: "0.6.9"
version: "0.9.17"

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"

Expand All @@ -29,16 +29,16 @@ jobs:
runs-on: ubuntu-latest
name: "Type checking"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@v7
with:
# this should be the same as in pyproject.toml
version: "0.6.9"
version: "0.9.17"

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"

Expand Down
32 changes: 16 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ name = "blockbot"
version = "0.1.0"
description = "Discord bot maintained by the Redbrick webgroup"
readme = "README.md"
requires-python = ">=3.13"
requires-python = "~=3.13"
license = { text = "MIT" }
authors = [{ name = "JedHazaymeh", email = "magma@redbrick.dcu.ie" }, { name = "nova", email = "nova@redbrick.dcu.ie"}]
maintainers = [{ name = "nova", email = "nova@redbrick.dcu.ie"}, { name = "wizzdom", email = "wizzdom@redbrick.dcu.ie"}]
dependencies = [
"aiohttp>=3.11.14",
"asyncpg>=0.30.0",
"dnspython>=2.7.0",
"fortune-python>=1.1.1",
"hikari>=2.2.0",
"hikari-arc>=2.0.0",
"aiohttp>=3.13.2",
"asyncpg>=0.31.0",
"dnspython>=2.8.0",
"fortune-python>=1.1.2",
"hikari>=2.5.0",
"hikari-arc>=2.1.1",
"hikari-miru>=4.2.0",
"pyfiglet>=1.0.2",
"python-dotenv>=1.0.1",
"sqlalchemy>=2.0.39",
"pyfiglet>=1.0.4",
"python-dotenv>=1.2.1",
"sqlalchemy>=2.0.45",
"rcon>=2.4.9",
]

Expand All @@ -27,13 +27,13 @@ Repository = "https://github.com/redbrick/blockbot"

[dependency-groups]
dev = [
"pre-commit>=4.2.0",
"pyright>=1.1.397",
"ruff>=0.11.2",
"uv>=0.6.9", # this should be the same as in the github workflows
"pre-commit>=4.5.0",
"pyright>=1.1.407",
"ruff>=0.14.9",
"uv>=0.9.17", # this should be the same as in the github workflows
]
nox = [
"nox>=2025.2.9",
"nox>=2025.11.12",
]

[tool.ruff]
Expand Down Expand Up @@ -80,7 +80,7 @@ ignore = [
convention = "numpy"

[tool.uv]
required-version = "~=0.6"
required-version = "~=0.9"

[tool.pyright]
pythonVersion = "3.13"
Expand Down
Loading