mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
models: Rename zerver/models.py to zerver/models/__init__.py.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
9d11f2c8fc
commit
e601d0ae7c
@@ -409,7 +409,7 @@ python_rules = RuleList(
|
||||
},
|
||||
{
|
||||
"pattern": r": *(?!Optional)[^\n ].*= models[.].*null=True",
|
||||
"include_only": {"zerver/models.py"},
|
||||
"include_only": {"zerver/models/"},
|
||||
"description": "Model variable with null=true not annotated as Optional.",
|
||||
"good_lines": [
|
||||
"desc: Optional[Text] = models.TextField(null=True)",
|
||||
@@ -425,7 +425,7 @@ python_rules = RuleList(
|
||||
{
|
||||
"pattern": r": *Optional.*= models[.].*\)",
|
||||
"exclude_pattern": "null=True",
|
||||
"include_only": {"zerver/models.py"},
|
||||
"include_only": {"zerver/models/"},
|
||||
"description": "Model variable annotated with Optional but variable does not have null=true.",
|
||||
"good_lines": [
|
||||
"desc: Optional[Text] = models.TextField(null=True)",
|
||||
|
||||
Reference in New Issue
Block a user