Commit graph

441 commits

Author SHA1 Message Date
github-actions
0c418b4a2f 📝 Update release notes 2023-05-01 11:17:13 +00:00
Ben Beasley
6664f1ec31
⬆ Upgrade Rich, support 13.x (#524)
Allow rich 13.x

Based on the changelog, the only relevant breaking change is that
support for Python 3.6 is removed:

https://github.com/Textualize/rich/blob/v13.0.0/CHANGELOG.md#1300---2022-12-30

This is OK even though we support Python 3.6 in typer, because we do
still allow older versions of rich that are compatible with Python 3.6.
2023-05-01 04:16:35 -07:00
github-actions
a6a578797e 📝 Update release notes 2023-05-01 11:07:03 +00:00
jmills
46154f2fc9
✏ Fix spelling (shinny -> shiny) (#586)
shinny -> shiny
2023-05-01 04:05:30 -07:00
Sebastián Ramírez
606df45a02 📝 Update release notes 2023-05-01 12:59:15 +02:00
github-actions
0ee670f624 📝 Update release notes 2023-05-01 10:52:11 +00:00
Sebastián Ramírez
e7c3467a08
📝 Tweak docs, Custom Types path, main page and READAME colors, broken links (#588)
* 📝 Tweak name for Custom Types

* ✏️ Fix broken internal links in CLI Option autocompletion

* 📝 Update main page docs, remove colors as that renders badly in README

* 📝 Update README, sync with index.md, remove colors for GitHub and PyPI
2023-05-01 03:51:35 -07:00
github-actions
27d0fdeb3f 📝 Update release notes 2023-05-01 10:04:11 +00:00
John Purviance
3e37e01979
Add support for custom types and parsers (updates/builds upon PR #443) (#583)
* Support custom parameter types

While most CLI parameters are strings, ints, etc, we sometimes need custom
types.

Currently typer has no support for it (See #77), and while there are a few hacks, the
likely solution is to add a 'str' argument and parse it inside the main function.

This PR adds support for custom types in 3 different ways:
- Manually specifying a `click_type`
- Manually specifying a `parse` function
- Using a Callable type annotation (It is very common for types to have a string constructor, like `int("1")`)

* Document how to parse custom objects with Typer.

Typer supports parsing of cutom types with:
- A user provided parser class
- A click custom type parser

* 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

* 📝 Tweak and simplify docs

*  Tweak tests to run scripts and remove pragma: nocover in examples

* 📝 Tweak examples for docs, add types and remove # pragma: nocover

* ♻️ Tweak implementation checking for parser and Click type

---------

Co-authored-by: Paulo Costa <me@paulo.costa.nom.br>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2023-05-01 03:03:26 -07:00
github-actions
8dd7642d6e 📝 Update release notes 2023-04-25 23:30:29 +00:00
David Montague
71e04e0d3b
🔧 Add exclude_lines to coverage configuration (#585)
Add exclude_lines to coverage configuration
2023-04-25 16:29:50 -07:00
github-actions
50caff2757 📝 Update release notes 2023-02-21 11:05:36 +00:00
Sebastián Ramírez
17671936cb
⬆️ Upgrade analytics (#557) 2023-02-21 11:05:01 +00:00
github-actions
b9515e88e3 📝 Update release notes 2023-02-03 17:52:27 +00:00
Sebastián Ramírez
6386bcd741
📝 Update docs about helping Typer (#547) 2023-02-03 18:51:55 +01:00
github-actions
1201e7f3b2 📝 Update release notes 2023-01-31 14:11:55 +00:00
Sebastián Ramírez
d75debfe0c
🔧 Update new issue chooser to suggest GitHub Discussions (#544) 2023-01-31 15:11:16 +01:00
github-actions
898ca8f663 📝 Update release notes 2023-01-30 10:35:54 +00:00
Sebastián Ramírez
ef1081e1f1
🔧 Add GitHub Discussion templates for questions (#541) 2023-01-30 11:35:12 +01:00
github-actions
4ba8226505 📝 Update release notes 2023-01-30 10:29:22 +00:00
Sebastián Ramírez
9b65e60555
🔧 Update pre-commit, Python version, isort version (#542) 2023-01-30 11:28:41 +01:00
github-actions
35c63685ca 📝 Update release notes 2022-12-16 23:10:44 +00:00
pre-commit-ci[bot]
44fce0f296
⬆ [pre-commit.ci] pre-commit autoupdate (#512)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-12-17 03:10:01 +04:00
github-actions
fbd713a980 📝 Update release notes 2022-12-16 20:46:01 +00:00
dependabot[bot]
fdfaf4fc50
⬆ Bump nwtgck/actions-netlify from 1.2.4 to 2.0.0 (#513)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-17 00:45:21 +04:00
github-actions
f6665d9f37 📝 Update release notes 2022-12-16 18:29:42 +00:00
Sebastián Ramírez
0c106a169e
👷 Refactor CI artifact upload/download for docs previews (#516) 2022-12-16 22:29:08 +04:00
github-actions
e3f746793f 📝 Update release notes 2022-11-14 21:52:28 +00:00
pre-commit-ci[bot]
69b9cb5908
⬆ [pre-commit.ci] pre-commit autoupdate (#500)
updates:
- [github.com/asottile/pyupgrade: v3.2.0 → v3.2.2](https://github.com/asottile/pyupgrade/compare/v3.2.0...v3.2.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-14 21:51:54 +00:00
github-actions
e14cf38029 📝 Update release notes 2022-11-11 12:33:26 +00:00
dependabot[bot]
df359e0785
⬆ Bump actions/cache from 2 to 3 (#496)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-11 13:32:44 +01:00
github-actions
40cca5fa92 📝 Update release notes 2022-11-10 21:46:01 +00:00
Xuan (Sean) Hu
915f89b6f8
✏️ Fix typo in datetime docs (#495) 2022-11-10 22:45:09 +01:00
github-actions
95a0dbf532 📝 Update release notes 2022-11-10 10:28:41 +00:00
dependabot[bot]
28e627bc80
⬆ Bump dawidd6/action-download-artifact from 2.24.1 to 2.24.2 (#494)
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 2.24.1 to 2.24.2.
- [Release notes](https://github.com/dawidd6/action-download-artifact/releases)
- [Commits](https://github.com/dawidd6/action-download-artifact/compare/v2.24.1...v2.24.2)

---
updated-dependencies:
- dependency-name: dawidd6/action-download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-10 11:28:03 +01:00
github-actions
6d1a87b89d 📝 Update release notes 2022-11-09 11:49:18 +00:00
github-actions
f294638786 📝 Update release notes 2022-11-09 11:47:34 +00:00
dependabot[bot]
0497541774
⬆ Bump dawidd6/action-download-artifact from 2.9.0 to 2.24.1 (#491)
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 2.9.0 to 2.24.1.
- [Release notes](https://github.com/dawidd6/action-download-artifact/releases)
- [Commits](https://github.com/dawidd6/action-download-artifact/compare/v2.9.0...v2.24.1)

---
updated-dependencies:
- dependency-name: dawidd6/action-download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-09 12:47:11 +01:00
dependabot[bot]
c6866b398b
⬆ Bump actions/setup-python from 2 to 4 (#492)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-09 12:46:48 +01:00
github-actions
d7c4d0dd0a 📝 Update release notes 2022-11-07 18:02:28 +00:00
Matthias Bach
416c612fb2
👷‍♂️ Consistently use sys.executable to run subprocesses, needed by OpenSUSE (#408)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-11-07 19:01:54 +01:00
github-actions
e001b15262 📝 Update release notes 2022-11-07 17:54:14 +00:00
Matthias Bach
52f488d1b0
👷‍♂️ Ensure the PYTHONPATH is set properly when testing the tutorial scripts (#407) 2022-11-07 18:53:34 +01:00
github-actions
29bec40e89 📝 Update release notes 2022-11-06 15:12:34 +00:00
Oskar Skjærvø Gjølga
9f2d7ebe05
✏️ Add quotes to package name that includes brackets in docs (#475)
Adds quotes to package name with brackets

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-11-06 15:12:01 +00:00
Sebastián Ramírez
6c5698fc90 🔖 Release version 0.7.0 2022-11-05 20:37:40 +01:00
Sebastián Ramírez
aaf3cdd408 📝 Update release notes 2022-11-05 20:24:18 +01:00
github-actions
24d3c39316 📝 Update release notes 2022-11-05 19:23:51 +00:00
Sebastián Ramírez
c1ddf1d452
Add extra tests just for coverage because monkeypatching with strange imports confuses coverage (#490) 2022-11-05 19:23:18 +00:00
Sebastián Ramírez
5e46deb8f7 📝 Update release notes 2022-11-05 17:18:01 +01:00