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
Built Distribution
File details
Details for the file tryceratops-0.1.9.tar.gz
.
File metadata
- Download URL: tryceratops-0.1.9.tar.gz
- Upload date:
- Size: 543.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2412ae943c3a4f01bc8a9ed6d232b0090135c2822cd2ea8f12eaff753de3c2d8 |
|
MD5 | 07bacc7133d021ab1537ef45021bd719 |
|
BLAKE2b-256 | d73fe2be88dd493b0de96a92efda92a2c42a2db5f3f5a927a073f5c89ed9281c |
File details
Details for the file tryceratops-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: tryceratops-0.1.9-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be51282838add4673f92cf033cf4e841f38ca679be40e603adb80ff353d7d8f4 |
|
MD5 | baa3411c1cfb3759dafa0e4a44f79b71 |
|
BLAKE2b-256 | a415b480bc77e4e77f92c75847059a6bf19dc5554295209c7d5df91ec31ab34a |