David Wobrock
ea227eb364
Bump to 4.1.0
2022-04-24 18:00:55 +02:00
David Wobrock
232c7dd136
Add row to changelog
2022-03-19 20:12:03 +01:00
David Wobrock
c2ad3e6aeb
Allow passing '--sql-analyser' to makemigrations command
2022-03-13 17:54:04 +01:00
David Wobrock
c7d9129db9
Adapt 'warnings-as-errors' option to allow taking migration test codes as input
2022-03-13 17:26:40 +01:00
David Wobrock
a04ecc078a
Update CHANGELOG.md
2022-03-13 16:51:29 +01:00
David Wobrock
5f11f9417f
Refactor logging configuration to both Django management commands lintmigrations and makemigrations
2022-03-13 16:51:29 +01:00
David Wobrock
8e56562771
Bump to 4.0.0
2022-02-20 12:26:31 +01:00
David Wobrock
4fa6a33153
Fix #198 -- Allow using Django settings for linter configuration
2022-02-15 19:21:58 +01:00
David Wobrock
76a55dbb12
Raise when unsupported db vendor, and add option to specify SQL analyser
2022-01-30 15:20:18 +01:00
David Wobrock
71ddadda05
Add funtional tests for lintmigrations command
2022-01-28 21:48:05 +01:00
David Wobrock
85189b7c1d
Refactor config and toml files read into staticmethods
2022-01-28 21:48:05 +01:00
David Wobrock
5a6ddd0d63
Allow overriding any option through config file, and not only a subset
2022-01-28 21:48:05 +01:00
David Wobrock
3219f9cf8a
Handle creating a unique index as adding a unique constraint
2022-01-28 21:23:44 +01:00
David Wobrock
3fbc720650
Add Django 4.0 support
2022-01-28 21:03:12 +01:00
David Wobrock
3da14f769e
Drop Django 3.1 support (ended in 2021)
2022-01-28 21:03:12 +01:00
David Wobrock
bba8cd259b
Add Python 3.10 support
2022-01-28 21:03:12 +01:00
David Wobrock
7280b18098
Drop Python 3.6 which reached EOL December 2021
2022-01-28 21:03:12 +01:00
David Wobrock
3076c88181
Add documentation about dropping a column in multiple steps
2022-01-28 20:39:59 +01:00
David Wobrock
7674a51bc9
Fix #178 -- Don't detect an index creation when the table is being created
2021-12-20 22:38:54 +01:00
David Wobrock
888305caaf
Remove deprecated Python versions from GitHub Actions build
2021-12-20 22:38:30 +01:00
David Wobrock
aef3db3e41
Remove 'Others' mention
2021-12-20 22:03:28 +01:00
David Wobrock
4e279a9450
Add a solution for RunPython import errors
2021-12-20 22:03:28 +01:00
David Wobrock
fbd4b2971f
Add documentation about all implemented backward incompatible migrations
2021-12-20 22:03:28 +01:00
David Wobrock
610e4646b8
Add table deletion case to doc
2021-12-20 22:03:28 +01:00
David Wobrock
0394377db0
Add emoji in backward incompatibilities titles
2021-12-20 22:03:28 +01:00
David Wobrock
410ac91fd3
Update a bit adding a not null column section
2021-12-20 22:03:28 +01:00
David Wobrock
88c7d4cd50
Reformat table in incompatibilites doc
2021-12-20 22:03:28 +01:00
David Wobrock
1f8476fc43
Add details about some backward incompatible operations
...
- adding a NOT NULL column
- dropping a column
- sqlite special case
2021-12-20 22:03:28 +01:00
David Wobrock
967047d4e6
Add type for each migration linter check
...
Add to the docs whether it raises an error or warning by default
2021-12-20 22:03:28 +01:00
David Wobrock
085048d22b
Drop Py2.7, 3.5 and Django 1.11, 2.0, 2.1, 3.0
2021-11-12 17:26:38 +01:00
David Wobrock
70cccda13e
Set dependabot weekly interval and David as assignee
2021-10-22 23:45:11 +02:00
David Wobrock
32ac098a02
The latest mysqlclient release candidate breaks the test suite for older Django versions
2021-10-22 23:40:05 +02:00
David Wobrock
8cf37cd0f2
Bump linting black to 21.8b0
2021-09-13 23:08:35 +02:00
David Wobrock
355852066a
Bump linting isort to 5.9.3
2021-09-13 23:08:35 +02:00
David Wobrock
fce21b71e9
Bump to 3.0.1 and update changelog
2021-08-14 15:26:04 +02:00
David Wobrock
3f0531f349
Bump to 3.0.0
2021-06-26 16:02:38 +02:00
David Wobrock
419f90e728
Fix #119 -- Handle verbosity=0 level correctly and suppress all prints/logs
2021-06-26 13:29:01 +02:00
David Wobrock
12255d9af4
Pin psycopg2 (for testing) <2.9 for GitHub Actions
2021-06-19 18:31:29 +02:00
David Wobrock
fa56196f04
Add PG reindex linting warning and improve some smaller stuff
2021-06-19 18:15:40 +02:00
David Wobrock
6e15f65467
Fix typo in warning variable
2021-06-19 18:15:40 +02:00
David Wobrock
27e492996c
Apply black
2021-06-19 18:15:40 +02:00
David Wobrock
ea89043d8c
Add to documentation
2021-06-19 18:15:40 +02:00
David Wobrock
2bf87c0659
Add Postgresql warning when using DROP INDEX without CONCURRENTLY keyword
2021-06-19 18:15:40 +02:00
David Wobrock
70db245df3
Adapt migration linter to handled returned warnings
2021-06-19 18:15:40 +02:00
David Wobrock
343d163c88
Add Postgresql warning when using CREATE INDEX without CONCURRENTLY keyword
2021-06-19 18:15:40 +02:00
David Wobrock
9ea8872a29
Add warnings type to SQL analyser
2021-06-19 18:15:40 +02:00
David Wobrock
a119b4ba1f
Add codecov coverage
2021-06-06 16:44:20 +02:00
David Wobrock
d8b899248a
Update linting dependencies to latest version
2021-05-26 19:05:33 +02:00
David Wobrock
0ac5a9dba3
Add pyproject.toml back to available config files
2021-05-26 19:05:33 +02:00
David Wobrock
7c5bcb9923
Document new lintmigrations command arguments
2021-05-26 18:53:19 +02:00
David Wobrock
6d595f1555
Add support for positional app_label and migration_name arguments
2021-05-26 18:53:19 +02:00
David Wobrock
bf525ae79d
Make git commit id a named CLI parameter
2021-05-26 18:53:19 +02:00
David Wobrock
e56d96a35b
Edit master->main GitHub Actions
2021-05-25 23:15:10 +02:00
David Wobrock
8e57fb2fb0
Add main branch rename to CHANGELOG
2021-05-24 20:23:48 +02:00
David Wobrock
062c60cd31
Add DEFAULT_AUTO_FIELD to settings for explicit PK field
2021-05-02 15:07:16 +02:00
David Wobrock
c988ee3d51
Delete apps.py files for Django 3.2 automatic discovery
2021-05-02 15:07:16 +02:00
David-Wobrock
b2f4c634b5
Bump to 2.5.3
2021-04-12 18:58:02 +02:00
David-Wobrock
f9b172f1b1
Upgrade flake and isort versions for linting
2021-04-12 18:57:03 +02:00
David-Wobrock
09983f5c4c
Add Django 3.2 support
2021-04-12 18:57:03 +02:00
David-Wobrock
4665d167df
Update CHANGELOG with 2.5.3 info
2021-04-12 18:52:15 +02:00
David-Wobrock
27d9115e2e
Update MANIFEST.in content
2021-04-12 18:52:15 +02:00
David-Wobrock
629ff558ef
Fix setup 'packages' argument
...
So that we don't install a 'tests' module globally in each env
2021-04-12 18:52:15 +02:00
David-Wobrock
aec14ccd53
Bump to 2.5.2
2021-04-01 23:11:35 +02:00
David-Wobrock
2f3ce1d7cc
Remove toml support
2021-04-01 23:11:35 +02:00
David-Wobrock
b16081fecf
Fix linting
2021-02-04 22:00:59 +01:00
David Wobrock
1586a3f607
Bump to 2.5.1
2021-02-04 19:30:09 +01:00
David Wobrock
48f199a91b
Use utf-8 encoding on config files
2021-02-04 19:28:09 +01:00
David-Wobrock
bfce31f229
Bump to 2.5.0
2021-01-31 17:51:21 +01:00
David-Wobrock
60364050bd
Update CHANGELOG
2021-01-31 17:44:58 +01:00
David-Wobrock
137089573c
Implement include migration name options
2021-01-31 17:44:58 +01:00
David-Wobrock
1eccbbfc07
Fix configuration file for boolean values
2021-01-17 16:28:31 +01:00
David-Wobrock
2dc4caadf9
Implement config files
2021-01-17 16:28:31 +01:00
David-Wobrock
d207bf14b3
Fix import order which was important
2020-11-30 21:58:28 +01:00
David-Wobrock
e51073ef46
Fixes #129 - use single logger
2020-11-30 21:53:38 +01:00
David-Wobrock
6ab1d58c47
Apply isort to the project
2020-11-30 21:46:40 +01:00
David-Wobrock
4b15e11faa
Rename data migration lint checks
2020-11-30 21:40:57 +01:00
David-Wobrock
1824410ac5
Fix linting errors
2020-11-26 19:02:57 +01:00
David-Wobrock
f795fa07d2
Add tests for RunSQL tests
2020-11-26 19:02:57 +01:00
David-Wobrock
f5d0da4932
Run some checks on RunSQL migration operation
2020-11-26 19:02:57 +01:00
David-Wobrock
780630131f
Add warning if RunPython model variable name not the same as model class
2020-11-26 19:02:57 +01:00
David-Wobrock
601e02e024
Rename method name and add comments
2020-11-26 19:02:57 +01:00
David-Wobrock
a68ff7c306
Make data migration model import check a bit less strict
...
It now allows:
* get_model(...) calls with one parameter only
* allows the variable name to be not the same as the model name itself (this will become a warning)
2020-11-26 19:02:57 +01:00
David-Wobrock
5e26d9a910
Document the incompatibility codes
2020-11-26 19:02:57 +01:00
David-Wobrock
b38da345d7
Add Python 3.9 support
2020-11-26 18:54:02 +01:00
David-Wobrock
06c197f546
Do lint in another job than the build
2020-11-26 18:43:34 +01:00
David-Wobrock
321b41ddd0
Start using GitHub Actions and remove Travis
2020-11-26 18:43:34 +01:00
David-Wobrock
50294a213b
Add Dj3.1 support and update flake8 and black versions
2020-10-10 18:14:56 +02:00
David Wobrock
39a21ad46a
Add pages referencing the linter to the readme
2020-10-10 16:33:10 +02:00
David Wobrock
00af46c5cf
Add new blog post link
...
https://medium.com/botify-labs/django-and-its-default-values-c21a13cff9f
2020-09-17 17:20:54 +02:00
David Wobrock
3f827563c1
Bump to 2.4.0
2020-07-03 19:14:28 +02:00
David Wobrock
be7b9e58c3
Update info to CHANGELOG and README
2020-07-02 19:15:30 +02:00
David Wobrock
ae84a5ffad
Fix most tests for previous Django and Python versions
2020-07-02 19:15:30 +02:00
David Wobrock
ef38433bb8
Unrelated: handle migration files gathered from git command that are not in the installed_apps
2020-07-02 19:15:30 +02:00
David Wobrock
c2c26ae106
Add tests for the makemigrations override
2020-07-02 19:15:30 +02:00
David Wobrock
34a6d9d47e
Make makemigrations override less strict by suggesting to keep the migration
2020-07-02 19:15:30 +02:00
David Wobrock
0d8bc98f8e
Remove forgotten option from lintmigrations command
2020-07-02 19:15:30 +02:00
David Wobrock
bf790a0591
Do not lint migrations on dry_run
...
If the migration file is not generated, we're not able yet to generate the associated SQL.
That'll come in a later version :)
2020-07-02 19:15:30 +02:00
David Wobrock
6e8df8fb66
Update CHANGELOG.md with makemigrations feature
2020-07-02 19:15:30 +02:00
David Wobrock
86ccbfea4f
Add documentation for the makemigrations override
2020-07-02 19:15:30 +02:00
David Wobrock
95fc4a538a
Add makemigrations override command
2020-07-02 19:15:30 +02:00