Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Support Python 3.12 #4

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/install_dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
python_version:
description: Version of python to prepare
required: false
default: "3.11"
default: "3.12"

runs:
using: "composite"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install_dependencies
Expand All @@ -29,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install_dependencies
Expand All @@ -44,7 +44,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install_dependencies
Expand All @@ -59,7 +59,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install_dependencies
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ Generate [GitLab Code Quality report](https://docs.gitlab.com/ee/ci/testing/code
## Usage

```bash
$ pydocstyle <file_path> | PYTHONHASHSEED=0 pydocstyle-gitlab-code-quality
$ pydocstyle <file_path> | pydocstyle-gitlab-code-quality
```

The output of this command is printed to `stdout` in JSON format, which can be used as Code Quality report.

Environment variable `PYTHONHASHSEED=0` prevents randomized hashes, which are used by GitLab to determine changes between branches on merge request.

### Example `.gitlab-ci.yml` file

```yaml
Expand Down
8 changes: 4 additions & 4 deletions ci_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
black~=23.3.0
isort[colors]~=5.11.0
mypy~=1.4.1
pylint~=2.17.4
black~=23.11.0
isort[colors]~=5.12.0
mypy~=1.7.0
pylint~=3.0.0
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
[project]
name = "pydocstyle-gitlab-code-quality"
version = "0.0.2"
version = "0.0.3"
authors = [
{ name = "Aleksander Kluczka", email = "aleksander.kluczka@gmail.com" },
]
description = "Simple script to generate gitlab code quality report from output of pydocstyle."
readme = "README.md"
requires-python = ">=3.7"
requires-python = ">=3.8"
license = { text = "MIT" }
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

[project.urls]
Expand Down