Skip to content

Commit c525ef7

Browse files
committed
Upgrade dependencies, drop support for <py3.9, improve ci, misc improvements
1 parent 973d8a7 commit c525ef7

File tree

7 files changed

+83
-257
lines changed

7 files changed

+83
-257
lines changed

.github/workflows/black.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/checks.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Run Checks
2+
3+
on: [ push, pull_request, workflow_dispatch ]
4+
5+
jobs:
6+
checks:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
21+
- name: Install Poetry
22+
run: curl -sSL https://install.python-poetry.org | python3 -
23+
24+
- name: Configure Poetry
25+
run: poetry config virtualenvs.in-project true
26+
27+
- name: Load cached venv
28+
id: cached-poetry-dependencies
29+
uses: actions/cache@v2
30+
with:
31+
path: .venv
32+
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
33+
34+
- name: Install dependencies
35+
run: poetry install
36+
37+
- name: Run Ruff linter
38+
run: poetry run ruff check . --no-fix
39+
40+
- name: Run Ruff formatter
41+
run: poetry run ruff format . --check

.github/workflows/flake8.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,5 @@ dmypy.json
131131
.pyre/
132132

133133
.idea/
134+
135+
.ruff_cache/

aiomcrcon/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
1+
import importlib
12
from .client import MessageType, Client
23
from .errors import RCONConnectionError, ClientNotConnectedError, IncorrectPasswordError
4+
5+
__version__ = importlib.metadata.version("aio-mc-rcon")
6+
7+
__all__ = (
8+
"MessageType",
9+
"Client",
10+
"RCONConnectionError",
11+
"ClientNotConnectedError",
12+
"IncorrectPasswordError",
13+
"__version__",
14+
)

poetry.lock

Lines changed: 23 additions & 186 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
11
[tool.poetry]
22
name = "aio-mc-rcon"
3-
version = "3.2.2"
3+
version = "3.3.0"
44
description = "An async library for utilizing remote console on Minecraft Java Edition servers"
55
authors = ["Milo Weinberg <iapetus011@gmail.com>"]
66
license = "MIT"
77
readme = "README.md"
88
repository = "https://github.com/Iapetus-11/aio-mc-rcon"
9-
keywords = ["rcon", "mcrcon", "async"]
9+
keywords = ["rcon", "mcrcon", "async", "remote console", "minecraft"]
1010
packages = [{ include = "aiomcrcon" }]
1111

1212
[tool.poetry.dependencies]
1313
python = "^3.8,<4.0"
1414

15-
[tool.poetry.dev-dependencies]
16-
black = "^21.11b0"
17-
flake8 = "^4.0.1"
18-
1915
[tool.poetry.group.dev.dependencies]
20-
black = "^23.12.1"
16+
ruff = "^0.9.2"
2117

2218
[build-system]
2319
requires = ["poetry-core>=1.0.0"]
2420
build-backend = "poetry.core.masonry.api"
2521

26-
[tool.black]
22+
[tool.ruff]
2723
line-length = 100
28-
target-version = ['py37', 'py38']
29-
include = '\.pyi?$'
24+
target-version = "py39"

0 commit comments

Comments
 (0)