Skip to content

Add pylint to CI; add PR preview deployments#72

Merged
MariaNattestad merged 3 commits into
mainfrom
add-pylint-pr-preview
Jun 23, 2026
Merged

Add pylint to CI; add PR preview deployments#72
MariaNattestad merged 3 commits into
mainfrom
add-pylint-pr-preview

Conversation

@MariaNattestad

@MariaNattestad MariaNattestad commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Summary

Pylint:

  • Config in pyproject.toml: cosmetic/complexity checks disabled, max-line-length=250, fail-under=9.0 (currently scores 9.48/10)
  • Fixed real issues in files touched this sprint: bare-exceptException, == True → truthiness, undefined loop variable (query in uniq_anchor), unused numpy imports in nchart.py and dotplot.py
  • Added pylint to [dev] extras and CI step in test.yml

🤖 Generated with Claude Code

MariaNattestad and others added 3 commits June 23, 2026 12:00
Pylint:
- Configure via pyproject.toml: disable cosmetic/complexity checks,
  max-line-length=250, fail-under=9.0 in CI (currently scores 9.48/10)
- Fix real issues in files touched this sprint: bare-except → Exception,
  singleton comparisons (== True → truthiness), undefined loop variable,
  unused numpy imports in nchart.py and dotplot.py
- Add pylint to [dev] extras and test.yml CI step

PR previews:
- Switch deploy-pages.yml from actions/deploy-pages to
  peaceiris/actions-gh-pages with keep_files=true so PR subdirs persist
- New pr-preview.yml: deploys public/ to pr-preview/pr-{N}/ on every
  push to a PR touching public/, posts/updates a comment with the URL,
  cleans up on PR close
- NOTE: requires one manual settings change — GitHub Settings → Pages →
  Source → "Deploy from a branch" → gh-pages / (root)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Keeping the simpler GitHub Actions-based Pages deployment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@MariaNattestad MariaNattestad merged commit 04994eb into main Jun 23, 2026
1 check passed
@MariaNattestad MariaNattestad deleted the add-pylint-pr-preview branch June 23, 2026 10:16
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.

1 participant