Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New linter: warn about missing backwards migrations #270

Merged
merged 1 commit into from
Jul 12, 2020

Conversation

brymut
Copy link
Contributor

@brymut brymut commented Jul 6, 2020

Refs kiwitcms/Kiwi#1774 New linter: warn about missing backwards migrations.

@atodorov, not quite sure how to handle/structure the testing for this. Should I add migrations to test with on top of the tests for the db_performance checker or should I have it with the other checkers? As it looks like the db_performance is added on separately to add the migrations path?

@coveralls
Copy link

coveralls commented Jul 6, 2020

Pull Request Test Coverage Report for Build 1111

  • 23 of 27 (85.19%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.08%) to 88.4%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pylint_django/utils.py 4 5 80.0%
pylint_django/checkers/db_performance.py 19 22 86.36%
Totals Coverage Status
Change from base Build 1100: -0.08%
Covered Lines: 663
Relevant Lines: 750

💛 - Coveralls

Copy link
Contributor

@atodorov atodorov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, I need some input from @carlio as to how to proceed structuring this new checker.

@brymut add yourself as contributor in CONTRIBUTORS.md

@atodorov
Copy link
Contributor

atodorov commented Jul 7, 2020

@brymut also rebase to the latest master which fixed the issue with failing tests in CI

@brymut brymut force-pushed the add-backwards-migration-checker branch 2 times, most recently from b961b4f to fd814a5 Compare July 8, 2020 07:58
@brymut brymut force-pushed the add-backwards-migration-checker branch from fd814a5 to 5bfb3db Compare July 9, 2020 18:11
@brymut
Copy link
Contributor Author

brymut commented Jul 9, 2020

@atodorov may I please get some help, I can't seem to be able to get the test to recognise the 0003_without_backwards.txt to compare the expected error output against like the 0002_new_column.txt. I must be missing something.

@brymut brymut force-pushed the add-backwards-migration-checker branch 2 times, most recently from f82c3d8 to aeac67b Compare July 9, 2020 18:23
@brymut brymut requested a review from atodorov July 9, 2020 18:38
@brymut brymut force-pushed the add-backwards-migration-checker branch 2 times, most recently from d1e011d to 8a5a42b Compare July 10, 2020 13:27
@brymut brymut requested a review from atodorov July 10, 2020 13:32
@brymut brymut force-pushed the add-backwards-migration-checker branch from 8a5a42b to dd61a73 Compare July 10, 2020 13:36
@brymut brymut force-pushed the add-backwards-migration-checker branch from dd61a73 to 2b6dbd7 Compare July 11, 2020 13:49
@atodorov atodorov merged commit 5f0fef4 into pylint-dev:master Jul 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants