From c8a6e9a27c11c1178ba9395194c268e40903937e Mon Sep 17 00:00:00 2001 From: Gaspare Vitta Date: Mon, 14 Jul 2025 17:25:26 +0200 Subject: [PATCH 1/5] Update CI --- .github/workflows/push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index c7a84bd..d7a4525 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -13,7 +13,7 @@ jobs: python-version: ['3.8', '3.9', '3.10'] steps: - uses: actions/checkout@v2 - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: | ~/.cache/pre-commit From c350740cb11651fe95eab8069b42981838c2699e Mon Sep 17 00:00:00 2001 From: Gaspare Vitta Date: Mon, 14 Jul 2025 17:35:54 +0200 Subject: [PATCH 2/5] Update more components --- .github/workflows/push.yml | 12 ++++++------ .gitignore | 3 ++- .pre-commit-config.yaml | 10 +++++----- setup.cfg | 3 +-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index d7a4525..71992e7 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -10,16 +10,16 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10'] + python-version: ['3.9', '3.10', '3.11', '3.12'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions/cache@v4 with: path: | ~/.cache/pre-commit ~/.cache/pip key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install pre-commit @@ -31,10 +31,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10'] + python-version: ['3.9', '3.10', '3.11', '3.12'] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.gitignore b/.gitignore index 506bbfb..0d4637f 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ dist .vscode build .coverage -htmlcov/ \ No newline at end of file +htmlcov/ +.history/ \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7ccbc4e..9738bca 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,25 +1,25 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: check-yaml - id: double-quote-string-fixer - repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.0.0 + rev: v2.8.0 hooks: - id: setup-cfg-fmt - repo: https://github.com/asottile/reorder_python_imports - rev: v3.8.2 + rev: v3.15.0 hooks: - id: reorder-python-imports args: [--py37-plus, --add-import, 'from __future__ import annotations'] - repo: https://github.com/asottile/pyupgrade - rev: v2.37.3 + rev: v3.20.0 hooks: - id: pyupgrade args: [--py37-plus] - repo: https://github.com/pre-commit/mirrors-autopep8 - rev: v1.7.0 + rev: v2.0.4 hooks: - id: autopep8 \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 47e8c0e..42fa82b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,9 +8,8 @@ url = https://github.com/Qarik-Group/gitlab-codeowners-linter author = Gaspare Vitta author_email = gvitta@qarik.com license = MIT -license_file = LICENSE +license_files = LICENSE classifiers = - License :: OSI Approved :: MIT License Programming Language :: Python :: 3 Programming Language :: Python :: 3 :: Only From 01cb6d6b06488943d8ed071bcf8ee8076aa3ac96 Mon Sep 17 00:00:00 2001 From: Gaspare Vitta Date: Mon, 14 Jul 2025 17:39:23 +0200 Subject: [PATCH 3/5] update pep8 hook --- .pre-commit-config.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9738bca..54d45b7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,6 @@ repos: hooks: - id: pyupgrade args: [--py37-plus] -- repo: https://github.com/pre-commit/mirrors-autopep8 - rev: v2.0.4 +- repo: https://github.com/hhatto/autopep8 hooks: - id: autopep8 \ No newline at end of file From 64d5d88e203fa51879499d9f5746d0dd0d617971 Mon Sep 17 00:00:00 2001 From: Gaspare Vitta Date: Mon, 14 Jul 2025 17:40:35 +0200 Subject: [PATCH 4/5] update pep8 hook --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 54d45b7..4f760b1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,5 +20,6 @@ repos: - id: pyupgrade args: [--py37-plus] - repo: https://github.com/hhatto/autopep8 + rev: v2.3.2 hooks: - id: autopep8 \ No newline at end of file From 05ebc13204ddc4b438932a3cb4f7154c0b005c8f Mon Sep 17 00:00:00 2001 From: Gaspare Vitta Date: Mon, 14 Jul 2025 17:42:07 +0200 Subject: [PATCH 5/5] Run on more py versions --- .github/workflows/push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 71992e7..337a743 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9', '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.9', '3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v4 - uses: actions/cache@v4 @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9', '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.9', '3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5