René's URL Explorer Experiment


Title: Implement RUFF to replace many of the dependencies by diraol · Pull Request #1192 · python-mode/python-mode · GitHub

Open Graph Title: Implement RUFF to replace many of the dependencies by diraol · Pull Request #1192 · python-mode/python-mode

X Title: Implement RUFF to replace many of the dependencies by diraol · Pull Request #1192 · python-mode/python-mode

Description: Implement Ruff to Replace Legacy Linting Infrastructure 🎯 Overview This PR implements a comprehensive migration from legacy linting tools (pylint, pyflakes, pycodestyle, mccabe, pydocstyle, pylama, autopep8) to Ruff, a modern, fast Python linter and formatter written in Rust. This change significantly improves performance, reduces maintenance burden, and provides a more unified linting experience. 📊 Key Metrics Submodules reduced: 13 → 3 (77% reduction) Repository size freed: ~90MB+ from .git/modules cleanup Performance improvement: 10-100x faster linting (Ruff vs legacy tools) Test coverage: 9/9 Vader test suites passing on Linux, macOS, and Windows Python support: 3.10, 3.11, 3.12, 3.13 on all platforms 🔄 Breaking Changes Removed Tools The following linting tools are no longer available as submodules: pylint → Replaced by Ruff PLE/PLR/PLW rules pyflakes → Replaced by Ruff F rules pycodestyle → Replaced by Ruff E/W rules mccabe → Replaced by Ruff C90 rules pydocstyle → Replaced by Ruff D rules pylama → No longer needed (wrapper) autopep8 → Replaced by Ruff format New Requirement Ruff must be installed: pip install ruff Ruff is now an external dependency (not bundled as submodule) Configuration Changes g:pymode_lint_checkers values are automatically mapped to Ruff rule categories Old tool-specific options mapped to Ruff configuration New Ruff-specific options available: g:pymode_ruff_enabled g:pymode_ruff_format_enabled g:pymode_ruff_select g:pymode_ruff_ignore g:pymode_ruff_config_file 🚀 New Features Multi-Platform CI Testing Linux: Ubuntu with Python 3.10-3.13 macOS: Latest with Python 3.10-3.13 Windows: Latest with Python 3.10-3.13 Parallel test execution across all platforms Comprehensive platform-specific fixes for compatibility Migration Tools Migration Guide (MIGRATION_GUIDE.md) - Step-by-step instructions Configuration Mapping (RUFF_CONFIGURATION_MAPPING.md) - Detailed rule mappings Migration Script (scripts/migrate_to_ruff.py) - Automatic vimrc conversion Validation Script (scripts/validate_ruff_migration.sh) - Setup verification CI/CD Improvements Cross-platform testing with dedicated scripts for each OS Robust error handling and timeout support Platform-specific PATH and environment configuration Comprehensive test result aggregation 📝 Technical Implementation Phase 1: Core Ruff Integration Implemented pymode/ruff_integration.py with Ruff check/format functions Created configuration mapping system for backward compatibility Updated pymode/lint.py to use Ruff instead of pylama Phase 2: Build & Distribution Updates Updated submodule initialization in pymode/utils.py Removed old linter dependencies from build scripts Cleaned up Docker and CI configuration Phase 3: Configuration Migration Mapped legacy configuration options to Ruff equivalents Maintained backward compatibility where possible Added validation and warning system for deprecated options Phase 4: Dependency Cleanup Removed 10 submodules (pyflakes, pycodestyle, mccabe, pylint, pydocstyle, pylama, autopep8, snowball_py, appdirs, astroid, toml) Kept 3 essential submodules (rope, tomli, pytoolconfig) Cleaned up git repository (~90MB+ freed) Phase 5: Testing & Validation Updated all test fixtures for Ruff Created comprehensive Ruff integration tests Verified all 9/9 Vader test suites pass Added multi-platform CI testing Phase 6: Documentation & Migration Created comprehensive migration guide Documented configuration mappings Added migration and validation scripts Updated all documentation with Ruff information 🔧 Platform-Specific Fixes macOS Fixed mapfile compatibility (bash 3.x/zsh don't support bash 4+ mapfile) Fixed empty array handling with set -u (unbound variable errors) Fixed sed "first RE may not be empty" errors with proper string formatting Added timeout fallback (timeout/gtimeout/none) for different environments Added --not-a-term flag detection for Vim compatibility Windows Fixed os.path.relpath ValueError when paths on different drives (C: vs D:) Implemented /tmp/ path redirection to Windows $TEMP directory Added BufWriteCmd/FileWriteCmd autocmds for path interception Improved Vim installation detection and PATH configuration Enhanced PowerShell error handling and output capture Added nobackup/nowritebackup Vim settings to prevent backup file errors Linux Maintained existing functionality Added enhanced error reporting Improved test output formatting 📚 Documentation New Files MIGRATION_GUIDE.md - User migration guide RUFF_CONFIGURATION_MAPPING.md - Configuration reference CI_IMPROVEMENTS.md - CI/CD documentation scripts/migrate_to_ruff.py - Migration tool scripts/validate_ruff_migration.sh - Validation tool scripts/test_path_resolution.py - Path testing tool Updated Files readme.md - Updated with Ruff information and reduced submodule count doc/pymode.txt - Added Ruff configuration options CHANGELOG.md - Comprehensive 0.15.0 release notes 🧪 Test Results All tests pass on all platforms: ✅ Linux (Python 3.10, 3.11, 3.12, 3.13) ✅ macOS (Python 3.10, 3.11, 3.12, 3.13) ✅ Windows (Python 3.10, 3.11, 3.12, 3.13) Test suites (9/9 passing): autopep8 (8/8 assertions) commands (7/7 assertions) folding (7/7 assertions) lint (8/8 assertions) motion (6/6 assertions) rope (9/9 assertions) ruff_integration (9/9 assertions) simple (4/4 assertions) textobjects (9/9 assertions) Total: 88/88 assertions passing 🔄 Migration Path For users upgrading to 0.15.0: Install Ruff: pip install ruff Review changes: Check MIGRATION_GUIDE.md Optional: Run scripts/migrate_to_ruff.py to convert vimrc Validate: Run scripts/validate_ruff_migration.sh Test: Try :PymodeLint and :PymodeLintAuto Rollback If needed, users can rollback: git checkout v0.14.0 pip install pylint pyflakes pycodestyle mccabe pydocstyle autopep8 🎉 Benefits Performance: 10-100x faster linting Simplicity: One tool instead of seven Maintenance: 77% fewer submodules Modern: Actively maintained, Rust-based Quality: Fewer false positives, better error messages Cross-platform: Tested and verified on Linux, macOS, Windows 📋 Checklist Phase 1: Core Ruff integration Phase 2: Build & distribution updates Phase 3: Configuration migration Phase 4: Dependency cleanup (10 submodules removed) Phase 5: Testing & validation Phase 6: Documentation & migration tools Multi-platform CI testing (Linux, macOS, Windows) Platform-specific fixes and compatibility All tests passing (88/88 assertions) Documentation complete Migration tools created 🔗 Related Issues This PR addresses the need to modernize the linting infrastructure and reduce maintenance burden by consolidating multiple legacy tools into a single, modern solution. Note: This is a major version bump (0.15.0) due to breaking changes in linting tool availability and configuration options. Users should review the migration guide before upgrading.

Open Graph Description: Implement Ruff to Replace Legacy Linting Infrastructure 🎯 Overview This PR implements a comprehensive migration from legacy linting tools (pylint, pyflakes, pycodestyle, mccabe, pydocstyle, pylama,...

X Description: Implement Ruff to Replace Legacy Linting Infrastructure 🎯 Overview This PR implements a comprehensive migration from legacy linting tools (pylint, pyflakes, pycodestyle, mccabe, pydocstyle, pylama,...

Opengraph URL: https://github.com/python-mode/python-mode/pull/1192

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:57ed86ef-e2fa-0d72-4099-90a19a415955
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-idC23C:2B11DB:FDFEB6:15BB22D:69694007
html-safe-nonce947cf6f857663eb12d28db792fee9d814d44c2593d44d884500ddeab37fe0f36
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjNDOjJCMTFEQjpGREZFQjY6MTVCQjIyRDo2OTY5NDAwNyIsInZpc2l0b3JfaWQiOiIxMjU5NTY1NTIyODYwMTk1ODQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac14702180e0f268c09b0f47d9aceea45417be6771f0d82b276d241d499b9fb974
hovercard-subject-tagpull_request:3017576293
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-mode/python-mode/pull/1192/checks
twitter:imagehttps://avatars.githubusercontent.com/u/192702?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/192702?s=400&v=4
og:image:altImplement Ruff to Replace Legacy Linting Infrastructure 🎯 Overview This PR implements a comprehensive migration from legacy linting tools (pylint, pyflakes, pycodestyle, mccabe, pydocstyle, pylama,...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d
turbo-cache-controlno-preview
go-importgithub.com/python-mode/python-mode git https://github.com/python-mode/python-mode.git
octolytics-dimension-user_id13965098
octolytics-dimension-user_loginpython-mode
octolytics-dimension-repository_id2408911
octolytics-dimension-repository_nwopython-mode/python-mode
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id2408911
octolytics-dimension-repository_network_root_nwopython-mode/python-mode
turbo-body-classeslogged-out env-production page-responsive full-width full-width-p-0
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released69ac0477df0f87da03b8b06cebd187012d7a930
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-mode/python-mode/pull/1192/checks#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-mode%2Fpython-mode%2Fpull%2F1192%2Fchecks
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-mode%2Fpython-mode%2Fpull%2F1192%2Fchecks
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=python-mode%2Fpython-mode
Reloadhttps://github.com/python-mode/python-mode/pull/1192/checks
Reloadhttps://github.com/python-mode/python-mode/pull/1192/checks
Reloadhttps://github.com/python-mode/python-mode/pull/1192/checks
python-mode https://github.com/python-mode
python-modehttps://github.com/python-mode/python-mode
Please reload this pagehttps://github.com/python-mode/python-mode/pull/1192/checks
Notifications https://github.com/login?return_to=%2Fpython-mode%2Fpython-mode
Fork 768 https://github.com/login?return_to=%2Fpython-mode%2Fpython-mode
Star 5.5k https://github.com/login?return_to=%2Fpython-mode%2Fpython-mode
Code https://github.com/python-mode/python-mode
Issues 37 https://github.com/python-mode/python-mode/issues
Pull requests 1 https://github.com/python-mode/python-mode/pulls
Actions https://github.com/python-mode/python-mode/actions
Projects 0 https://github.com/python-mode/python-mode/projects
Wiki https://github.com/python-mode/python-mode/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python-mode/python-mode/security
Please reload this pagehttps://github.com/python-mode/python-mode/pull/1192/checks
Insights https://github.com/python-mode/python-mode/pulse
Code https://github.com/python-mode/python-mode
Issues https://github.com/python-mode/python-mode/issues
Pull requests https://github.com/python-mode/python-mode/pulls
Actions https://github.com/python-mode/python-mode/actions
Projects https://github.com/python-mode/python-mode/projects
Wiki https://github.com/python-mode/python-mode/wiki
Security https://github.com/python-mode/python-mode/security
Insights https://github.com/python-mode/python-mode/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython-mode%2Fpython-mode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython-mode%2Fpython-mode%2Fissues%2Fnew%2Fchoose
diraolhttps://github.com/diraol
develophttps://github.com/python-mode/python-mode/tree/develop
dro/implement_ruffhttps://github.com/python-mode/python-mode/tree/dro/implement_ruff
Conversation 7 https://github.com/python-mode/python-mode/pull/1192
Commits 32 https://github.com/python-mode/python-mode/pull/1192/commits
Checks 13 https://github.com/python-mode/python-mode/pull/1192/checks
Files changed https://github.com/python-mode/python-mode/pull/1192/files
Please reload this pagehttps://github.com/python-mode/python-mode/pull/1192/checks
Please reload this pagehttps://github.com/python-mode/python-mode/pull/1192/checks
Implement RUFF to replace many of the dependencies https://github.com/python-mode/python-mode/pull/1192/checks#top
Please reload this pagehttps://github.com/python-mode/python-mode/pull/1192/checks
Python-mode Tests on: pull_request https://github.com/python-mode/python-mode/actions/runs/20464027990
Test on Linux (Python 3.10) https://github.com/python-mode/python-mode/actions/runs/20464027990/job/58803217252?pr=1192
Test on Linux (Python 3.11) https://github.com/python-mode/python-mode/actions/runs/20464027990/job/58803217238?pr=1192
Test on Linux (Python 3.12) https://github.com/python-mode/python-mode/actions/runs/20464027990/job/58803217248?pr=1192
Test on Linux (Python 3.13) https://github.com/python-mode/python-mode/actions/runs/20464027990/job/58803217251?pr=1192
Test on macOS (Python 3.10) https://github.com/python-mode/python-mode/actions/runs/20464027990/job/58803217249?pr=1192
Test on macOS (Python 3.11) https://github.com/python-mode/python-mode/actions/runs/20464027990/job/58803217285?pr=1192
Test on macOS (Python 3.12) https://github.com/python-mode/python-mode/actions/runs/20464027990/job/58803217278?pr=1192
Test on macOS (Python 3.13) https://github.com/python-mode/python-mode/actions/runs/20464027990/job/58803217296?pr=1192
Test on Windows (Python 3.10) https://github.com/python-mode/python-mode/actions/runs/20464027990/job/58803217244?pr=1192
Test on Windows (Python 3.11) https://github.com/python-mode/python-mode/actions/runs/20464027990/job/58803217246?pr=1192
Test on Windows (Python 3.12) https://github.com/python-mode/python-mode/actions/runs/20464027990/job/58803217245?pr=1192
Test on Windows (Python 3.13) https://github.com/python-mode/python-mode/actions/runs/20464027990/job/58803217255?pr=1192
Generate Test Summary https://github.com/python-mode/python-mode/actions/runs/20464027990/job/58803341629?pr=1192
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.