The aim is to reduce the number of PRs opened where a 'simple' lint error
needs to be fixed, and in doing so we end up running the whole test suite
at Jenkins twice. I appreciate this won't stop all instances as folk will
have an extra step to install them; however, I think even if it stops the
occasional occurrence the addition will be worthwhile.
--
Ticket URL: <https://code.djangoproject.com/ticket/32165>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => needsinfo
Comment:
Hi David. I'd be inclined to accept this — I think pre-commit is great —
but I think we need to go via the DevelopersMailingList first to gather
consensus.
Ref [https://github.com/django/deps/blob/master/accepted/0008-black.rst
DEP 8] this would be handy to have in place.
Can I get you to post to the list? Some thoughts...
* Things we could set up now: the whitespace rule, flake8, isort.
* Add black when DEP 8 is implemented.
* What's the setup? Add to docs where?
* ...
Thanks
--
Ticket URL: <https://code.djangoproject.com/ticket/32165#comment:1>
* cc: Adam (Chainz) Johnson (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/32165#comment:2>
* status: closed => new
* type: Uncategorized => New feature
* component: Uncategorized => Packaging
* has_patch: 0 => 1
* resolution: needsinfo =>
* stage: Unreviewed => Ready for checkin
Comment:
[https://github.com/django/django/pull/13696#pullrequestreview-547008796
PR]
(This is about GitHub process. I have no idea what component to assign it
to really.)
--
Ticket URL: <https://code.djangoproject.com/ticket/32165#comment:3>
* owner: nobody => David Smith
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/32165#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"3bca95cca277a1e205c10d4fd3ea8527c6fcc34a" 3bca95cc]:
{{{
#!CommitTicketReference repository=""
revision="3bca95cca277a1e205c10d4fd3ea8527c6fcc34a"
Fixed #32165 -- Added pre-commit hooks
* Added pre-commit hooks for isort, flake8 and eslint
* Added documentation on how to install and use the tool
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32165#comment:5>
Comment (by Carlton Gibson):
In [changeset:"3a0ed0ce3f2e38c4336da6d68d901c6f3d5926dc" 3a0ed0ce]:
{{{
Refs #31265 -- Updated .eslintignore to match eslint tests
}}}
(Moved comment due to wrong ticket number)
--
Ticket URL: <https://code.djangoproject.com/ticket/32165#comment:6>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"dc2ddfe91a45386aceabef5b91936e55aaa47b44" dc2ddfe9]:
{{{
#!CommitTicketReference repository=""
revision="dc2ddfe91a45386aceabef5b91936e55aaa47b44"
Refs #32165 -- Bumped minimum ESLint version to 7.16.0 to match pre-commit
configuration.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32165#comment:7>