Skip to content

Commit

Permalink
v2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
GitRon committed Jun 21, 2024
1 parent a28ba7c commit f55ed31
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 13 deletions.
14 changes: 9 additions & 5 deletions .ambient-package-update/templates/snippets/installation.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@
- Add this block to your loggers in your main Django `settings.py` to show logs in your console.

```python
"django_migration_zero": {
"handlers": ["console"],
"level": "INFO",
"propagate": True,
},
LOGGING = {
"loggers": {
"django_migration_zero": {
"handlers": ["console"],
"level": "INFO",
"propagate": True,
},
},
}
```
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ repos:
# Run the Ruff formatter.
- id: ruff-format

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies:
- black==24.4.2
files: '(?:README\.md|docs\/.*\.(?:md|rst))'

- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
hooks:
Expand Down
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

* *2.0.3* (2024-06-21)
* Linted docs with `blacken-docs` via `ambient-package-update`

* *2.0.2* (2024-06-20)
* Internal updates via `ambient-package-update`

Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,15 @@ fixing squashed migrations you won't need, you can use the "migration zero" patt
- Add this block to your loggers in your main Django `settings.py` to show logs in your console.

```python
"django_migration_zero": {
"handlers": ["console"],
"level": "INFO",
"propagate": True,
},
LOGGING = {
"loggers": {
"django_migration_zero": {
"handlers": ["console"],
"level": "INFO",
"propagate": True,
},
},
}
```

## Contribute
Expand Down
2 changes: 1 addition & 1 deletion django_migration_zero/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
Holistic implementation of "migration zero" pattern for Django covering local changes and in-production database adjustments.
"""

__version__ = "2.0.2"
__version__ = "2.0.3"
1 change: 0 additions & 1 deletion docs/features/02_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ LOGGING = {
"level": "INFO",
"propagate": True,
},
...
},
}
```
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dev = [
'm2r2==0.3.3.post2',
'mistune<2.0.0',
'flit~=3.9',
'ambient-package-update~=24.6.3',
'ambient-package-update~=24.6.4',
'unittest-parametrize~=1.3',
]

Expand Down

0 comments on commit f55ed31

Please sign in to comment.