Skip to content

feat: run the pylint job with pixi - #824

Merged
aldbr merged 6 commits into
DIRACGrid:integrationfrom
fstagni:pixi-lint
Nov 16, 2026
Merged

aldbr merged 6 commits into
DIRACGrid:integrationfrom
fstagni:pixi-lint

Conversation

@fstagni

@fstagni fstagni commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Port of #822 to the integration branch, stacked on #820 (part of DIRACGrid/.github#5, adopt pixi everywhere).

The pyLint job of codestyle.yml drops setup-micromamba + DIRAC's environment.yml in favor of a locked pixi environment:

  • new pixi.toml: the dependency set mirrors DIRAC's environment.yml on the integration branch (which this branch lints against), minus the heavy rucio-clients (not needed for pylint -E), plus pylint itself.
  • pixi.lock is committed: the environment is reproducible, and Renovate (via the org preset) becomes the only path for dependency changes.
  • exclude-newer = "7d" in the workspace config: per the org policy in chore: add the shared DIRACGrid Renovate config preset .github#7, the release-age cooldown is enforced by the solver at lock time (Renovate's lockfile maintenance skips minimumReleaseAge).
  • DIRAC (integration) is checked out and installed editable with --no-deps so that import DIRAC resolves for pylint; dependencies come from the pixi environment.

Verified locally: pixi lock solves and pixi run pylint --version runs (pylint 4.1.3, Python 3.11.18).

Align the pattern with DIRACGrid/DIRAC's semantic.yml, which accepts
chore: commits.
Port of DIRACGrid#822 to the integration branch: the pyLint job drops
setup-micromamba + DIRAC's environment.yml in favor of a locked pixi
environment (pixi.toml mirrors DIRAC integration's environment.yml;
exclude-newer enforces the 7-day release-age cooldown at solve time).
DIRAC@integration is installed editable with --no-deps so that
import DIRAC resolves for pylint.
@aldbr aldbr closed this Nov 16, 2026
@aldbr aldbr reopened this Nov 16, 2026
aldbr
aldbr previously approved these changes Nov 16, 2026
fstagni and others added 3 commits November 16, 2026 17:16
On DIRAC's integration branch the utilities re-exported by
DIRAC.Core.Utilities (fromString, toEpoch, fromChar, uniqueElements, ...)
live in the dirac-common subpackage (DIRACCommon). Without it pylint
cannot resolve the star-import re-exports and reports E1101/E0611.
Install both packages editable and use the generic
SETUPTOOLS_SCM_PRETEND_VERSION so both get a version from the
depth-1 checkout. Verified locally: pylint -E exits 0.
- .gitignore: anchor DIRAC/, .DIRAC/ and .pixi/ to the repository root;
  the unanchored DIRAC/ also ignored the tracked
  src/WebAppDIRAC/WebApp/static/DIRAC/ tree (new apps were silently
  left out of commits).
- deployment: give workflow_dispatch releases their own concurrency
  group. With a shared group, a later push/PR run replaced a queued
  release (GitHub keeps only one pending run per group).
- codestyle: only cancel in-progress runs for pull requests, so every
  commit pushed to a protected branch gets a CI result.
- codestyle: install DIRAC with --no-build-isolation; the build backends
  (setuptools, setuptools-scm, wheel, hatchling, hatch-vcs) now come from
  pixi.lock instead of unpinned PyPI downloads outside the cooldown.
- codestyle: use a neutral 0.0.0 SCM placeholder version (the shallow
  checkout has no tags, pylint ignores the value) and re-enable the
  setup-pixi cache keyed on pixi.lock.
- pixi.toml: matplotlib -> matplotlib-base, so the conda tornado is no
  longer installed under the tornado fork from PyPI (also drops Qt);
  refresh the header comment (editable install, not a copy).

Assisted-by: Claude:claude-opus-5-5
@aldbr
aldbr merged commit 48e5c92 into DIRACGrid:integration Nov 16, 2026
5 checks passed
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