Commit Graph

17 Commits (master)

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 590bc41a56 Exclude it because it's kind of tedious 2018-01-25 20:44:00 -05:00
Manuel Kaufmann 234356baa4 Ignore D403 since doesn't work for all the cases 2017-12-20 13:16:28 -05:00
Manuel Kaufmann e720959477 Ignore pydocstyle sections handling
The sections as we use them are useful for rst style.
2017-12-15 20:30:29 -05:00
Manuel Kaufmann 63a96d7d61 Ignore unused pep257 errors 2017-12-15 19:48:44 -05: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
Alex Chan d0c52ce1df Finish PEP 257 cleanup and enable linting in CI (#2839)
* Fix a few remaining PEP 257 violations

* Enable PEP 257 linting in CI
2017-05-12 08:18:28 -07:00
Anthony Johnson 862d8a2c76
Add stricter linting to prospector as second pass 2017-03-21 11:39:00 -07:00
Fatema Boxwala d4762d9d0f pep257ifys core and api (#2245) 2016-06-02 16:40:45 -07:00
Eric Holscher 1725beda60 Merge branch 'master' into simple-project-state-tracking 2016-03-10 10:01:39 -08:00
Anthony Johnson cb5461939e Fix rando pyflakes errors 2016-03-01 14:13:58 -08:00
Eric Holscher f316f5cc08 Fix lint 2016-03-01 13:53:47 -08:00
Anthony Johnson 3fcf523598 Lint project code
This lints project code to medium strictness and conforms to pep257. This uses
some additional options to reduce false errors, which I'll add in a separate PR.
This should pass our normal linting without a problem, except the minor change
to unused variable name regex.

This adds `__` to the default list of `_` and `dummy*` for unused arguments. I
prefer the default of `_`, but that overlaps with the translation helper `_()`.
I'd be happy to rethink a scheme here.
2015-08-21 17:30:56 -07:00
Eric Holscher 43a4baa4aa Clean up linting errors 2015-08-05 11:32:23 -07:00
Gregor Müllegger c08eac7873 Disable pylint check for logging-format-interpolation
Otherwise pylint will raise a warning if this is used:

    logger.debug('Logging value: {value}'.format(value=123))

And recommends using:

    logger.debug('Logging value: %(value)s', value=123)
2015-07-31 17:30:11 +02:00
Anthony Johnson 18f68dee96 Add test of tox running test and lint commands, update travis 2015-07-21 19:41:37 -07:00