diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3acee16f9..576c1befb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: - name: Python Semantic Release id: release - uses: python-semantic-release/python-semantic-release@v10.1.0 + uses: python-semantic-release/python-semantic-release@v10.2.0 with: github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }} @@ -32,7 +32,7 @@ jobs: if: steps.release.outputs.released == 'true' - name: Publish package distributions to GitHub Releases - uses: python-semantic-release/upload-to-gh-release@0a92b5d7ebfc15a84f9801ebd1bf706343d43711 # v9.8.9 + uses: python-semantic-release/publish-action@v10.2.0 if: steps.release.outputs.released == 'true' with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index e65835c30..0b6cbe5db 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -17,12 +17,13 @@ jobs: steps: - uses: actions/stale@v9.1.0 with: + operations-per-run: 500 stale-issue-label: "stale" stale-pr-label: "stale" # If an issue/PR has an assignee it won't be marked as stale exempt-all-assignees: true - stale-issue-message: > + stale-issue-message: | This issue was marked stale because it has been open 60 days with no activity. Please remove the stale label or comment on this issue. Otherwise, it will be closed in 15 days. @@ -43,9 +44,12 @@ jobs: We value your input. If you can help provide a fix, we'd be happy to keep this issue open and support your efforts. + This is documented in CONTRIBUTING.rst + https://github.com/python-gitlab/python-gitlab/blob/main/CONTRIBUTING.rst + days-before-issue-stale: 60 days-before-issue-close: 15 - close-issue-message: > + close-issue-message: | This issue was closed because it has been marked stale for 15 days with no activity. @@ -70,6 +74,7 @@ jobs: contributions. This is documented in CONTRIBUTING.rst + https://github.com/python-gitlab/python-gitlab/blob/main/CONTRIBUTING.rst stale-pr-message: > This Pull Request (PR) was marked stale because it has been open 90 days diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3dda94ccf..f18249f20 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: commitizen stages: [commit-msg] - repo: https://github.com/pycqa/flake8 - rev: 7.2.0 + rev: 7.3.0 hooks: - id: flake8 - repo: https://github.com/pycqa/isort @@ -32,7 +32,7 @@ repos: - requests-toolbelt==1.0.0 files: 'gitlab/' - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.16.0 + rev: v1.17.0 hooks: - id: mypy args: [] @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 40.57.1 + rev: 41.42.1 hooks: - id: renovate-config-validator diff --git a/gitlab/_version.py b/gitlab/_version.py index 24c1a84f8..2f7a85281 100644 --- a/gitlab/_version.py +++ b/gitlab/_version.py @@ -3,4 +3,4 @@ __email__ = "gauvainpocentek@gmail.com" __license__ = "LGPL3" __title__ = "python-gitlab" -__version__ = "6.1.0" +__version__ = "6.2.0" diff --git a/gitlab/v4/objects/notes.py b/gitlab/v4/objects/notes.py index f104c3f5d..3e83d9be1 100644 --- a/gitlab/v4/objects/notes.py +++ b/gitlab/v4/objects/notes.py @@ -128,12 +128,7 @@ class ProjectIssueDiscussionNote(SaveMixin, ObjectDeleteMixin, RESTObject): pass -class ProjectIssueDiscussionNoteManager( - GetMixin[ProjectIssueDiscussionNote], - CreateMixin[ProjectIssueDiscussionNote], - UpdateMixin[ProjectIssueDiscussionNote], - DeleteMixin[ProjectIssueDiscussionNote], -): +class ProjectIssueDiscussionNoteManager(CRUDMixin[ProjectIssueDiscussionNote]): _path = ( "/projects/{project_id}/issues/{issue_iid}/discussions/{discussion_id}/notes" ) @@ -164,10 +159,7 @@ class ProjectMergeRequestDiscussionNote(SaveMixin, ObjectDeleteMixin, RESTObject class ProjectMergeRequestDiscussionNoteManager( - GetMixin[ProjectMergeRequestDiscussionNote], - CreateMixin[ProjectMergeRequestDiscussionNote], - UpdateMixin[ProjectMergeRequestDiscussionNote], - DeleteMixin[ProjectMergeRequestDiscussionNote], + CRUDMixin[ProjectMergeRequestDiscussionNote] ): _path = ( "/projects/{project_id}/merge_requests/{mr_iid}/" diff --git a/requirements-docker.txt b/requirements-docker.txt index ee34d1fba..532609b3f 100644 --- a/requirements-docker.txt +++ b/requirements-docker.txt @@ -1,3 +1,3 @@ -r requirements.txt -r requirements-test.txt -pytest-docker==3.2.2 +pytest-docker==3.2.3 diff --git a/requirements-docs.txt b/requirements-docs.txt index c951d81d5..39f5f61e2 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -1,5 +1,5 @@ -r requirements.txt -furo==2024.8.6 +furo==2025.7.19 jinja2==3.1.6 myst-parser==4.0.1 sphinx==8.2.3 diff --git a/requirements-lint.txt b/requirements-lint.txt index 1281b5c87..73eb2fda0 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -2,11 +2,11 @@ argcomplete==2.0.0 black==25.1.0 commitizen==4.8.3 -flake8==7.2.0 +flake8==7.3.0 isort==6.0.1 -mypy==1.16.0 +mypy==1.17.0 pylint==3.3.7 -pytest==8.4.0 +pytest==8.4.1 responses==0.25.7 respx==0.22.0 types-PyYAML==6.0.12.20250516 diff --git a/requirements-test.txt b/requirements-test.txt index 307f83782..26d3b35af 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,11 +1,11 @@ -r requirements.txt anyio==4.9.0 build==1.2.2.post1 -coverage==7.9.1 +coverage==7.9.2 pytest-console-scripts==1.4.1 pytest-cov==6.2.1 pytest-github-actions-annotate-failures==0.3.0 -pytest==8.4.0 +pytest==8.4.1 PyYaml==6.0.2 responses==0.25.7 respx==0.22.0