Skip to content

Commit 90f962b

Browse files
authored
Small tweaks (zeusops#29)
* Make pytest fail on XPASS * Autoupdate pre-commit * Use discord.option everywhere
1 parent 8dbc437 commit 90f962b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ repos:
3131
name: Hadolint (Dockerfile checker)
3232
# Actual Python Linters
3333
- repo: https://github.com/astral-sh/ruff-pre-commit
34-
rev: v0.7.0
34+
rev: v0.11.9
3535
hooks:
3636
- id: ruff-format
3737
- id: ruff
3838
args: ["--fix"]
3939
- repo: https://github.com/pre-commit/mirrors-mypy
40-
rev: v1.12.1
40+
rev: v1.15.0
4141
hooks:
4242
- id: mypy
4343
name: Mypy (Python type-checker)
4444
exclude: 'docs/source/.*\.py'
4545
# Uncomment below if mypy requires extra type stub packages
4646
# additional_dependencies: [types-PyYAML==6.0.12.2]
4747
- repo: https://github.com/igorshubovych/markdownlint-cli
48-
rev: v0.42.0
48+
rev: v0.44.0
4949
hooks:
5050
- id: markdownlint-fix

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ addopts = """-vv \
5555
--cov-report=html:test_results/coverage.html \
5656
--cov-report=term \
5757
--junit-xml=test_results/results.xml"""
58+
xfail_strict = true
5859

5960
[tool.coverage.run]
6061
omit = [

src/zeusops_bot/cogs/zeus_upload.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import typing
44

55
import discord
6-
from discord.commands import option
76
from discord.ext import commands
87
from pydantic import TypeAdapter, ValidationError
98

@@ -121,7 +120,7 @@ async def zeus_upload(
121120
await ctx.respond(f"Mission uploaded successfully under {path=}")
122121

123122
@commands.slash_command(name="zeus-set-mission")
124-
@option(
123+
@discord.option(
125124
"filename",
126125
description="Mission filename",
127126
autocomplete=_autocomplete_missions,

0 commit comments

Comments
 (0)