Skip to content

Commit 33c6232

Browse files
committed
Drop Python 3.8 support, add Python 3.13 support; Remove dependabot
1 parent 8156f75 commit 33c6232

7 files changed

Lines changed: 17 additions & 22 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/static-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- name: Set up Python 3.12
13+
- name: Set up Python
1414
uses: actions/setup-python@v5
1515
with:
16-
python-version: '3.12'
16+
python-version: '3.13'
1717
cache: 'pip'
1818
cache-dependency-path: 'requirements/dev.txt'
1919
- name: Install requirements

.github/workflows/unittest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- name: Set up Python 3.8
13+
- name: Set up Python 3.9
1414
uses: actions/setup-python@v5
1515
with:
16-
python-version: '3.8'
16+
python-version: '3.9'
1717

1818
- name: Unittest
1919
run: 'python -m unittest'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Example gitlab codequality report from [gitlab documentation](https://docs.gitla
1717

1818
This command send to `STDOUT` generated json that can be used as Code Quality report artifact.
1919

20-
Also, this script supports plain text output parsing for backward compatability but json is recommended
20+
Also, this script supports plain text output parsing for backward compatability but json is recommended.
2121

2222
`$ mypy program.py | mypy-gitlab-code-quality`
2323

mypy_gitlab_code_quality/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
from enum import Enum
77
from functools import reduce
88
from sys import stdin, stdout
9-
from typing import Iterable, TypedDict
9+
from typing import TYPE_CHECKING, TypedDict
10+
11+
if TYPE_CHECKING:
12+
from collections.abc import Iterable
1013

1114

1215
class Severity(str, Enum):
@@ -51,9 +54,7 @@ def parse_issue(line: str) -> GitlabIssue | None:
5154
)
5255
if match is None:
5356
return None
54-
# TODO(soul-catcher): add usedforsecurity=False and remove noqa
55-
# when python 3.8 will be discontinued
56-
fingerprint = hashlib.md5(line.encode("utf-8")).hexdigest() # noqa: S324
57+
fingerprint = hashlib.md5(line.encode("utf-8"), usedforsecurity=False).hexdigest()
5758
error_levels_table = {"error": Severity.major, "note": Severity.info}
5859
return {
5960
"description": match["message"],

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[project]
22
name = "mypy-gitlab-code-quality"
3-
version = "1.1.0"
3+
version = "1.2.0"
44
description = "Simple script to generate gitlab code quality report from output of mypy."
55
readme = "README.md"
6-
requires-python = ">=3.8"
6+
requires-python = ">=3.9"
77
license = { file = "LICENSE" }
88
authors = [
99
{ name = "Dmitry Samsonov", email = "dmitriy.samsonov28@gmail.com" },
@@ -15,11 +15,11 @@ classifiers = [
1515
"License :: OSI Approved :: MIT License",
1616
"Operating System :: OS Independent",
1717
"Programming Language :: Python :: 3",
18-
"Programming Language :: Python :: 3.8",
1918
"Programming Language :: Python :: 3.9",
2019
"Programming Language :: Python :: 3.10",
2120
"Programming Language :: Python :: 3.11",
2221
"Programming Language :: Python :: 3.12",
22+
"Programming Language :: Python :: 3.13",
2323
]
2424
[project.urls]
2525
"Homepage" = "https://github.com/soul-catcher/mypy-gitlab-code-quality"
@@ -33,7 +33,7 @@ build-backend = "setuptools.build_meta"
3333

3434
[tool.mypy]
3535
strict = true
36-
python_version = "3.8"
36+
python_version = "3.9"
3737
exclude = ['test.*\.py']
3838

3939
[tool.ruff.lint]
@@ -45,6 +45,6 @@ ignore = [
4545
"FIX", # Check for temporary developer notes
4646
"TD003", # Temporary developer note missing link to issue
4747
"COM812", # Comma checks. Conflicts with Ruff formatter
48-
"ISC001", # Implicit string concatenation. Conflicts with ruff formatter
48+
"ISC001", # Implicit string concatenation. Conflicts with Ruff formatter
4949
]
5050
pydocstyle.convention = "pep257"

requirements/dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
mypy == 1.14.1
2-
ruff == 0.9.4
1+
mypy == 1.15.0
2+
ruff == 0.9.7

0 commit comments

Comments
 (0)