Commit graph

3988 commits

Author SHA1 Message Date
David Lord
8b9128ee06 cleaner message when CLI can't load app
When loading the app fails for the --help command, only the error
message is shown, then the help text. The full traceback is shown for
other exceptions. Also show the message when loading fails while
getting a command, instead of only "command not found". The error
message goes to stderr to match other error behavior, and is in red
with an extra newline to make it more obvious next to the help text.

Also fixes an issue with the test_apps fixture that caused an imported
app to still be importable after the test was over and the path was
reset. Now the module cache is reset as well.
2020-07-30 18:36:55 -07:00
dependabot-preview[bot]
cdedb8f98e Merge pull request #3706 from pallets/dependabot/pip/tox-3.18.1 2020-07-29 08:40:48 +00:00
dependabot-preview[bot]
27e9fe5a87 Bump tox from 3.18.0 to 3.18.1
Bumps [tox](https://github.com/tox-dev/tox) from 3.18.0 to 3.18.1.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/master/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/tox/compare/3.18.0...3.18.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-29 08:37:24 +00:00
dependabot-preview[bot]
9910c2410f Merge pull request #3705 from pallets/dependabot/pip/pytest-6.0.0 2020-07-29 08:32:40 +00:00
dependabot-preview[bot]
92872620d9 Bump pytest from 5.4.3 to 6.0.0
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.4.3 to 6.0.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.4.3...6.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-29 08:29:51 +00:00
David Lord
ee7d80bb55 Merge pull request #3699 from MartinThoma/style
remove unnecessary docstrings from tests
2020-07-28 19:44:23 -07:00
David Lord
9a960a4ff0 Merge pull request #3669 from ebonnecab/error-docs
Error Docs Revision/Consolidation
2020-07-28 14:17:36 -07:00
David Lord
6a152a111c rewrite debugging docs, move to separate page 2020-07-28 11:20:34 -07:00
David Lord
998ef2208c reduce section on http status codes
formatting in sentry section
2020-07-28 11:07:02 -07:00
David Lord
018e1060af adjust header levels and spacing
use code-block consistently
2020-07-28 10:46:22 -07:00
David Lord
7044235c78 rewrite external debuggers section 2020-07-28 07:59:19 -07:00
David Lord
28119de5ee normalize sentence spacing 2020-07-28 07:57:24 -07:00
David Lord
f8aec17365 Merge pull request #3704 from jackwardell/no-self-required
swapping self.assert_equal for assert
2020-07-28 07:10:13 -07:00
jackwardell
5653184b1f swapping self.assert_equal for assert
self.assert_equal is not in a class and is ambiguous. Beginners might copy and paste this example and not understand it.
2020-07-28 14:23:00 +01:00
dependabot-preview[bot]
0d6607a1a4 Merge pull request #3702 from pallets/dependabot/pip/pip-tools-5.3.0 2020-07-27 08:34:35 +00:00
dependabot-preview[bot]
7a4fe92a20 Bump pip-tools from 5.2.1 to 5.3.0
Bumps [pip-tools](https://github.com/jazzband/pip-tools) from 5.2.1 to 5.3.0.
- [Release notes](https://github.com/jazzband/pip-tools/releases)
- [Changelog](https://github.com/jazzband/pip-tools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jazzband/pip-tools/compare/5.2.1...5.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-27 08:31:10 +00:00
Martin Thoma
090c9e9a81 DOC: Remove unnecessary docstrings 2020-07-26 15:47:12 +02:00
Ebonne Cabarrus
13b0a37b5e more changes to consolidated error handling docs 2020-07-24 09:25:07 -07:00
David Lord
432b7cab6f Merge pull request #3594 from jackwardell/consolidating-error-pages-docs
consolidate error handling docs
2020-07-24 09:23:20 -07:00
jackwardell
79bd55cedf consolidate error handling docs
Remove apierrors.rst and errorpages.rst from patterns and integrate the
content into errorhandling.rst, along with other changes and extra
content.
2020-07-24 09:15:43 -07:00
dependabot-preview[bot]
fc36404148 Merge pull request #3695 from pallets/dependabot/pip/tox-3.18.0 2020-07-24 08:03:51 +00:00
dependabot-preview[bot]
4a2175c19e Bump tox from 3.17.1 to 3.18.0
Bumps [tox](https://github.com/tox-dev/tox) from 3.17.1 to 3.18.0.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/master/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/tox/compare/3.17.1...3.18.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-24 08:01:01 +00:00
David Lord
0ce6118fb8 Merge pull request #3684 from MLH-Fellowship/3628-duplicate-headers
make_response uses headers.update
2020-07-23 16:57:19 -07:00
Christopher Nguyen
95653896a4 change make_response to use headers.update 2020-07-23 16:53:39 -07:00
David Lord
98e5b18381 Merge pull request #3694 from pallets/disable-lowest
remove lowest version test until next release
2020-07-23 16:52:52 -07:00
David Lord
8222636c6e remove lowest version test until next release
The next major release will depend on the next major releases of all
the other libraries, which is equivalent to devel right now.
2020-07-23 16:50:00 -07:00
Grey Li
badc22a002 Merge pull request #3691 from greyli/update-discord-links
Update Discord invite links
2020-07-21 12:16:19 +08:00
Grey Li
ee1df9803e Update Discord invite links 2020-07-21 12:11:17 +08:00
Joshua Bronson
06f7f34d76 Merge pull request #3560 from greyli/fix-env-chdir
Stop change CWD to .env/.flaskenv location
2020-07-18 13:14:09 -04:00
dependabot-preview[bot]
8e74a2a07f Merge pull request #3687 from pallets/dependabot/pip/tox-3.17.1 2020-07-16 08:23:45 +00:00
dependabot-preview[bot]
0c2a9e0a7d Bump tox from 3.17.0 to 3.17.1
Bumps [tox](https://github.com/tox-dev/tox) from 3.17.0 to 3.17.1.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/master/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/tox/compare/3.17.0...3.17.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-16 08:21:32 +00:00
dependabot-preview[bot]
8dba1978f7 Merge pull request #3686 from pallets/dependabot/pip/tox-3.17.0 2020-07-15 08:11:44 +00:00
dependabot-preview[bot]
f363429764 Bump tox from 3.16.1 to 3.17.0
Bumps [tox](https://github.com/tox-dev/tox) from 3.16.1 to 3.17.0.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/3.17.0/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/tox/compare/3.16.1...3.17.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-15 08:08:41 +00:00
David Lord
e463ade7c5 Merge pull request #3681 from pallets/fix-typo
fix typo
2020-07-08 08:36:14 -07:00
David Lord
0c8c96122b fix typo 2020-07-08 08:26:21 -07:00
David Lord
33bcc0d36f Merge pull request #3680 from pallets/feature/doc-fixes
Some small doc fixes
2020-07-08 06:56:11 -07:00
Armin Ronacher
40d6d107c5 Some small doc fixes 2020-07-08 15:53:43 +02:00
Joshua Bronson
5fe1f20640 Merge pull request #3579 from jab/pathlib-for-static_folder
Officially support using pathlib.Path for static_folder.
2020-07-06 13:45:03 -04:00
Joshua Bronson
f81846c68b Restore support for using pathlib.Path for static_folder.
* No longer causes AttributeError: 'PosixPath' object has no
  attribute 'rstrip'.

* This was broken by e6178fe489
  which was released in 1.1.2.

* Add a regression test that now passes.

See #3557.
2020-07-06 08:55:19 -04:00
dependabot-preview[bot]
ab4f74e424 Merge pull request #3677 from pallets/dependabot/pip/sphinx-3.1.2 2020-07-06 08:45:55 +00:00
dependabot-preview[bot]
4102865aba Bump sphinx from 3.1.1 to 3.1.2
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/3.x/CHANGES)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v3.1.1...v3.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-06 08:43:21 +00:00
dependabot-preview[bot]
b41181bc28 Merge pull request #3676 from pallets/dependabot/pip/python-dotenv-0.14.0 2020-07-06 08:41:38 +00:00
dependabot-preview[bot]
01958e7f31 Bump python-dotenv from 0.13.0 to 0.14.0
Bumps [python-dotenv](https://github.com/theskumar/python-dotenv) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/theskumar/python-dotenv/releases)
- [Changelog](https://github.com/theskumar/python-dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/theskumar/python-dotenv/compare/v0.13.0...v0.14.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-06 08:38:44 +00:00
Grey Li
8fb45cc419 Update changelog for load dotenv behaivour change 2020-07-05 09:38:48 +08:00
Grey Li
62c582e19b Stop change CWD to .env/.flaskenv location 2020-07-05 09:37:03 +08:00
Grey Li
f7788db336 Merge pull request #3674 from DeepOde/master
Added very small clarification to quickstart.rst
2020-07-05 08:28:28 +08:00
Grey Li
4ea0e07074 Improve wording of tip for Unique URLs chapter 2020-07-05 08:25:48 +08:00
Deep R. Ode
f133e8e284 Added very small clarification to quickstart.rst 2020-07-03 15:55:56 +05:30
David Lord
f4ec1da1d7 Merge pull request #3673 from stat1c-void/pr-api.rst-request-link-20200702
API docs - changed flask.request description
2020-07-02 14:38:18 -07:00
Sergei
298cf90396 API docs - changed flask.request description
- the link should point to the flask's Request
 - longer description is unnecessary, as it's all explained above in flask.Request
2020-07-02 23:54:40 +03:00