Skip to main content

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

  1. Install with pip: pip install aineko_style
  2. 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
      

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


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.2.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

aineko_style-0.0.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file aineko_style-0.0.2.tar.gz.

File metadata

  • Download URL: aineko_style-0.0.2.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/23.2.0

File hashes

Hashes for aineko_style-0.0.2.tar.gz
Algorithm Hash digest
SHA256 62dcd950d2b1819dffdc404d89174e486ebc79e16f46d82ec02ea94d124d0a29
MD5 fbbed5a725660e61af68ca93f666da1a
BLAKE2b-256 0e9e000a4de83c48e49b34792801a22a6d4613f7228d1585e0faedf326544f94

See more details on using hashes here.

File details

Details for the file aineko_style-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: aineko_style-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/23.2.0

File hashes

Hashes for aineko_style-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6c6d5d7681e3010c16ebb51d7e1aa659cc493cf4ea56b57dca28a09a0b5676cc
MD5 066ece47e4e9051888cc227ff16a9012
BLAKE2b-256 2b4b7f55b607c9644b68528c84c67a56f1952fbf3ae43a7cafef8d6f5bf13e3b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page