Skip to content
Myr

add pre-commit config for flake8

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jon S. Stumpf · committed by David Lord · parent b61cbf8 · Browse files · 6 files+41 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

6 files+41 added−6 removed

  • tests:+1 added−1 removed
  • other:+40 added−5 removed

6 files+41 added−6 removed

modified:docs/patterns/appfactories.rst+3 added-3 removed
91 unmodified lines
92To run such an application, you can use the :command:`flask` command::9394 $ export FLASK_APP=myapp95 $ flask run96 97Flask will automatically detect the factory (``create_app`` or ``make_app``) 9697Flask will automatically detect the factory (``create_app`` or ``make_app``)98in ``myapp``. You can also pass arguments to the factory like this::99100 $ export FLASK_APP="myapp:create_app('dev')"101 $ flask run102 102103Then the ``create_app`` factory in ``myapp`` is called with the string104``'dev'`` as the argument. See :doc:`/cli` for more detail.105106Factory Improvements
11 unmodified lines
modified:docs/flaskstyle.sty+1 added-1 removed
7 unmodified lines
8\renewcommand{\maketitle}{%9 \begin{titlepage}%10 \let\footnotesize\small11 \let\footnoterule\relax12 % Apply following fix only on PDF output, i.e. pdfoutput macro is not 12 % Apply following fix only on PDF output, i.e. pdfoutput macro is not13 % undefined14 \ifx\pdfoutput\undefined\else15 \begingroup16 % This \def is required to deal with multi-line authors; it
108 unmodified lines
modified:docs/Makefile+1 added-1 removed
15 unmodified lines
1617# Catch-all target: route all unknown targets to Sphinx using the new18# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).19%: Makefile20 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)20 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
modified:tests/templates/template_filter.html+1 added-1 removed
modified:.pre-commit-config.yaml+11 added
modified:setup.cfg+24 added
20 unmodified lines
21source =22 flask23 .tox/*/lib/python*/site-packages/flask24 .tox/pypy/site-packages/flask2526[flake8]27# B = bugbear28# E = pycodestyle errors29# F = flake8 pyflakes30# W = pycodestyle warnings31# B9 = bugbear opinions32select = B, E, F, W, B933ignore =34 # slice notation whitespace, invalid35 E20336 # import at top, too many circular import fixes37 E40238 # line length, handled by bugbear B95039 E50140 # bare except, handled by bugbear B00141 E72242 # bin op line break, invalid43 W50344# up to 88 allowed by bugbear B95045max-line-length = 8046per-file-ignores =47 # __init__ modules export names48 **/__init__.py: F401