Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Add contributer docs for using the provided linters script (#6164)
Browse files Browse the repository at this point in the history
* Add lint dependencies black, flake8 and isort

These are required when running the `lint.sh` dev scripts.

Signed-off-by: Jason Robinson <[email protected]>

* Add contributer docs for using the providers linters script

Add also to the pull request template to avoid build failures due
to people not knowing that linters need running.

Signed-off-by: Jason Robinson <[email protected]>

* Fix mention of linter errors correction

Co-Authored-By: Andrew Morgan <[email protected]>

* Add mention for installing linter dependencies

Co-Authored-By: Andrew Morgan <[email protected]>

* Remove linters from python dependencies as per PR review

Signed-off-by: Jason Robinson <[email protected]>
  • Loading branch information
jaywink authored and hawkowl committed Nov 1, 2019
1 parent 1cb84c6 commit 67a6591
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
* [ ] Pull request is based on the develop branch
* [ ] Pull request includes a [changelog file](https://github.com/matrix-org/synapse/blob/master/CONTRIBUTING.rst#changelog)
* [ ] Pull request includes a [sign off](https://github.com/matrix-org/synapse/blob/master/CONTRIBUTING.rst#sign-off)
* [ ] Code style is correct (run the [linters](https://github.com/matrix-org/synapse/blob/master/CONTRIBUTING.rst#code-style))
11 changes: 11 additions & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ Please ensure your changes match the cosmetic style of the existing project,
and **never** mix cosmetic and functional changes in the same commit, as it
makes it horribly hard to review otherwise.

Before doing a commit, ensure the changes you've made don't produce
linting errors. You can do this by running the linters as follows. Ensure to
commit any files that were corrected.

::
# Install the dependencies
pip install -U black flake8 isort
# Run the linter script
./scripts-dev/lint.sh

Changelog
~~~~~~~~~

Expand Down
1 change: 1 addition & 0 deletions changelog.d/6164.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Contributor documentation now mentions script to run linters.

0 comments on commit 67a6591

Please sign in to comment.