From ca1fc308aef923e29f6d407d695afe9b484a7d19 Mon Sep 17 00:00:00 2001 From: Wu Zhenyu Date: Wed, 14 Dec 2022 12:35:56 +0800 Subject: [PATCH] :green_heart: Upgrade pre-commit Fix the wrong github action example in the document --- .pre-commit-config.yaml | 12 ++++++------ README.md | 1 - docs/resources/intention.md | 8 ++++---- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3b7a910..f154fbb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: check-added-large-files - id: fix-byte-order-marker @@ -31,13 +31,13 @@ repos: additional_dependencies: - tomli - repo: https://github.com/jorisroovers/gitlint - rev: v0.17.0 + rev: v0.18.0 hooks: - id: gitlint args: - --msg-filename - repo: https://github.com/editorconfig-checker/editorconfig-checker.python - rev: 2.6.1 + rev: 2.6.2 hooks: - id: editorconfig-checker - repo: https://github.com/jumanjihouse/pre-commit-hooks @@ -75,11 +75,11 @@ repos: additional_dependencies: - markdown-it-texmath@0.9.1 - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 22.12.0 hooks: - id: black - repo: https://github.com/PyCQA/isort - rev: 5.10.1 + rev: 5.11.0 hooks: - id: isort - repo: https://github.com/pycqa/pydocstyle @@ -89,7 +89,7 @@ repos: additional_dependencies: - toml - repo: https://github.com/kumaraditya303/mirrors-pyright - rev: v1.1.278 + rev: v1.1.283 hooks: - id: pyright - repo: https://github.com/PyCQA/bandit diff --git a/README.md b/README.md index b563a67..5855b57 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,6 @@ Example projects: - [demo for click](https://github.com/Freed-Wu/setuptools-generate/tree/main/tests/click/src) - [demo for shtab](https://github.com/Freed-Wu/setuptools-generate/tree/main/tests/shtab/src) -- [help2man](https://github.com/Freed-Wu/help2man) - [translate-shell](https://github.com/Freed-Wu/translate-shell) See [document](https://setuptools-generate.readthedocs.io) to know more. diff --git a/docs/resources/intention.md b/docs/resources/intention.md index 0006191..686b48d 100644 --- a/docs/resources/intention.md +++ b/docs/resources/intention.md @@ -111,13 +111,13 @@ jobs: - uses: actions/upload-artifact@v3 if: ${{ ! startsWith(github.ref, 'refs/tags/') }} with: - path: dist - path: build/resources + path: dist/* + path: build/resources/* - uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: - files: dist - path: build/resources + files: dist/* + path: build/resources/* - uses: pypa/gh-action-pypi-publish@release/v1 if: startsWith(github.ref, 'refs/tags/') && runner.os == 'Linux' with: