Skip to content

Commit

Permalink
feat(deps): Remove upper bounds and fix Typer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusSagen committed Jul 12, 2024
1 parent c9d2833 commit 2dda16e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ isort = { known-first-party = ["heimdall", "tests"] }
mccabe = { max-complexity = 10 }
pydocstyle = { convention = "google" }
exclude = ["*.ipynb"]
ignore = ["E203", "E501", "FIX002", "PTH123", "C901", "PD101", "COM812", "PTH118", "PTH207", "PTH207"]
ignore = ["E203", "E501", "FIX002", "PTH123", "C901", "PD101", "COM812", "PTH118", "PTH207", "PTH207", "UP007"] # Typer does not support UP007
extend-select = ["Q", "RUF100", "C90", "UP", "I", "T", "B", "F", "Q", "COM812"] # "D",
extend-ignore = ["D105", "D107", "D205", "D415", "EM101", "G004", "ARG001", "ARG002", "PD901", "RET504"]
fixable = ["F", "N", "D", "W", "INP", "PLC", "PLR", "PLW", "RUF", "SIM", "Q", "UP", "TID", "I", "EM", "FBT", "PD", "E501"]
Expand Down
3 changes: 2 additions & 1 deletion src/rejx/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import pathlib
import re
from difflib import unified_diff
from typing import Optional

import typer
from rich.console import Console
Expand Down Expand Up @@ -329,7 +330,7 @@ def build_file_tree(rej_files: list) -> Tree:

@app.command()
def ls(
view: str | None = typer.Option("list", help="View as 'list' or 'tree'"),
view: Optional[str] = typer.Option("list", help="View as 'list' or 'tree'"),
) -> None:
"""Lists all .rej files in the current directory and subdirectories.
Expand Down

0 comments on commit 2dda16e

Please sign in to comment.