Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ repos:
types_or: [css, html, json]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.2
rev: v0.15.4
hooks:
# Run the linter.
- id: ruff-check
# args: [--statistics]
args: [--fix, --show-fixes]
args: [--fix, --show-fixes, --unsafe-fixes]
# Run the formatter.
- id: ruff-format
# args: [--diff]
6 changes: 3 additions & 3 deletions ecobidas/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def cli(argv: Sequence[str] = sys.argv) -> None:
verbosity = args.verbosity
set_verbosity(verbosity)

if args.command in ["convert"]:
if args.command == "convert":
schema = args.schema[0]
output_dir = args.output_dir
repo = args.repo
Expand All @@ -48,12 +48,12 @@ def cli(argv: Sequence[str] = sys.argv) -> None:
convert(schema, output_dir, repo, branch)
sys.exit(0)

if args.command in ["update"]:
if args.command == "update":
schema = args.schema[0]
download_spreadsheet(schema=schema)
sys.exit(0)

if args.command in ["serve"]:
if args.command == "serve":
folder = args.folder if args.folder is None else args.folder[0]
serve(folder=folder)
sys.exit(0)
Expand Down
Loading