A linter to manage your exception like a PRO!
Project description
Manage your exceptions in Python like a PRO
Currently in BETA. Inspired by this blog post.
“For those who like dinosaurs 🦖 and clean try/except ✨ blocks.”
Installation and usage
Installation
pip install tryceratops
Usage
tryceratops [filename or dir]
You can enable experimental analyzers by running:
tryceratops --experimental [filename or dir]
You can ignore specific violations by using: --ignore TCXXX
repeatedly:
tryceratops --ignore TC201 --ignore TC202
You can exclude dirs by using: --exclude dir/path
repeatedly:
tryceratops --exclude tests --exclude .venv
Violations
All violations and its descriptions can be found in docs.
Pre-commit
If you wish to use pre-commit, add this:
- repo: https://github.com/guilatrova/tryceratops
rev: v0.1.9
hooks:
- id: tryceratops
License
MIT
Credits
Thanks to God for the inspiration 🙌 ☁️ ☀️
Logo icon was made by https://www.freepik.com
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
tryceratops-0.1.9.tar.gz
(543.3 kB
view hashes)
Built Distribution
Close
Hashes for tryceratops-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be51282838add4673f92cf033cf4e841f38ca679be40e603adb80ff353d7d8f4 |
|
MD5 | baa3411c1cfb3759dafa0e4a44f79b71 |
|
BLAKE2b-256 | a415b480bc77e4e77f92c75847059a6bf19dc5554295209c7d5df91ec31ab34a |