Repository navigation
Conversation
…e#4584) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N
Codecov Report❌ Patch coverage is ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Merging this PR will improve performance by 29.21%1 warning
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
Subclasses in tests (e.g. DummyLint in test_environment_yml.py) bypass ComponentLint.__init__ and lack component_type / _remote_url; fall back with getattr() in schema_path(). Co-Authored-By: Gemini 4 Neon <[email protected]>
PR checklist
CHANGELOG.mdis updateddocsis updatedWho hits this: nf-core users running
modules lint --local,modules --no-pull create, orpipelines lintoffline or behind a corporate VPN (#4613 and #4584).Addresses #4613 and #4584.
On
dev(181dff1), several lint and scaffold paths still require Git or HTTP access even when linting local components or passing--no-pull:nf-core modules lint -d modules/local --local(andsubworkflows lint --local) eagerly initializesModulesRepo, attempts to clone/fetchnf-core/modules, prompts to delete the local cache on fetch failure, and reconcilesmodules.json.nf-core modules --no-pull create(andsubworkflows --no-pull create) omitsno_pull, runs legacy migration and Prettier bootstrap, and callsgh api /usereven when--authoris given.nf-core modules --no-pull lint(andsubworkflows --no-pull lint) still crashes on a missing cache or fetches during version/change checks.nf-core pipelines lint(actions_schema_validation) fetcheshttps://www.schemastore.org/github-workfloweven when there are no workflow files, has no timeout, and crashes onSSLError,ConnectionError,Timeout, or non-JSON/non-object proxy responses; unreachable component remotes also abortrun_linting.Changes:
ModulesReposetup inComponentCommand/ComponentLintand passlocal=localthroughmodules lintandsubworkflows lint, reading existing disk schemas when cached and warning when uncached without touchingmodules.json.no_pullthroughModuleCreateandSubworkflowCreate; skip repo init, legacy migration,gh api /user, and Prettier when--no-pullis set (and skipghwhenever a valid--authoris already supplied).ModulesRepoUnavailableErrorandcache_only=self.no_pullfor lint repo lookups so offline/uncached version and diff checks warn instead of crashing while real file mismatches and missingmain.nfstill fail.actions_schema_validationwhen no.github/workflows/*.y*mlfiles exist, addtimeout=10, catchrequests.RequestException, and warn on non-object JSON proxy responses while keeping online pass/fail validation intact.Noneresponses frombio.toolsand emptytools:keys inupdate_meta_yml_file.This keeps the existing
--no-pullflag placement so the broader--offlineCLI design from #4613 / #4584 can be decided separately.Tests:
tests/test_offline.py(socket-blocked offline suite, 29 cases) has 26 failures and 3 passing online/control cases ondev(181dff1) and passes 29/29 here.mypy nf_core/reports 0 new errors,ruff checkandruff format --checkpass on all modified files, and the existing pipeline lint suite (93tests) passes.Found and written with AI agents; a separate AI referee reproduced the problem before this PR.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N