Closed
Bug 1139894
Opened 10 years ago
Closed 10 years ago
Docs: Add flake8 instructions to read the docs
Categories
(Tree Management :: Treeherder, defect, P3)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: emorley, Assigned: emorley)
References
Details
Attachments
(1 file)
Now that bug 1107523 means that flake8 runs as part of the travis run, we should:
1) Mention that code must pass flake8 in the docs
2) Mention how to install (|pip install flake8| or just install the dev.txt requirements)
3) Mention how to run (|flake8| or if you want to see more context, |flake8 --show-source|)
4) Mention how to set up the git commit hook locally, to catch failures before pushing.
Assignee | ||
Comment 1•10 years ago
|
||
Fixes this bug and also bug 1143086.
Attachment #8577530 -
Flags: review?(mdoglio)
Comment 2•10 years ago
|
||
Comment on attachment 8577530 [details] [review]
flake8 improvements
I don't see any commit related to 4), are you planning to include it in a separate patch?
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Mauro Doglio [:mdoglio] from comment #2)
> I don't see any commit related to 4), are you planning to include it in a
> separate patch?
I still need to figure it out myself and will add it later, I just wanted to avoid annoying everyone else with lack of flake8 instructions in the meantime :-)
Comment 4•10 years ago
|
||
Comment on attachment 8577530 [details] [review]
flake8 improvements
Then this is a r+!
Attachment #8577530 -
Flags: review?(mdoglio) → review+
Comment 5•10 years ago
|
||
Commits pushed to master at https://github.com/mozilla/treeherder-service
https://github.com/mozilla/treeherder-service/commit/30d6576b43580e8bc83244866e046481dfb0b266
Bug 1139894 - Add flake8 to runtests.sh
flake8 is run on Travis, so let's make it harder to forget to run
locally for people who use runtests.sh. Eventually we should move all of
this to setup.py.
https://github.com/mozilla/treeherder-service/commit/213eb3a6a3b81a7cfed6a3f91d407dbf722c46a3
Bug 1139894 - Docs: Move the "Running the tests" section to common tasks
At some point in the future, we may break the "Running the tests"
section out to its own file, but for now "Common Tasks" seems like a
better home than the installation instructions.
https://github.com/mozilla/treeherder-service/commit/34419d9f35f0d308e8c80888bc2fd4b5f7ebca85
Bug 1139894 - Docs: Add instructions for how to run flake8
Assignee | ||
Updated•10 years ago
|
Attachment #8577530 -
Flags: checkin+
Assignee | ||
Updated•10 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•3 years ago
|
Component: Treeherder: Docs & Development → TreeHerder
You need to log in
before you can comment on or make changes to this bug.
Description
•