From 26699043891d1dbaf2311f01ebfef47fb6ded481 Mon Sep 17 00:00:00 2001 From: Florian Felten Date: Thu, 17 Oct 2024 09:45:34 +0200 Subject: [PATCH] Update actions and pre commit --- .github/workflows/build-publish.yml | 6 ++---- .github/workflows/pre-commit.yml | 10 ++++------ .pre-commit-config.yaml | 12 ++++++------ py.typed | 0 pyproject.toml | 3 ++- 5 files changed, 14 insertions(+), 17 deletions(-) create mode 100644 py.typed diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index 5840d6bf..e29ddf3b 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -23,11 +23,9 @@ jobs: - uses: actions/setup-python@v5 - name: Install dependencies - run: python -m pip install --upgrade pip setuptools build - + run: pipx install build - name: Build sdist and wheels - run: python -m build - + run: pyproject-build - name: Store wheels uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 80ce02af..9f2cc2ab 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -13,9 +13,7 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - - run: python -m pip install pre-commit - - run: python -m pre_commit --version - - run: python -m pre_commit install - - run: python -m pre_commit run --all-files + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - run: pipx install pre-commit + - run: pre-commit run --all-files diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8770dabb..615a9b06 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: check-symlinks - id: destroyed-symlinks @@ -17,13 +17,13 @@ repos: - id: detect-private-key - id: debug-statements - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell args: - --ignore-words-list=reacher, mor, nowe - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 + rev: 7.1.1 hooks: - id: flake8 args: @@ -34,16 +34,16 @@ repos: - --show-source - --statistics - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.18.0 hooks: - id: pyupgrade args: ["--py37-plus"] - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/python/black - rev: 23.9.1 + rev: 24.10.0 hooks: - id: black - repo: https://github.com/pycqa/pydocstyle diff --git a/py.typed b/py.typed new file mode 100644 index 00000000..e69de29b diff --git a/pyproject.toml b/pyproject.toml index 922b40a2..defbff9a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,9 +93,10 @@ include-package-data = true include = ["momaland", "momaland.*"] [tool.setuptools.package-data] -mo_gymnasium = [ +momaland = [ "**/*.json", "**/assets/*", + "py.typed", ] # Linters and Test tools #######################################################