mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-10-29 06:57:36 +03:00
Following [my comment here](https://github.com/encode/django-rest-framework/pull/7589#issuecomment-813301322) and [Django's own move to pre-commit](https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/#pre-commit-checks). * Add pre-commit config file to run flake8 and isort. * Add extra "common sense" hooks. * Run pre-commit on GitHub actions using the [official action](https://github.com/pre-commit/action/). This is a good way to get up-and-running but it would be better if we activated [pre-commit.ci](https://pre-commit.ci/), which is faster and will auto-update the hooks for us going forwards. * Remove `runtests.py` code for running linting tools. * Remove `runtests.py --fast` flag, since that would now just run `pytest -q`, which can be done with `runtests.py -q` instead. * Remove tox configuration and requirements files for linting. * Update the contributing guide to mention setting up pre-commit. |
||
|---|---|---|
| .. | ||
| 3.1-announcement.md | ||
| 3.2-announcement.md | ||
| 3.3-announcement.md | ||
| 3.4-announcement.md | ||
| 3.5-announcement.md | ||
| 3.6-announcement.md | ||
| 3.7-announcement.md | ||
| 3.8-announcement.md | ||
| 3.9-announcement.md | ||
| 3.10-announcement.md | ||
| 3.11-announcement.md | ||
| 3.12-announcement.md | ||
| 3.0-announcement.md | ||
| contributing.md | ||
| funding.md | ||
| jobs.md | ||
| kickstarter-announcement.md | ||
| mozilla-grant.md | ||
| project-management.md | ||
| release-notes.md | ||
| third-party-packages.md | ||
| tutorials-and-resources.md | ||