Skip to main content

A custom Python and Django linter from Ambient

Project description

PyPI release Downloads Coverage Linting Coding Style Documentation Status

Welcome to the boa-restrictor - a custom Python and Django linter from Ambient

PyPI | GitHub | Full documentation

Creator & Maintainer: Ambient Digital

Installation

Add the following to your .pre-commit-config.yaml file:

  - repo: https://github.com/ambient-innovation/boa-restrictor
    rev: v1.12.5
    hooks:
      - id: boa-restrictor
        args: [ --config=pyproject.toml ]

Now you can run the linter manually:

pre-commit run --all-files boa-restrictor

Publish to ReadTheDocs.io

  • Fetch the latest changes in GitHub mirror and push them
  • Trigger new build at ReadTheDocs.io (follow instructions in admin panel at RTD) if the GitHub webhook is not yet set up.

Publish to PyPi

  • Update documentation about new/changed functionality

  • Update the Changelog

  • Increment version in main __init__.py

  • Create pull request / merge to main

  • This project uses the flit package to publish to PyPI. Thus, publishing should be as easy as running:

    flit publish
    

    To publish to TestPyPI use the following to ensure that you have set up your .pypirc as shown here and use the following command:

    flit publish --repository testpypi
    

Create new version for pre-commit

To be able to use the latest version in pre-commit, you have to create a git tag for the current commit. So please tag your commit and push it to GitHub.

Maintenance

Please note that this package supports the ambient-package-update. So you don't have to worry about the maintenance of this package. This updater is rendering all important configuration and setup files. It works similar to well-known updaters like pyupgrade or django-upgrade.

To run an update, refer to the documentation page of the "ambient-package-update".

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

boa_restrictor-1.13.0.tar.gz (87.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

boa_restrictor-1.13.0-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file boa_restrictor-1.13.0.tar.gz.

File metadata

  • Download URL: boa_restrictor-1.13.0.tar.gz
  • Upload date:
  • Size: 87.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.1

File hashes

Hashes for boa_restrictor-1.13.0.tar.gz
Algorithm Hash digest
SHA256 e4b56e47bd490f41bed13f653a0db4ce424a5f8310203f5dc9aef434dd85f49f
MD5 e254e5fffc3e8c7b27d1c66cf0d4f8c9
BLAKE2b-256 2651d191f74455418c273955399af2ce2d9b35c61f4119ee3809c0ce0bd4d7d5

See more details on using hashes here.

File details

Details for the file boa_restrictor-1.13.0-py3-none-any.whl.

File metadata

File hashes

Hashes for boa_restrictor-1.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 297389f5649f763b3aeb1847e8a2584e0c39fc05fbc46e8b6492db9409fadc0c
MD5 f35be09ccdd00d41021bed264145cb31
BLAKE2b-256 90ca13329cb3fb6cc5ca4fae0fd57b4117f0a1af85b5610470bb3a4ffb3d1ac9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page