You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,17 @@
2
2
3
3
### Unreleased
4
4
5
+
### 0.9.0
6
+
7
+
- Disable checks with `extra-checks-disable-next-line` comment
8
+
- Deprecate `@ignore_checks`
9
+
- Make ast parsing lazy
10
+
- Add global log level
11
+
5
12
### 0.8.0
6
13
7
14
- Add checks:
8
-
-`field-choices-constraint`
15
+
-`field-choices-constraint`
9
16
10
17
### 0.7.1
11
18
@@ -15,13 +22,13 @@
15
22
16
23
- Check `field-foreign-key-index` now accepts `when: indexes` instead of `when: unique_toegether` because now it search for duplicate indexes in `Meta.indexes`, `Meta.unique_toegether` and `Meta.constraints`
Another way is to specify type of the object that need to be ignored in `ignore_types` option:
@@ -77,10 +84,10 @@ EXTRA_CHECKS = {
77
84
-**field-null** - don't pass `null=False` to model fields (this is django default).
78
85
-**field-foreign-key-db-index** - ForeignKey fields must specify `db_index` explicitly (to apply only to fields in indexes: `when: indexes`).
79
86
-**field-default-null** - If field nullable (`null=True`), then
80
-
`default=None` argument is redundant and should be removed.
81
-
**WARNING** Be aware that setting is database dependent,
82
-
eg. Oracle interprets empty strings as nulls as a result
83
-
django uses empty string instead of null as default.
87
+
`default=None` argument is redundant and should be removed.
88
+
**WARNING** Be aware that setting is database dependent,
89
+
eg. Oracle interprets empty strings as nulls as a result
90
+
django uses empty string instead of null as default.
84
91
-**field-choices-constraint** - Fields with choices must have companion CheckConstraint to enforce choices on database level, [details](https://adamj.eu/tech/2020/01/22/djangos-field-choices-dont-constrain-your-data/).
0 commit comments