Commit Graph
69 Commits
Author SHA1 Message Date
David Wobrock 2ee7dac3b3 Add internal classes and add type hints + mypy. 2022-12-26 16:26:24 +01:00
David Wobrock f9a2e4189c Support Py3.11 and Django 4.1, and drop Django 2.1 support. 2022-12-17 11:45:19 +01:00
David Wobrock 9ad7bcced0 Add release not for IgnoreMigration.elidable=True change. 2022-10-03 15:47:49 +02:00
David Wobrock bef47906d1 Fix #209 - Raise when getting SQL statements fail. 2022-07-28 23:45:14 +02:00
David Wobrock f67f27354d Fix #218 - Handle model 'objects' call with other parts in the name. 2022-07-09 15:37:57 +02:00
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 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 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 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 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 fce21b71e9 Bump to 3.0.1 and update changelog 2021-08-14 15:26:04 +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 ea89043d8c Add to documentation 2021-06-19 18:15:40 +02:00
David Wobrock a119b4ba1f Add codecov coverage 2021-06-06 16:44:20 +02:00
David Wobrock 7c5bcb9923 Document new lintmigrations command arguments 2021-05-26 18:53:19 +02:00
91e0147f9b load config from pyproject.toml (#143)
* load-toml

* move toml to extras_require

* fix linter, add hint

* Update toml PR

- always install toml deps, we can add it to all installs
- don't override the command line config values with the ones from the config files
- handle getboolean again for configparser
- be able to have both a toml and another config file, and both configs are taken into account

* Add changelog message for later

Co-authored-by: aakrivonos <aakrivonos@domclick.ru>
Co-authored-by: David-Wobrock <david.wobrock@gmail.com>
2021-05-25 23:20:07 +02:00
David Wobrock 8e57fb2fb0 Add main branch rename to CHANGELOG 2021-05-24 20:23:48 +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 2f3ce1d7cc Remove toml support 2021-04-01 23:11:35 +02:00
David Wobrock 1586a3f607 Bump to 2.5.1 2021-02-04 19:30:09 +01:00
David-Wobrock 60364050bd Update CHANGELOG 2021-01-31 17:44:58 +01:00
David-Wobrock 2dc4caadf9 Implement config files 2021-01-17 16:28:31 +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 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 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 b38da345d7 Add Python 3.9 support 2020-11-26 18:54:02 +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 be7b9e58c3 Update info to CHANGELOG and README 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 e86f8a7df2 Bump to 2.3.0 2020-06-20 18:09:05 +02:00
David Wobrock 799957a556 Bump to 2.2.2 2020-05-26 18:12:17 +02:00
David-Wobrock a5e17d0df1 Bump to 2.2.1 and black some files 2020-05-16 21:16:36 +02:00
David Wobrock 264e1cd61e Fix #108 -- Don't strictly pin the 'appsdirs' dep 2020-05-11 18:04:15 +02:00
David-Wobrock 87040845ed Fix #106 -- Add forgotten documentation about IgnoreMigration() 2020-05-04 20:41:51 +02:00
David Wobrock 87085a2cd4 Start changelog of unreleased 2.2.0 2020-03-13 23:24:39 +01:00