/flake8-stash

A collection of flake8 checks

Primary LanguagePythonMIT LicenseMIT

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.