{"id":16417554,"url":"https://github.com/MarkusH/django-migrations-formatter","last_synced_at":"2025-10-26T20:31:10.771Z","repository":{"id":42463250,"uuid":"351587462","full_name":"MarkusH/django-migrations-formatter","owner":"MarkusH","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-05T23:33:37.000Z","size":40,"stargazers_count":30,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-06T04:19:50.232Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarkusH.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["MarkusH"]}},"created_at":"2021-03-25T22:01:56.000Z","updated_at":"2024-09-25T15:55:42.000Z","dependencies_parsed_at":"2023-11-13T22:27:36.989Z","dependency_job_id":"caa6844d-84c6-4b61-a01a-1c8a04468ca2","html_url":"https://github.com/MarkusH/django-migrations-formatter","commit_stats":{"total_commits":34,"total_committers":2,"mean_commits":17.0,"dds":"0.32352941176470584","last_synced_commit":"ac809231e24720b74bc8e4060011319e91765b57"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkusH%2Fdjango-migrations-formatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkusH%2Fdjango-migrations-formatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkusH%2Fdjango-migrations-formatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkusH%2Fdjango-migrations-formatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarkusH","download_url":"https://codeload.github.com/MarkusH/django-migrations-formatter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219862222,"owners_count":16555958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T07:11:34.746Z","updated_at":"2025-10-26T20:31:10.467Z","avatar_url":"https://github.com/MarkusH.png","language":"Python","funding_links":["https://github.com/sponsors/MarkusH"],"categories":["Python"],"sub_categories":[],"readme":"# django-migrations-formatter\n\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/MarkusH/django-migrations-formatter/Test%20\u0026%20Deploy/main?style=for-the-badge)](https://github.com/MarkusH/django-migrations-formatter/actions?query=branch%3Amain+event%3Apush)\n[![Codecov branch](https://img.shields.io/codecov/c/gh/MarkusH/django-migrations-formatter/main?style=for-the-badge)](https://app.codecov.io/gh/MarkusH/django-migrations-formatter/branch/main)\n[![Version](https://img.shields.io/pypi/v/django-migrations-formatter?label=Version\u0026style=for-the-badge)](https://pypi.org/project/django-migrations-formatter/)\n![License](https://img.shields.io/pypi/l/django-migrations-formatter?style=for-the-badge)\n![Python Versions](https://img.shields.io/pypi/pyversions/django-migrations-formatter?label=Python\u0026style=for-the-badge)\n![Django Versions](https://img.shields.io/pypi/djversions/django-migrations-formatter?color=%230C4B33\u0026label=Django\u0026style=for-the-badge)\n\nThis Django library will format Django migrations using\n[black](https://pypi.org/project/black/) and [isort](https://pypi.org/project/isort/).\n\n## Installation\n\nStart by installing `django-migrations-formatter` from PyPI:\n\n```console\n(env)$ python -m pip install django-migrations-formatter\n```\n\nYou will also need to make sure to have `black` and/or `isort` installed.\nWithout them, this library doesn't provide any value. For ease of use, you can\ninstall either of them by including them as \"extras\" during the installation.\n\n```console\n(env)$ python -m pip install \"django-migrations-formatter[black,isort]\"\n```\n\nThen you need to add `django_migrations_formatter.apps.MigrationsFormatter` to\nyour `INSTALLED_APPS`:\n\n```python\nINSTALLED_APPS = [\n    ...,\n    'django_migrations_formatter.apps.MigrationsFormatter',\n]\n```\n\n## Contributing\n\nThe project uses [black](https://pypi.org/project/black/) and\n[isort](https://pypi.org/project/isort/) for formatting its code.\n[flake8](https://pypi.org/project/flake8/) is used for linting. All these are\ncombined into [pre-commit](https://pre-commit.com/) to run before each commit\nand push. To set it up:\n\n```console\n(env)$ python -m pip install '.[black,dev,isort,test]'\n(env)$ pre-commit install -t pre-commit -t pre-push --install-hooks\n```\n\nTo run the unit tests:\n\n```console\n(env)$ django-admin test --pythonpath . -v 2 --settings=tests.settings\n```\n\nIf you spot an problem, please [open an issue](https://github.com/MarkusH/django-migrations-formatter/issues/new)\non GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMarkusH%2Fdjango-migrations-formatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMarkusH%2Fdjango-migrations-formatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMarkusH%2Fdjango-migrations-formatter/lists"}