Bastet Python Developers Tools (https://github.com/mewbotorg/bastet)
Project description
Bastet
Bastet, the cat god, takes all of our test and puts them in one basket.
TODO: Write description.
Purpose
While developing mewbot we built a number of tools to assist with development. This mostly consist of tool chains for
- automatically reformatting code
- running the linters, include type checking, style guides, and security auditing
The aim of these tools is that, if you run them on a code base, you should end up with something which conforms to MewBot's guidelines.
Usage
The dev tools uses path based auto-discovery to locate the relevant code.
Python modules will be discovered in ./src
and ./plugins/*/src
.
Test cases will be discovered in ./tests
and ./plugins/*/tests
.
If your project is in that src-dir
layout, you can install the dev tools
and then run any of the toolchains.
pip install bastet
bastet --help
bastet format # Automated formatting, using black/isort/ruff
bastet lint # Code style and type linting, using black/flake8/ruff/mypy/pylint
bastet audit # Audit and security checks, using bandit
We also recommend that you set up mewbot-prefilght
as a
pre-commit or pre-push hook.
Default Configuration
TODO: Write this section
The recommended pyproject.toml
for starter projects can be found in
Advance Config and Debug
You can check what the configuration is doing with --debug
the debug flag on
a run, or by running python -m bastet.config
to just run the configuration steps.
Integrating with CI
TODO: Write this section
Integrating with Sonar
TODO: Write this section
Extending with Custom Tools
TODO: Write this section
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
Hashes for bastet-0.0.20.dev11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7621b5c6033f48126287099968c4db149b55f66a4cf73e4726d3b92b2bb05b52 |
|
MD5 | 0023ae2fb2e3e350328b5799df2139a9 |
|
BLAKE2b-256 | 1cb31e9b2b212441c9c31fa68788d26f2f2cc2bbde1196f7a2ea809e7722b7ca |