boa-restrictor

Contents:

  • Disclaimer
  • Configuration
  • Python rules
  • Django rules
    • Prohibit usage of TestCase.assertRaises() (DBR001)
    • Don’t import “django.db” in the view layer (DBR002)
    • Prohibit usage of “assertTrue” and “assertFalse” in Django unittests (DBR003)
    • Prohibit usage of “datetime.now” (DBR004)
    • Don’t import “django.db” in the API layer (DBR005)
    • Avoid using old tuple-based Django model choices (DBR006)
    • CharField must have max_length set (DBR007)
  • Changelog
boa-restrictor
  • Django rules
  • View page source

Django rules

Contents:

  • Prohibit usage of TestCase.assertRaises() (DBR001)
  • Don’t import “django.db” in the view layer (DBR002)
  • Prohibit usage of “assertTrue” and “assertFalse” in Django unittests (DBR003)
  • Prohibit usage of “datetime.now” (DBR004)
  • Don’t import “django.db” in the API layer (DBR005)
  • Avoid using old tuple-based Django model choices (DBR006)
  • CharField must have max_length set (DBR007)
Previous Next

© Copyright 2026, Ambient Innovation: GmbH.

Built with Sphinx using a theme provided by Read the Docs.