From f5580b0ae8b97f7919e70adcde63dcf4f58253ad Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 22:48:23 +0300 Subject: [PATCH 1/6] ci: pre-commit autoupdate (#179) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d50df5f..d057436 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: default_install_hook_types: [pre-commit, prepare-commit-msg] repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-yaml - id: check-toml @@ -32,7 +32,7 @@ repos: hooks: - id: codespell - repo: https://github.com/commit-check/commit-check - rev: v0.8.2 + rev: v0.8.3 hooks: - id: check-message # - id: check-branch # uncomment if you need. From d75e1a0cc98a9defbdc28725d3ecefcf634c4e79 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2024 21:41:25 +0300 Subject: [PATCH 2/6] ci: pre-commit autoupdate (#182) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.12.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.2...v1.12.1) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d057436..c3cfbf1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: args: [--max-line-length=100, --ignore=E501] exclude: ^commit_check/__init__.py - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.12.1 hooks: - id: mypy additional_dependencies: [types-PyYAML] From 65cf99891800154a32e7eb66258a4dd012a3f57b Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Mon, 21 Oct 2024 21:47:22 +0300 Subject: [PATCH 3/6] chore: support Python 3.13 (#183) * chore: update main.yml to support Python 3.13 * Update pyproject.toml --- .github/workflows/main.yml | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 898121e..ceda0a7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -61,7 +61,7 @@ jobs: strategy: fail-fast: false matrix: - py: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13.0-beta.1'] + py: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] os: ['windows-latest', 'ubuntu-latest', 'macos-latest'] runs-on: ${{ matrix.os }} steps: diff --git a/pyproject.toml b/pyproject.toml index ffeff98..04c8982 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Utilities" , "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Libraries :: Python Modules", From d5c0ff4123b5eda462cf538a8704631b673acd6c Mon Sep 17 00:00:00 2001 From: Randolph Sapp Date: Mon, 28 Oct 2024 14:59:11 -0500 Subject: [PATCH 4/6] fix(email): do not attempt to validate address (#184) The regex expression to correctly validate an email address is incredibly long and unnecessarily complex for what we are trying to accomplish here [1]. Instead of validating the email address, let's just make sure two values separated with an "@" are present. [1] https://en.wikipedia.org/wiki/Email_address#Syntax Signed-off-by: Randolph Sapp --- commit_check/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commit_check/__init__.py b/commit_check/__init__.py index 7d1ab0c..a88235c 100644 --- a/commit_check/__init__.py +++ b/commit_check/__init__.py @@ -38,13 +38,13 @@ }, { 'check': 'author_email', - 'regex': r'^\S+@\S+\.\S+$', + 'regex': r'^.+@.+$', 'error': 'The committer\'s email seems invalid', 'suggest': 'run command `git config user.email yourname@example.com`', }, { 'check': 'commit_signoff', - 'regex': r'Signed-off-by:.*[A-Za-z0-9]\s+<[\w\.]+@([\w-]+\.)+[\w-]{2,4}>', + 'regex': r'Signed-off-by:.*[A-Za-z0-9]\s+<.+@.+>', 'error': 'Signed-off-by not found in latest commit', 'suggest': 'run command `git commit -m "conventional commit message" --signoff`', }, From cdba20ce6c1f95157c1409798327ecf726aea37c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 22:01:03 +0200 Subject: [PATCH 5/6] ci: pre-commit autoupdate (#185) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/mirrors-mypy: v1.12.1 → v1.13.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.12.1...v1.13.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c3cfbf1..378667b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: args: [--max-line-length=100, --ignore=E501] exclude: ^commit_check/__init__.py - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.12.1 + rev: v1.13.0 hooks: - id: mypy additional_dependencies: [types-PyYAML] From 6d26de09940b82753e12896a44992a406a08b8c0 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Mon, 28 Oct 2024 22:12:16 +0200 Subject: [PATCH 6/6] fix: Update main.yml to fix codecov (#187) --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ceda0a7..3737c30 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -49,7 +49,7 @@ jobs: run: | coverage run --source commit_check -m pytest coverage report && coverage xml - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4.6.0 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.xml pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy