Skip to main content

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

Metadata

Release files for p8 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for p8 0.1.3
File Size Uploaded
p8-0.1.3.tar.gz 2.6 kB Details

Release files / p8-0.1.3.tar.gz

Download URL p8-0.1.3.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0a4f047be6e7bbc63cfb0a592220326ab10867008ed519a4ba9aa7644cb583f2
BLAKE2b-256 checksum
How to use checksums
87afc1a99a7c0ad5cd8e9bfba8a024c1dd2b0e58bce1125a2af82a4356d26502
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page