An adapter which provides categorization & descriptions on popular linters & checkers
Project description
Python Linter Adapters
Provides bridges for different linters & checkers, mostly Flake8 plugins, as well as some bridges for Flake8 as Pylint.
Features
- A re-implementation of flake8-for-pycharm package:
pylint-jsonFlake8 formatter -- emulates Pylint behaviour as a Flake8 formatterflake8_as_pylint-- emulates (partially) Pylint CLI with the Flake8 backend
- An API for providing categories & severities for the popular Flake8 plugins:
- All bundled plugins from the Flake8 base package
- flake8-bandit
- flake8-broken-line
- flake8-bugbear
- flake8-commas
- flake8-comprehensions
- flake8-datetimez
- flake8-debugger
- flake8-docstrings
- flake8-eradicate
- flake8-isort
- flake8-quotes
- flake8-rst-docstrings
- flake8-string-format
- wemake-python-styleguide
PyCharm Integration
This package is inspired by flake8-for-pycharm which adapts Flake8 output as Pylint's JSON output. The original project stopped to work by now due to changes in Flake8 formatters API (or has it ever worked?).
To setup PyCharm integration:
- Install Pylint Plugin
- In the Settings, select
flake8_as_pylintexecutable instead ofpylintexecutable: - Any extra parameters would be passed directly to Flake8.
The only exceptions are:
--output-format/-f-- passed by PyCharm. Would conflict with--format. Supports onlytextandjson--help-msg-- works as in Pylint -- shows info for the specified error codes--flake8-main/-F-- new parameter, can be used to override Flake8's main function. Uses Python EntryPoint format
The results:
// Yes, I am not using those for the personal projects. Have plans to set up my own code style rules.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file linter_adapters-0.1.2.tar.gz.
File metadata
- Download URL: linter_adapters-0.1.2.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7826fbeb52c124fcbceb895645364600b15bda8ec52a54954edc7c8e1d047404
|
|
| MD5 |
5379d161fd9e19382c31bc85c4760424
|
|
| BLAKE2b-256 |
e0fbb9624653f2babfae5ce935734a3ae65accd88a859c013c672c8edfc98659
|
File details
Details for the file linter_adapters-0.1.2-py3-none-any.whl.
File metadata
- Download URL: linter_adapters-0.1.2-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3446680b6e5f9aa29a6fc51dc24296e825bff8ea1ffb56079b3a9e3bb4b32a9
|
|
| MD5 |
e148d406c4a81ef0b7d8bfce12defa2c
|
|
| BLAKE2b-256 |
2183e0b7f392a230f8ed0d1be807ea4042d9e2811ca006dfe52b2ecdd7da95db
|