Commit Graph
11 Commits
Author SHA1 Message Date
David Wobrock 2ee7dac3b3 Add internal classes and add type hints + mypy. 2022-12-26 16:26:24 +01:00
Sondre Lillebø Gundersen bd4eb89b8c chore: Upgrade Python syntax with pyupgrade
Run with the following pre-commit configuration:

```
repos:
  - repo: https://github.com/asottile/pyupgrade
    rev: v3.1.0
    hooks:
      - id: pyupgrade
        args: [ "--py3-plus", "--py36-plus", "--py37-plus" ]
```

The rationale for every change can be found at https://github.com/asottile/pyupgrade
2022-11-03 22:00:00 +01:00
David Wobrock 6ba29a6b5d Fix flake8 linting. 2022-08-07 17:06:10 +02: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 5f11f9417f Refactor logging configuration to both Django management commands lintmigrations and makemigrations 2022-03-13 16:51:29 +01:00
Andy Dau fa9b2f977a Fix typo in makemigrations command 2021-01-14 22:05:27 +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 34a6d9d47e Make makemigrations override less strict by suggesting to keep the migration 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 95fc4a538a Add makemigrations override command 2020-07-02 19:15:30 +02:00