- Python Lint
- Use your favourite Python linters to highlight your coding flaws.
- 2307 Installs
-
This extension is allowed to:
- Launch Subprocesses
Readme
Python Lint
This extension brings your favourite Python linters to Nova, a Mac native code editor.
Supports the following linters: 1. flake8 2. mypy 3. pylint
Requirements
Depending on which linter you want to use, you need flake8/mypy/pylint installed:
pip install flake8 mypy pylint
Configuration
In the Extension Library (CMD + Shift + 2
) -> Python Lint
, you can specify the paths to the installed linters. Not sure where they are located? Run:
which flake8
which mypy
which pylint
Once the paths are configured, you're all set!
Development
Is your favourite linter not in here? Or did you run into a problem? Create an issue. PRs are welcome!
Changelog
ChangeLog
Version 0.3.1
Bugfixes
- Reverts workaround for Nova (1.3 and above) where the IssueParser put issues on wrong lines. Version 1.2 and below still use said workaround.
Version 0.3
Features
- New preference option for all linters: change issue severity (#2)
- New preference option for MyPy: follow or skip imports (#7)
Version 0.2.1
Bugfixes
- Fix issue where issues are show on one line above the actual issue.
- Potential fix for MyPy showing issues across files
Other
- Add more
console.log
s to help debugging
Version 0.2
Features
- Use project configuration file by default (issue #1)
- Add lint on save option (thanks @smallgram)
- Add more extensive logging (thanks @smallgram)
Bugfixes
- Fix issue with MyPy showing results from different files (thanks for reporting @drcongo & ReagentX issue #4 and #8)
Version 0.1.1
- Updated icon
- Remove dummy preference setting for issue severity
Version 0.1
Initial release with support for: - flake8 - mypy - pylint - CLI arguments for all linters - Option to enable/disable linters