django-rest-framework/docs
Adam Johnson aa12a5f967
Lint with pre-commit (#7900)
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.
2021-04-05 12:08:52 +01:00
..
api-guide update SerializerMethodField example in docs (#7858) 2021-03-22 12:08:19 +00:00
community Lint with pre-commit (#7900) 2021-04-05 12:08:52 +01:00
coreapi Add third-party schema library drf-spectacular to docs (#7540) 2020-09-21 11:39:35 +01:00
img Resize sponsor images for new GitHub layout (#7465) 2020-08-05 14:13:01 +01:00
topics Actually use the loginUser arguments in the example (#7714) 2021-03-09 12:00:51 +00:00
tutorial Correct the use of "to" (#7696) 2021-03-16 12:57:04 +00:00
CNAME Include CNAME file 2014-11-25 16:01:32 +00:00
index.md Update index.md 2020-12-21 16:41:12 +00:00