Skip to main content

mylint

My really simple rendition of how a linter works.

This original version was written for my AST article. Since then I've added tests and turned it into a package. Check the original branch for the original version of this, that was used in the article.

Usage

mylint [...file names]

Example:

$ mylint tests/testcode.py
testcode.py:17:15: W001: Set contains duplicate item: 1
testcode.py:12:12: W001: Set contains duplicate item: 'PUT'
testcode.py:1:0: W002: Unused variable: 's'
testcode.py:5:4: W002: Unused variable: 'var'
testcode.py:17:0: W002: Unused variable: 's2'

Development / Testing

Setup a virtual environment, and install the package with:

pip install -r requirements-dev.txt

Then run pytest to run tests. Now, have fun playing with the code and tests!

Type Checking

Run mypy .

Metadata

Release files for mylint 0.1.0

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

Source distribution (sdist)

Source distribution for mylint 0.1.0
File Size Uploaded
mylint-0.1.0.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mylint 0.1.0
File Interpreter ABI Platform
mylint-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / mylint-0.1.0.tar.gz

Download URL mylint-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
eadbff99ea2646cc82312f592711caddfaae6837a9afcec712c8b647b26b6e58
BLAKE2b-256 checksum
How to use checksums
255215a1a69a1ab2ea87bdd5220e4fa6ec94de3f280397ac21e2051762b73c46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.7

Release files / mylint-0.1.0-py3-none-any.whl

Download URL mylint-0.1.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
736b6782f6b0422f2e9fb067668e29a50cbeb97d886fd6648e44a6c973e771b3
BLAKE2b-256 checksum
How to use checksums
d1dc5d3db6c5c3bc6c62fc56e39f16fe81bd34c35105c225877928b11e116a97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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