diff --git a/.github/workflows/docs_branch_update.yml b/.github/workflows/docs_branch_update.yml index 8d341788..f3750b68 100644 --- a/.github/workflows/docs_branch_update.yml +++ b/.github/workflows/docs_branch_update.yml @@ -14,7 +14,7 @@ jobs: docs_rebuild: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: set up development environment diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 66d64dd4..1c121668 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - run: python3 -m pip install --upgrade build && python3 -m build diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index a484aff4..eaf0be8a 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -9,11 +9,11 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.12 + - uses: actions/checkout@v4 + - name: Set up Python 3.13 uses: actions/setup-python@v3 with: - python-version: '3.12' + python-version: '3.13' - name: Install linters run: | python -m pip install --upgrade pip @@ -26,12 +26,12 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - py: ['3.10', '3.11', '3.12'] + py: ['3.10', '3.11', '3.12', '3.13'] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.py }} - name: Configure SSH diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 34232dfb..b3554003 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,25 +1,25 @@ repos: - repo: https://github.com/psf/black - rev: 24.4.2 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 6.0.1 hooks: - id: isort - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.15.0 hooks: - id: mypy additional_dependencies: [types-paramiko] - repo: https://github.com/nbQA-dev/nbQA - rev: 1.8.5 + rev: 1.9.1 hooks: - id: nbqa-isort - id: nbqa-mypy args: [--ignore-missing-imports] - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks - rev: v2.13.0 + rev: v2.14.0 hooks: - id: pretty-format-ini args: [--autofix] @@ -27,7 +27,7 @@ repos: - id: pretty-format-yaml args: [--autofix] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-json - id: pretty-format-json diff --git a/enderchest/instance.py b/enderchest/instance.py index 1549554c..0b3b48e9 100644 --- a/enderchest/instance.py +++ b/enderchest/instance.py @@ -62,7 +62,9 @@ def from_cfg(cls, section: SectionProxy) -> "InstanceSpec": tuple( parse_version(version.strip()) for version in cfg.parse_ini_list( - section.get("minecraft-version", section.get("minecraft_version")) + section.get( + "minecraft-version", section.get("minecraft_version", "") + ) ) ), normalize_modloader(section.get("modloader", None))[0],