Skip to content

Commit

Permalink
Added Test, range, reverse, typing_cast, subprocess, collect, pipe (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlavioAmurrioCS authored Sep 1, 2024
1 parent 906ca07 commit ab5ef29
Show file tree
Hide file tree
Showing 5 changed files with 824 additions and 47 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- id: reorder-python-imports
args: [--py37-plus, --add-import, "from __future__ import annotations"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.2
rev: v0.6.3
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
Expand All @@ -29,7 +29,7 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
rev: v1.11.2
hooks:
- id: mypy
additional_dependencies:
Expand Down
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ ignore = [
"D203", # one-blank-line-before-class
"D212", # multi-line-summary-first-line
"D401", # non-imperative-mood
"D417",
]

[tool.ruff.format]
Expand All @@ -159,7 +160,8 @@ docstring-code-line-length = 100
# https://github.com/astral-sh/ruff/issues/4368
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"S101", # assert
"E501", # line-too-long
"INP001", # implicit-namespace-package
"S101", # assert
"E501", # line-too-long
"INP001", # implicit-namespace-package
"PLR2004",
]
2 changes: 1 addition & 1 deletion src/dev_toolbox/cli/version_bump.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def main(argv: Sequence[str] | None = None) -> int:
print(f"Old version: {latest_tag}")
print(f"New version: {_new_version_tag}")

if input("Should we tag and push the new version?").lower() not in {"yes", "y"}:
if input("Should we tag and push the new version? ").lower() not in {"yes", "y"}:
return 0

quick_run(("git", "tag", _new_version_tag))
Expand Down
Loading

0 comments on commit ab5ef29

Please sign in to comment.