Skip to content

Commit 3e14c0e

Browse files
authored
Remove lint:dependencies usage from report.yml and add deprecation notice (#925)
1 parent 48b5172 commit 3e14c0e

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/report.yml

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/changes/unreleased.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# Unreleased
22

33
## Summary
4+
5+
## Refactoring
6+
7+
* #924: Removed `lint:dependencies` usage from `report.yml` and added deprecation notice

exasol/toolbox/nox/_lint.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
from exasol.toolbox.util.dependencies.shared_models import PoetryFiles
1515
from noxconfig import PROJECT_CONFIG
1616

17+
# The relevant nox session will be removed in:
18+
# https://github.com/exasol/python-toolbox/issues/924
19+
LINT_DEPENDENCIES_DEPRECATION_DATE = "2026-10-08"
20+
1721

1822
def _pylint(session: Session, files: Iterable[str]) -> None:
1923
json_file = PROJECT_CONFIG.root_path / ".lint.json"
@@ -149,6 +153,10 @@ def dependency_check(session: Session) -> None:
149153
if illegal := dependencies.illegal:
150154
report_illegal(illegal, console)
151155
sys.exit(1)
156+
session.warn(
157+
f"Warning: `nox -s lint:dependencies` is deprecated and will be removed on "
158+
f"{LINT_DEPENDENCIES_DEPRECATION_DATE}."
159+
)
152160

153161

154162
@nox.session(name="lint:import", python=False)

exasol/toolbox/templates/github/workflows/report.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,3 @@ jobs:
4747
env:
4848
SONAR_TOKEN: "${{ secrets.(( sonar_token_name )) }}"
4949
run: poetry run -- nox -s sonar:check
50-
51-
- name: Generate GitHub Summary
52-
id: generate-github-summary
53-
run: |
54-
echo -e "# Summary\n" >> $GITHUB_STEP_SUMMARY
55-
poetry run -- nox -s dependency:licenses >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)