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

Installation

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

  - repo: https://github.com/ambient-innovation/boa-restrictor
    rev: v1.10.3
    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.12.1.tar.gz (41.0 kB view details)

Uploaded Source

Built Distributions

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

boa_restrictor-1.12.1-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

boa_restrictor-1.12.1-py2.py3-none-any.whl (25.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: boa_restrictor-1.12.1.tar.gz
  • Upload date:
  • Size: 41.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for boa_restrictor-1.12.1.tar.gz
Algorithm Hash digest
SHA256 4f510aeebbf944b48b94a223baaf9e1ea53e4569dd46e616649418e946c39013
MD5 6739482c69ea88230a06e38eb053ec82
BLAKE2b-256 4adef7dd5a55b93b7620e8d7cb078067c73a82c7ea9b55426b1b62209bc716f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for boa_restrictor-1.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b9dd1ff48a9a79dc1c22de4e27a4282400fa7dc1937575262c2b847e20e0d1e
MD5 0e3f181d99c81c6666c08a02202f4297
BLAKE2b-256 6579f3e59d66bf8b70740bd7853f482c03a0ffd709f1492a79e01656d0dd1064

See more details on using hashes here.

File details

Details for the file boa_restrictor-1.12.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for boa_restrictor-1.12.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f175f2fa5ecf800618fedc80cbf0e629f0990ba4130a1fda6deeea60f55d7fc0
MD5 9654d7e09f5b02957928a8d767d87556
BLAKE2b-256 c7fc85132f31b2faa8f670354814a810b27c42e30d97024f75058fe58c7f013f

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