Skip to content

Commit 144ff22

Browse files
committed
linting, hopefully fix workflow this time
1 parent 7054463 commit 144ff22

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
uses: JRubics/poetry-publish@v1.13
1717
with:
1818
pypi_token: ${{ secrets.PYPI_TOKEN }}
19-
python_version: "3.10.8"
19+
python_version: "3.10"
2020
allow_poetry_pre_release: "yes"
2121
ignore_dev_requirements: "yes"

pymcfunction/commands/simple.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,6 @@ def spectate(target: str | NoneType, spectator: str = "@s"):
132132
def spawnpoint(target: str, coord: str = "~ ~ ~", yaw: float = None):
133133
return f"spawnpoint {target} {coord}" + ((" " + yaw) if yaw else "")
134134

135-
def difficulty(_difficulty:Difficultiy):
136-
return "difficulty " + _difficulty.value
135+
136+
def difficulty(_difficulty: Difficultiy):
137+
return "difficulty " + _difficulty.value

pymcfunction/types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,9 @@ class BossbarStyle(Enum):
220220
NOTCHED20 = "notched_20"
221221
PROGRESS = "progress"
222222

223+
223224
class Difficultiy(Enum):
224225
PEACEFUL = "peaceful"
225226
EASY = "easy"
226227
NORMAL = "normal"
227-
HARD = "hard"
228+
HARD = "hard"

0 commit comments

Comments
 (0)