diff --git a/.github/workflows/report.yml b/.github/workflows/report.yml index 5df42e9e6..0761cb12b 100644 --- a/.github/workflows/report.yml +++ b/.github/workflows/report.yml @@ -48,9 +48,3 @@ jobs: env: SONAR_TOKEN: "${{ secrets.SONAR_TOKEN }}" run: poetry run -- nox -s sonar:check - - - name: Generate GitHub Summary - id: generate-github-summary - run: |- - echo -e "# Summary\n" >> $GITHUB_STEP_SUMMARY - poetry run -- nox -s dependency:licenses >> $GITHUB_STEP_SUMMARY diff --git a/doc/changes/unreleased.md b/doc/changes/unreleased.md index fb4737052..228c80dee 100644 --- a/doc/changes/unreleased.md +++ b/doc/changes/unreleased.md @@ -1,3 +1,7 @@ # Unreleased ## Summary + +## Refactoring + +* #924: Removed `lint:dependencies` usage from `report.yml` and added deprecation notice diff --git a/exasol/toolbox/nox/_lint.py b/exasol/toolbox/nox/_lint.py index b4e5508cd..4e105eca8 100644 --- a/exasol/toolbox/nox/_lint.py +++ b/exasol/toolbox/nox/_lint.py @@ -14,6 +14,10 @@ from exasol.toolbox.util.dependencies.shared_models import PoetryFiles from noxconfig import PROJECT_CONFIG +# The relevant nox session will be removed in: +# https://github.com/exasol/python-toolbox/issues/924 +LINT_DEPENDENCIES_DEPRECATION_DATE = "2026-10-08" + def _pylint(session: Session, files: Iterable[str]) -> None: json_file = PROJECT_CONFIG.root_path / ".lint.json" @@ -149,6 +153,10 @@ def dependency_check(session: Session) -> None: if illegal := dependencies.illegal: report_illegal(illegal, console) sys.exit(1) + session.warn( + f"Warning: `nox -s lint:dependencies` is deprecated and will be removed on " + f"{LINT_DEPENDENCIES_DEPRECATION_DATE}." + ) @nox.session(name="lint:import", python=False) diff --git a/exasol/toolbox/templates/github/workflows/report.yml b/exasol/toolbox/templates/github/workflows/report.yml index 555ce72b7..cb653bf4e 100644 --- a/exasol/toolbox/templates/github/workflows/report.yml +++ b/exasol/toolbox/templates/github/workflows/report.yml @@ -47,9 +47,3 @@ jobs: env: SONAR_TOKEN: "${{ secrets.(( sonar_token_name )) }}" run: poetry run -- nox -s sonar:check - - - name: Generate GitHub Summary - id: generate-github-summary - run: | - echo -e "# Summary\n" >> $GITHUB_STEP_SUMMARY - poetry run -- nox -s dependency:licenses >> $GITHUB_STEP_SUMMARY