Skip to content

Commit

Permalink
include rich with typer
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianPugh committed Aug 27, 2023
1 parent 8269109 commit ccf9ce2
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: ^(poetry.lock|.idea/)
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.280"
rev: "v0.0.286"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -19,7 +19,7 @@ repos:
types: [python]

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.15.0
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies:
Expand Down Expand Up @@ -62,6 +62,7 @@ repos:
- "--paths=pythontemplate"
- "--deps-file=pyproject.toml"
- "--sections=tool.poetry.dependencies"
- "--exclude-deps=rich"

- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
Expand All @@ -71,6 +72,6 @@ repos:
- id: codespell

- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.318
rev: v1.1.324
hooks:
- id: pyright
1 change: 1 addition & 0 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ def main():

if not include_cli:
run([POETRY_BIN, "remove", "typer"])
run([POETRY_BIN, "remove", "rich"])

run([POETRY_BIN, "update"])
run([POETRY_BIN, "install"])
Expand Down
56 changes: 55 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pythontemplate = "pythontemplate.cli.main:run_app"
python = "^3.8"
typer = ">=0.9.0"
typing-extensions = "^4.7.1"
rich = ">=10.11.0"

[tool.poetry.group.docs.dependencies]
sphinx = "~6.2.1"
Expand Down

0 comments on commit ccf9ce2

Please sign in to comment.