question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

django-lint-migrations@2.5.0 fails after update

See original GitHub issue

Traceback:

+ python manage.py lintmigrations --exclude-apps=axes --warnings-as-errors
Traceback (most recent call last):
  File "manage.py", line 31, in <module>
    main()
  File "manage.py", line 27, in main
    management.execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 323, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.8/site-packages/django_migration_linter/management/commands/lintmigrations.py", line 133, in handle
    config_parser.read(DEFAULT_CONFIG_FILES)
  File "/usr/local/lib/python3.8/configparser.py", line 697, in read
    self._read(fp, filename)
  File "/usr/local/lib/python3.8/configparser.py", line 1082, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: '.editorconfig', line: 3
'root = true\n'

CI link: https://github.com/wemake-services/wemake-django-template/pull/1455/checks?check_run_id=1803497890 Reproduction: https://github.com/wemake-services/wemake-django-template/pull/1455

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sobolevncommented, Feb 1, 2021

@skarzi just to be clear: this is a valid .editorconfig format. https://editorconfig.org/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue migrating with version 2.5.0 #245 - GitHub
I just upgraded to version 2.5.0, removed the entry in MIGRATION_MODULES, and ran migrate. I got this strange error.
Read more >
Problem in panel of Django3.0 after migrations - Stack Overflow
i create a django project; enable (venv); makemigrations; migrate; pip install -r requirements.txt; copy to settinigs_local project; python ...
Read more >
Migrations - Django documentation
Migrations ¶. Migrations are Django's way of propagating changes you make to your models (adding a field, deleting a model, etc.) into your...
Read more >
Katello 3.15 upgrade failure with "python3-django-admin ...
Tried updating Katello 3.14 installation to 3.15. “foreman-installer --scenario katello --upgrade” run ended with: 'python3-django-admin migrate ...
Read more >
django-linear-migrations - PyPI
txt file to determine which migration to rebase. It will then rename the migration, edit it to depend on the new migration in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found