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

Normalize command line options with config file #191

Merged
merged 3 commits into from Jan 28, 2022

Conversation

David-Wobrock
Copy link
Collaborator

Allow all command line options to be also specified inside of config files
Notably: include_migrations_from, project_root_path, verbosity, git_commit_id, app_label, migration_name

Fixes #167

@codecov-commenter
Copy link

Codecov Report

Merging #191 (13f21f6) into main (7674a51) will increase coverage by 0.25%.
The diff coverage is 86.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #191      +/-   ##
==========================================
+ Coverage   93.40%   93.66%   +0.25%     
==========================================
  Files          77       79       +2     
  Lines        1653     1752      +99     
==========================================
+ Hits         1544     1641      +97     
- Misses        109      111       +2     
Impacted Files Coverage Δ
...ation_linter/management/commands/lintmigrations.py 88.75% <77.77%> (ø)
tests/functional/test_lintmigrations_command.py 100.00% <100.00%> (ø)
django_migration_linter/migration_linter.py 84.34% <0.00%> (+1.92%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7674a51...13f21f6. Read the comment docs.

@David-Wobrock David-Wobrock force-pushed the normalize-command-line-options-with-config-file branch from 13f21f6 to 8a740a5 Compare January 28, 2022 20:28
@David-Wobrock David-Wobrock merged commit 71ddadd into main Jan 28, 2022
@David-Wobrock David-Wobrock deleted the normalize-command-line-options-with-config-file branch January 28, 2022 20:48
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.

Migration linting cannot be controlled exclusively through configuration files
2 participants