-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize CI + Upgrade Dependencies + Drop <Py3.9 Support + Misc Impr…
…ovements (#9)
- Loading branch information
1 parent
973d8a7
commit 29d1ee7
Showing
7 changed files
with
83 additions
and
257 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Run Checks | ||
|
||
on: [ push, pull_request, workflow_dispatch ] | ||
|
||
jobs: | ||
checks: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
run: curl -sSL https://install.python-poetry.org | python3 - | ||
|
||
- name: Configure Poetry | ||
run: poetry config virtualenvs.in-project true | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Run Ruff linter | ||
run: poetry run ruff check . --no-fix | ||
|
||
- name: Run Ruff formatter | ||
run: poetry run ruff format . --check |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,3 +131,5 @@ dmypy.json | |
.pyre/ | ||
|
||
.idea/ | ||
|
||
.ruff_cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
import importlib | ||
from .client import MessageType, Client | ||
from .errors import RCONConnectionError, ClientNotConnectedError, IncorrectPasswordError | ||
|
||
__version__ = importlib.metadata.version("aio-mc-rcon") | ||
|
||
__all__ = ( | ||
"MessageType", | ||
"Client", | ||
"RCONConnectionError", | ||
"ClientNotConnectedError", | ||
"IncorrectPasswordError", | ||
"__version__", | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,24 @@ | ||
[tool.poetry] | ||
name = "aio-mc-rcon" | ||
version = "3.2.2" | ||
version = "3.3.0" | ||
description = "An async library for utilizing remote console on Minecraft Java Edition servers" | ||
authors = ["Milo Weinberg <iapetus011@gmail.com>"] | ||
license = "MIT" | ||
readme = "README.md" | ||
repository = "https://github.com/Iapetus-11/aio-mc-rcon" | ||
keywords = ["rcon", "mcrcon", "async"] | ||
keywords = ["rcon", "mcrcon", "async", "remote console", "minecraft"] | ||
packages = [{ include = "aiomcrcon" }] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8,<4.0" | ||
|
||
[tool.poetry.dev-dependencies] | ||
black = "^21.11b0" | ||
flake8 = "^4.0.1" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
black = "^23.12.1" | ||
ruff = "^0.9.2" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.black] | ||
[tool.ruff] | ||
line-length = 100 | ||
target-version = ['py37', 'py38'] | ||
include = '\.pyi?$' | ||
target-version = "py39" |