Custom pylint rules for aineko-dev codebases.
Project description
aineko_style
A pylint checker for misc style conventions
We adopt the Google Python Style Guide with some modifications. This pylint checker is intended to enforce those conventions.
Installation
- Install with pip:
pip install aineko_style
- Once installed you can either run it directly from the command line:
pylint --load-plugins=aineko_style.checker your_module.py
or add it to the pylint configuration file. Example:- pyproject.toml:
[tool.pylint.main] load-plugins = ["aineko_style.checker"]
- pylintrc:
[MAIN] load-plugins=aineko_style.checker
- pyproject.toml:
Features
Warning Messages
Message ID | Description | Message symbol |
---|---|---|
C0001 | Docstring contains types. Types should be part of the function definition. | docstring-contains-types |
Style Conventions
C0001 docstring-contains-types
Yes:
def message(index:int, content:str):
"""short description
Args:
index: The index of the message.
content: The content of the message.
"""
...
No:
def message(index:int, content:str):
"""short description
Args:
index (int): The index of the message.
content (str): The content of the message.
"""
...
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
aineko_style-0.0.1.tar.gz
(11.8 kB
view hashes)
Built Distribution
Close
Hashes for aineko_style-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c45315c28505212ba490746959a45db28585803d3c421972b2790e27e457f66 |
|
MD5 | 50294224bae4d6724599bfcdbab05d72 |
|
BLAKE2b-256 | 0408bed09a6e3d281114142d4ac2ec7ae1e9e48a15150f20fe012f5d60e0114a |