Skip to main content

The Python ultimate meta linter

Project description

P8 - The Python ultimate meta linter

Why?

To easily ensuring modern Python code quality in multiple projects.

A new Python developer on Windows may not know:

  • How to set PATH
  • How to invoke command installed via pip: e.g flake8
  • How to install make and write Makefile
  • How to setup git precommit

This program helps ensuring code quality without above hassle, it runs commands by default includes:

  • black
  • flake8
  • mypy - it not only work when type annotation exists, it can detect type by itself for some cases, and detect error like print("%s %s", missing_one_arg).

Install

pip install p8

Usage

  • p8 init creates a config file p8.ini
  • p8 runs all commands defined in p8.ini, order matters.
  • Installing those commands are users responsibility.
  • On Windows, use py -m p8 init and py -m p8 instead.

TODO

  • Test and fully support Windows
  • Add option to install default suite flake8 black mypy
  • Generate Makefile

Authors

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

p8-0.1.3.tar.gz (2.6 kB view hashes)

Uploaded Source

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