Commit Graph

8 Commits (46890a95b98b9f9d1307a0ac4034b5e851f9b46d)

Author SHA1 Message Date
Anthony 46890a95b9
Drop readthedocs- prefix to submodule (#3916)
* Drop readthedocs- prefix to submodule

This may require git submodule sync locally

* Relink files
2018-04-05 22:00:58 -06:00
Manuel Kaufmann 3c674f05ad Use readthedocs-common to share linting files accross different repos (#3808)
* Remove shared autolint config files

* readthedocs-common submodule added

* Add proper symlinks to all the shared linting config

* Update submodule for unhidden files

* Recover prospector-more.yml since it's specific for this repo
2018-03-23 11:42:58 -06:00
Manuel Kaufmann e6f1c54a82 Use DRF 3.1 `pagination_class` (#3559)
* Use DRF 3.1 `pagination_class`

* Update pre-commit and styles

This style corresponds to PR #3559

* Lint

* Pagination tests
2018-02-15 08:41:19 +06:00
Manuel Kaufmann 36b7755f52 Update docformatter for pre-commit to proper version 2017-12-20 13:16:14 -05:00
Manuel Kaufmann a15cc81dd7 Fix yapf for pre-commit to make effect 2017-12-20 13:15:53 -05:00
Manuel Kaufmann ba71aa1860 GitLab Integration (#3327)
This adds GitLab integration for project import, including remote repositories and webhooks.
2017-12-07 10:57:49 -07:00
Manuel Kaufmann ab30efe32e Add prospector as a pre-commit hook (#3328) 2017-11-30 23:54:13 -07:00
Manuel Kaufmann d18ddc9bb5 Config files for auto linting (#3264)
* Config files for auto linting

autoflake, autopep8, docformatter, isort, yapf

* readthedocs.projects.views.base with auto styling applied

* readthedocs.core.models auto styling applied

* readthedocs.builds.urls with auto styling applied

* Do not make multi line summaries

* Improve isort settings

* Use 80 columns as maximum

* pre-commit config file

Use the `pre-commit` tool to run some linting commands before each
commit:

    http://pre-commit.com/

* Update yapf config file to 0.20.0

* Add i18n functions to yapf config

* Remove django as a special section for isort

* Rename config to be automatically discovered

* Add annoying as a third party lib for isort

* Use the new config for all the files modified as a test

I had to add a couple of "trailing commas" to keep the format as we want

* Install additional dependencies for each of the hooks

Remove the auto-lint.txt requirements file since it's not needed anymore

* Use default config name for autopep8

* Include autoflake as pre-commit hook

* Exclude D105 from flake8

D105: Missing docstring in magic method

* Minor fixes from flake8

* autoflake with --in-place

* Arguments for docformatter

* Autofix D203 with yapf

D203 / 1 blank line required before class docstring

* Ignore local_settings.py on prospector
2017-11-27 09:42:09 -07:00