{"id":28958407,"url":"https://github.com/pratikmandge/python-lint-fixer","last_synced_at":"2026-04-09T02:02:54.927Z","repository":{"id":300582806,"uuid":"1006525168","full_name":"pratikmandge/python-lint-fixer","owner":"pratikmandge","description":"Python Lint Fixer is a powerful Visual Studio Code extension designed to automatically format and lint Python code according to industry best practices. Built with TypeScript and the VS Code Extension API, it provides real-time feedback and automatic fixes for common Python coding issues. ","archived":false,"fork":false,"pushed_at":"2025-06-22T15:04:26.000Z","size":15801,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-22T15:21:35.006Z","etag":null,"topics":["javascript","python3","shell","typescript","vscode-extension"],"latest_commit_sha":null,"homepage":"https://github.com/pratik-mandge/python-lint-fixer/issues","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pratikmandge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-22T13:19:28.000Z","updated_at":"2025-06-22T15:04:29.000Z","dependencies_parsed_at":"2025-06-22T15:21:47.884Z","dependency_job_id":"d64e55cc-c959-4bb3-90a8-b1ad68da0fd1","html_url":"https://github.com/pratikmandge/python-lint-fixer","commit_stats":null,"previous_names":["pratikmandge/python-lint-fixer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pratikmandge/python-lint-fixer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikmandge%2Fpython-lint-fixer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikmandge%2Fpython-lint-fixer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikmandge%2Fpython-lint-fixer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikmandge%2Fpython-lint-fixer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pratikmandge","download_url":"https://codeload.github.com/pratikmandge/python-lint-fixer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikmandge%2Fpython-lint-fixer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","python3","shell","typescript","vscode-extension"],"created_at":"2025-06-23T23:00:51.631Z","updated_at":"2026-04-09T02:02:54.881Z","avatar_url":"https://github.com/pratikmandge.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐍 Python Lint Fixer\n\n[![Version](https://img.shields.io/badge/version-0.1.0-blue.svg)](https://marketplace.visualstudio.com/items?itemName=pratik_mandge.python-lint-fixer)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)\n[![VS Code](https://img.shields.io/badge/VS%20Code-1.60.0+-blue.svg)](https://code.visualstudio.com/)\n\nA comprehensive Python linting and formatting extension for Visual Studio Code that enforces consistent code style and automatically fixes common issues.\n\n[![Python Lint Fixer Demo](python-lint-fixer-extension.gif)](python-lint-fixer-extension.gif)\n\n## ✨ Features\n\n### 🎯 **Smart Import Organization**\n- **System → External → Project** import grouping\n- Automatic sorting and deduplication\n- Proper spacing between import groups\n- Multi-line import support with parentheses\n\n### 🔧 **Code Formatting**\n- **Quote standardization** (double to single quotes)\n- **Line length management** (85 characters with smart wrapping)\n- **Function/class formatting** with proper indentation\n- **Spacing rules** (2 lines before classes, 1 line before methods)\n\n### 🚀 **Real-time Linting**\n- **Green highlighting** for issues in the editor\n- **Hover messages** with detailed explanations\n- **Problems panel** integration\n- **Auto-fix on save** (configurable)\n\n### 🎨 **User Experience**\n- **Status bar button** for quick access\n- **Keyboard shortcuts** (`Ctrl+Shift+Q`)\n- **Context menu** integration\n- **Progress indicators** during formatting\n\n## 🚀 Quick Start\n\n### Installation\n\n1. **Download the VSIX file** from releases\n2. **Install in VS Code:**\n   ```bash\n   code --install-extension python-lint-fixer-0.1.0.vsix\n   ```\n3. **Reload VS Code** and open a Python file\n4. **Click the lightbulb button** in the status bar or press `Ctrl+Shift+Q`\n\n### Usage\nBefore:\n```python\nimport random,math\ndef generate_values():\n    for i in range(0,10):print(i*random.random())\nclass Dummy:pass\n```\n\nAfter:\n```python\nimport math\nimport random\n\n\ndef generate_values():\n    for i in range(0, 10):\n        print(i * random.random())\n\n\nclass Dummy:\n    pass\n```\n\n## 🎯 Error Codes\n\n| Code | Description | Auto-fixable |\n|------|-------------|--------------|\n| PLF001 | Line exceeds maximum length | ✅ |\n| PLF002 | Use single quotes instead of double quotes | ✅ |\n| PLF003 | Multiple imports should be on separate lines | ✅ |\n| PLF004 | Classes should be preceded by 2 blank lines | ✅ |\n| PLF005 | Methods should be preceded by 1 blank line | ✅ |\n| PLF006 | File should end with a blank line | ✅ |\n| PLF007 | Import groups should be separated by at least 1 blank line | ✅ |\n\n## 🔧 Commands\n\n- **`python-lint-fixer.fixFile`** - Fix current Python file\n- **`python-lint-fixer.fixWorkspace`** - Fix all Python files in workspace\n\n## ⌨️ Keyboard Shortcuts\n\n- **`Ctrl+Shift+Q`** - Fix current Python file (when Python file is active)\n\n## 🎨 Import Organization Rules\n\n### System Imports\n```python\nimport os\nimport sys\nfrom datetime import datetime\n```\n\n### External Libraries\n```python\nimport django\nimport requests\nfrom flask import Flask\n```\n\n### Project Imports (grouped by app)\n```python\nfrom users.models import User\nfrom users.views import UserView\n\nfrom project.models import Project\nfrom project.handlers import ProjectHandler\n```\n\n## 🛠️ Development\n\n### Prerequisites\n- Node.js (v14 or higher)\n- npm\n- VS Code\n\n### Building from Source\n\n1. **Clone the repository:**\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd python-lint-fixer\n   ```\n\n2. **Install dependencies:**\n   ```bash\n   npm install\n   ```\n\n3. **Compile the extension:**\n   ```bash\n   npm run compile\n   ```\n\n4. **Package the extension:**\n   ```bash\n   npx vsce package\n   ```\n\n5. **Install the extension:**\n   ```bash\n   code --install-extension python-lint-fixer-0.1.0.vsix\n   ```\n\n### Project Structure\n\n```\npython-lint-fixer/\n├── src/\n│   ├── extension.ts          # Main extension entry point\n│   ├── pythonLinter.ts       # Linting logic and diagnostics\n│   └── pythonFormatter.ts    # Auto-fixing functionality\n├── test/                     # Test files\n├── logo.svg                  # Extension logo\n├── package.json              # Extension manifest\n├── README.md                 # This file\n└── LICENSE                   # MIT License\n```\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🙏 Acknowledgments\n\n- Built with [VS Code Extension API](https://code.visualstudio.com/api)\n- Inspired by Python community coding standards\n- Follows [PEP 8](https://www.python.org/dev/peps/pep-0008/) guidelines\n\n## 📞 Support\n\n- **Issues:** [GitHub Issues](https://github.com/pratikmandge/Python-Lint-Fixer/issues)\n- **Documentation:** [Wiki](https://github.com/pratikmandge/Python-Lint-Fixer/blob/master/wiki.md)\n\n---\n\n**Made with ❤️ by Pratik Mandge**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpratikmandge%2Fpython-lint-fixer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpratikmandge%2Fpython-lint-fixer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpratikmandge%2Fpython-lint-fixer/lists"}