Commit Graph

10 Commits (68836e7e237d82a377b2b2262cf85f031cb0bba1)

Author SHA1 Message Date
Manuel Kaufmann 632e18c121 pre-commit all the files again 2019-01-09 13:19:00 +01:00
Manuel Kaufmann 3219f7acbd Run pre-commit on all the files
$ pre-commit run --files `find readthedocs -name '*'`
2019-01-08 21:51:36 +01:00
Manuel Kaufmann c78187b62f isort all the files
$ pre-commit run python-import-sorter --files `find readthedocs -name '*.py'`

It was ran with this configuration: https://github.com/rtfd/common/pull/28
2019-01-08 20:56:20 +01:00
Hank Gay f201d150dd Make a pass w/ python-modernize. 2017-05-30 17:55:56 -04:00
fmoor f8f3affc14 Replace extension pattern with updated version, resolves #2618 (#2880) 2017-05-22 16:06:02 -07:00
Eric Holscher 6a18cd58f9 Update PR #2435 and fix conflicts
This updates #2435, which seems to have disappeared.
2017-03-06 11:00:01 -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 b286263ed3 Automated import refactoring 2015-07-28 16:50:58 -07:00
Anthony Johnson 7b0b677f25 Add a one click import of demo project
This adds a view that performs a mocked form submission to create demo project.
It will create a new project with the name `<username>-demo` using our template
repository. If a project exists with the same repo, don't reimport. If a project
exists with the same name, throw an error and drop back to the dashboard.
2014-12-18 23:22:21 -08:00
Anthony Johnson 6bcc6ef929 Fixes for project tests, change view backend naming 2014-12-01 16:17:44 -08:00