Skip to content

chore: install linters in make env, exclude *.txt from the license check - #412

Merged
kezhenxu94 merged 4 commits into
masterfrom
kezhenxu94-patch-1
Aug 6, 2026
Merged

chore: install linters in make env, exclude *.txt from the license check#412
kezhenxu94 merged 4 commits into
masterfrom
kezhenxu94-patch-1

Conversation

@kezhenxu94

@kezhenxu94 kezhenxu94 commented Aug 6, 2026

Copy link
Copy Markdown
Member

make lint assumed the lint dependency group was already installed, so a fresh
make env left it failing. This installs the group as part of make env.

While doing that, tests/plugin/web/sw_threading/requirements.txt was deleted because it
tripped the license header check. That was wrong — the plugin's docker-compose.yml runs
pip install -r /app/requirements.txt, so its absence made the provider container exit 1
and broke the sw_threading plugin test. The file is restored, and *.txt is excluded
from the license check instead: the per-plugin requirements.txt files are generated at
test time by tests/plugin/conftest.py and can never carry a header.

Verified with make license — no tracked file fails.

this file was likely committed by mistake, it contributes nothing but fail the license checker
@kezhenxu94
kezhenxu94 requested a review from wu-sheng August 6, 2026 06:17
…nse check

The plugin compose file installs /app/requirements.txt, so deleting it broke
the sw_threading test. Bring it back and exclude *.txt from the license
header check instead — per-plugin requirements.txt files are generated by
tests/plugin/conftest.py and can never carry a header.
@kezhenxu94 kezhenxu94 changed the title chore: delete tests/plugin/web/sw_threading/requirements.txt chore: install linters in make env, exclude *.txt from the license check Aug 6, 2026
`unify` and its `untokenize` dependency are unmaintained; their sdists use
`ast.Str.s`, removed in Python 3.12, and neither publishes a wheel. Installing
the lint group from `make env` therefore broke the Check Plugin Doc job, which
runs on Python 3.14.

Move the group into its own `env-lint` target that `lint` and `fix` depend on,
so `make env` works on every supported interpreter and only the lint targets
need one that can build `unify`.
@kezhenxu94
kezhenxu94 merged commit 1bd4692 into master Aug 6, 2026
75 checks passed
@kezhenxu94
kezhenxu94 deleted the kezhenxu94-patch-1 branch August 6, 2026 13:41
@wu-sheng wu-sheng added this to the 1.3.0 milestone Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants