Linters composer
Project description
🔫 pystolint 🔫
Yet another python linter?
No. It's just a runner for ruff + mypy with these settings
Why?
I'm fed up with:
- Having to copy settings for every single project. (at least until "parent pyproject.toml" is not invented)
- Not being able to apply checks only to git diffs, which makes it hard to add linters to large projects
- Not being able to deprecate certain things and preventing them in new code.
Install
Simple:
pip install pystolint
or
pip install git+ssh://git@github.com/hhru/pystolint.git@master
Dev:
- Clone repo
git clone git@github.com:hhru/pystolint.git ~/projects/pystolint
cd ~/projects/pystolint
python -m venv .venv
source .venv/bin/activate
pip install -e .
- Create global shortcut (/usr/local/bin/pys):
#!/path/to/your/pystolint/.venv/bin/python
import sys
from pystolint.main import main
if __name__ == '__main__':
sys.exit(main())
- Make executable:
chmod +x /usr/local/bin/pys
Usage
Check code:
pys check .
pys check path1 path2
pys check --diff
Format code:
pys format .
pys format path1 path2
Settings
can be specified from cli or pyproject.toml. cli settings have bigger priority
example toml:
[tool.pystolint]
base_toml_path = "/path/to/shared/config.toml"
base_branch_name = "develop"
cli:
--base_toml_path- path or link for replace pystolint default settings--base_branch_name- branch name from which to get diff (default is master)--config- specify path to toml configs (default ispyproject.tomlin current dir)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pystolint-0.1.3.tar.gz
(23.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pystolint-0.1.3-py3-none-any.whl
(21.3 kB
view details)
File details
Details for the file pystolint-0.1.3.tar.gz.
File metadata
- Download URL: pystolint-0.1.3.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b5e01c47d6a3e96ff191335de772823b61ea18b2635082f3ea68070ec3240d8
|
|
| MD5 |
d12e8fc8e288e8bedfb43b6ffc2e4f65
|
|
| BLAKE2b-256 |
c3234fd3290189be92c40537e6c5b5f44cc059f07526f04895cab6b7d4dd158f
|
File details
Details for the file pystolint-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pystolint-0.1.3-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de72f33905e045de1eeb88b9c538b3ca2e8644df8edce03e6197679a0e420161
|
|
| MD5 |
bef0d75fd72be592dd21297659437e0e
|
|
| BLAKE2b-256 |
e8b9093f62dc8991ffe0337d9306110724fc56d6cb09baf164bd08b26eb78c8b
|