File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,24 +128,13 @@ in the documentation.
128128
129129### Linting & Formatting
130130
131- Django uses the following linting and formatting tools: ` black ` , ` flake8 ` ,
132- ` isort ` , and ` eslint ` . To ensure that the correct versions are used, Django
133- also supports using ` pre-commit ` which is the mechanism provided here:
131+ The project uses ` pre-commit ` to configure and manage lint and formating tools.
132+ Those tools can be invoked using the following command:
134133
135134``` console
136135$ docker compose run --rm pre-commit
137136```
138137
139- You can run individual tools by passing them as an argument:
140-
141- ``` console
142- $ docker compose run --rm pre-commit black
143- $ docker compose run --rm pre-commit blacken-docs
144- $ docker compose run --rm pre-commit isort
145- $ docker compose run --rm pre-commit flake8
146- $ docker compose run --rm pre-commit eslint # XXX: Currently not working.
147- ```
148-
149138More information about Django's [ coding style] [ 5 ] can be found in the
150139documentation.
151140
Original file line number Diff line number Diff line change @@ -389,10 +389,6 @@ services:
389389 << : *base
390390 entrypoint : pre-commit run --all-files
391391 working_dir : /django/source
392- environment :
393- # XXX: Disable eslint due to issues finding dependencies.
394- # See https://github.com/django/django/pull/18162
395- SKIP : eslint
396392
397393 sphinx :
398394 << : *base
Original file line number Diff line number Diff line change 1- black
21pre-commit
32unittest-xml-reporting
You can’t perform that action at this time.
0 commit comments