Skip to main content

A collection of flake8 checks.

Project description

flake8-stash

A collection of flake8 checks.

GitHub Workflow Status PyPI PyPI PyPI - License Code style: black

List of checks

  • STA011: The use of fields = '__all__' in model forms is not allowed. List the fields one by one instead.
  • STA012: The use of exclude in model forms is not allowed. Use fields instead.
  • STA021: The use of fields = '__all__' in model serializers is not allowed. List the fields one by one instead.
  • STA022: The use of exclude in model serializers is not allowed. Use fields instead.
  • STA031: The use of fields = '__all__' in filtersets is not allowed. List the fields one by one instead.
  • STA032: The use of exclude in filtersets is not allowed. Use fields instead.
  • STA041: The use of fields = '__all__' is not allowed. List the fields one by one instead.
  • STA042: The use of exclude is not allowed. Use fields instead.

Installation

Install with pip

pip install flake8-stash

Usage with pre-commit

repos:
      - repo: https://github.com/pycqa/flake8
    rev: '6.0.0'
    hooks:
      - id: flake8
        additional_dependencies: [ "flake8-stash==0.9.0" ]

License

This project is MIT licensed.

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

flake8_stash-0.9.0.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

flake8_stash-0.9.0-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

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