Metadata-Version: 2.1
Name: mylint
Version: 0.1.0
Summary: My really simple rendition of how a linter works.
Home-page: https://github.com/tusharsadhwani/mylint
Author: Tushar Sadhwani
Author-email: tushar.sadhwani000@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Provides-Extra: dev
License-File: LICENSE

# mylint

My really simple rendition of how a linter works.

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

[1]: https://sadh.life/post/ast
[2]: https://github.com/tusharsadhwani/mylint/tree/original

## Usage

```console
mylint [...file names]
```

Example:

```console
$ 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:

```bash
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 .`


