Commit Graph

7 Commits (6c44864a85a1ae536bf781a75e942e5f27356bbd)

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 234356baa4 Ignore D403 since doesn't work for all the cases 2017-12-20 13:16:28 -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 5adbdd1fae Improve docstrings and style 2017-11-28 19:45:18 -05:00
Manuel Kaufmann 9920ba7f21 Allow BUILD_IMAGES to be updated from a setting (#3306)
* Allow BUILD_IMAGES to be updated from a setting

Fixes #3524

* Styles

* Style updates

Config changes:

 - ignore D107 (__init__ method must have a docstring) in flake8
 - readthedocs and readthedocsinc are marked as FIRSTPARTY in isort
 - readthedocs_build is marked as THIRDPARTY

* Rename setting to DOCKER_BUILD_IMAGES
2017-11-27 17:25:01 -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