Commit 367c1ad1 authored by semantic-release-bot's avatar semantic-release-bot
Browse files

chore(release): 9.0.0 [skip ci]

# [9.0.0](https://gitlab.com/to-be-continuous/python/compare/8.6.0...9.0.0) (2025-11-22)

### Features

* harmonize Python CLI arguments configuration ([b4ede578](https://gitlab.com/to-be-continuous/python/commit/b4ede57865ca553e4ab7ca3797514c3afe6ca288)

)

### BREAKING CHANGES

* Changed default arguments and behavior for Python tools

This commit refactors how file paths and arguments are provided to Python tools (pylint, black, isort, mypy, ruff) to improve consistency and align with .gitignore-based exclusion patterns.

Breaking changes:
- pylint: pylint-files variable now defaults to "." instead of auto-discovering Python files
- pylint: Merged pylint-files and pylint-args into single pylint-args parameter
- mypy: mypy-files variable now defaults to "." instead of auto-discovering Python files
- mypy: mypy-args now defaults to "--exclude /.cache/ --exclude /.venv/ ." instead of empty
- mypy: Merged mypy-files and mypy-args into single mypy-args parameter

Migration guide:
- If you were using pylint-files, merge it into pylint-args
- If you were using mypy-files, merge it into mypy-args
- If you were relying on auto-discovery of Python files, explicitly set paths in args variables
- Ensure .gitignore properly excludes .cache/ and .venv/ directories (recommended)

Rationale:
This change improves consistency across all Python tools by:
- Using a single parameter combining files and CLI options instead of splitting them
- Leveraging .gitignore for exclusions to avoid duplicate configuration
- Making default behavior explicit (analyze current directory ".")

Additional improvements:
- black: Added black-args variable (defaults to "--diff .") to allow argument customization
- isort: Added isort-args variable (defaults to ".") to allow argument customization
- All tools: File exclusions now leverage .gitignore instead of tool-specific --exclude options
- Add ${TRACE} variable management to many commands for allow verbose output when debugging
- Create .cache directory with .gitignore entry during initialization
- Remove unnecessary argument from ruff (can run without explicit "." parameter)

Co-authored-by: default avatarGuilhem Bonnefille <guilhem.bonnefille@csgroup.eu>
Co-authored-by: default avatarGaëtan Montury <10528250-pytgaen@users.noreply.gitlab.com>
Co-authored-by: default avatarPierre Smeyers <pierre.smeyers@gmail.com>
parent b4ede578
Loading
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
# [9.0.0](https://gitlab.com/to-be-continuous/python/compare/8.6.0...9.0.0) (2025-11-22)


### Features

* harmonize Python CLI arguments configuration ([b4ede57](https://gitlab.com/to-be-continuous/python/commit/b4ede57865ca553e4ab7ca3797514c3afe6ca288))


### BREAKING CHANGES

* Changed default arguments and behavior for Python tools

This commit refactors how file paths and arguments are provided to Python tools (pylint, black, isort, mypy, ruff) to improve consistency and align with .gitignore-based exclusion patterns.

Breaking changes:
- pylint: pylint-files variable now defaults to "." instead of auto-discovering Python files
- pylint: Merged pylint-files and pylint-args into single pylint-args parameter
- mypy: mypy-files variable now defaults to "." instead of auto-discovering Python files
- mypy: mypy-args now defaults to "--exclude /.cache/ --exclude /.venv/ ." instead of empty
- mypy: Merged mypy-files and mypy-args into single mypy-args parameter

Migration guide:
- If you were using pylint-files, merge it into pylint-args
- If you were using mypy-files, merge it into mypy-args
- If you were relying on auto-discovery of Python files, explicitly set paths in args variables
- Ensure .gitignore properly excludes .cache/ and .venv/ directories (recommended)

Rationale:
This change improves consistency across all Python tools by:
- Using a single parameter combining files and CLI options instead of splitting them
- Leveraging .gitignore for exclusions to avoid duplicate configuration
- Making default behavior explicit (analyze current directory ".")

Additional improvements:
- black: Added black-args variable (defaults to "--diff .") to allow argument customization
- isort: Added isort-args variable (defaults to ".") to allow argument customization
- All tools: File exclusions now leverage .gitignore instead of tool-specific --exclude options
- Add ${TRACE} variable management to many commands for allow verbose output when debugging
- Create .cache directory with .gitignore entry during initialization
- Remove unnecessary argument from ruff (can run without explicit "." parameter)

Co-authored-by: Guilhem Bonnefille <guilhem.bonnefille@csgroup.eu>
Co-authored-by: Gaëtan Montury <10528250-pytgaen@users.noreply.gitlab.com>
Co-authored-by: Pierre Smeyers <pierre.smeyers@gmail.com>

# [8.6.0](https://gitlab.com/to-be-continuous/python/compare/8.5.0...8.6.0) (2025-11-10)


+8 −8
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ Add the following to your `.gitlab-ci.yml`:
```yaml
include:
  # 1: include the component
  - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python@8.6.0
  - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python@9.0.0
    # 2: set/override component inputs
    inputs:
      image: docker.io/library/python:3.12-slim
@@ -29,7 +29,7 @@ Add the following to your `.gitlab-ci.yml`:
include:
  # 1: include the template
  - project: 'to-be-continuous/python'
    ref: '8.6.0'
    ref: '9.0.0'
    file: '/templates/gitlab-ci-python.yml'

variables:
@@ -682,9 +682,9 @@ With:
```yaml
include:
  # main component
  - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python@8.6.0
  - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python@9.0.0
  # Vault variant
  - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python-vault@8.6.0
  - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python-vault@9.0.0
    inputs:
      vault-base-url: "https://vault.acme.host/v1"
      # audience claim for JWT
@@ -723,13 +723,13 @@ The variant requires the additional configuration parameters:

```yaml
include:
  - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python@8.6.0
  - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python@9.0.0
    # 2: set/override component inputs
    inputs:
      image: docker.io/library/python:3.12-slim
      pytest-enabled: true

  - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python-gcp@8.6.0
  - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python-gcp@9.0.0
    inputs:
      # common OIDC config for non-prod envs
      gcp-oidc-provider: "projects/<gcp_nonprod_proj_id>/locations/global/workloadIdentityPools/<pool_id>/providers/<provider_id>"
@@ -789,13 +789,13 @@ then set the required configuration.

```yaml
include:
  - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python@8.6.0
  - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python@9.0.0
    # 2: set/override component inputs
    inputs:
      image: docker.io/library/python:3.12-slim
      pytest-enabled: true

  - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python-aws-codeartifact@8.6.0
  - component: $CI_SERVER_FQDN/to-be-continuous/python/gitlab-ci-python-aws-codeartifact@9.0.0
    inputs:
      aws-region: "us-east-1"
      aws-codeartifact-domain: "acme"
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ variables:
  image: $PYTHON_IMAGE
  services:
    - name: "$TBC_TRACKING_IMAGE"
      command: ["--service", "python", "8.6.0"]
      command: ["--service", "python", "9.0.0"]
  id_tokens:
    GCP_JWT:
      aud: "$GCP_OIDC_AUD"
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ variables:
.python-base:
  services:
    - name: "$TBC_TRACKING_IMAGE"
      command: ["--service", "python", "8.6.0"]
      command: ["--service", "python", "9.0.0"]
    - name: "$TBC_VAULT_IMAGE"
      alias: "vault-secrets-provider"
      variables:
+1 −1
Original line number Diff line number Diff line
@@ -1305,7 +1305,7 @@ stages:
  image: $PYTHON_IMAGE
  services:
    - name: "$TBC_TRACKING_IMAGE"
      command: ["--service", "python", "8.6.0"]
      command: ["--service", "python", "9.0.0"]
  variables:
    # set local cache dir; most Python tools honour XDG specs
    XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"