Skip to content
Draft
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
9 changes: 3 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,10 @@ repos:

- repo: local
hooks:
- id: mypy
name: mypy
- id: ty
name: ty
language: python
additional_dependencies:
- venv-run==0.2.0
entry: venv-run mypy
args: [--config-file=test/setup.cfg]
entry: ty check --python .venv .
types: [python]
# Intentionally not run on helpers-core/python (we support very old versions)
exclude: ^completions-(core|fallback)/|^test/fixtures/pytest/
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[project]
name = "bash-completion"
dynamic = ["version"]
requires-python = ">= 3.7"

[tool.ruff]
line-length = 79
target-version = "py37"
lint.select = ["E", "F", "B", "I"]
lint.ignore = [
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
Expand Down
2 changes: 1 addition & 1 deletion test/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

-r requirements.txt

mypy==1.8.0
ruff==0.15.6
ty==0.0.26
6 changes: 0 additions & 6 deletions test/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,3 @@ minversion = 3.6
markers =
bashcomp
complete

[mypy]
python_version = 3.6
mypy_path = $MYPY_CONFIG_FILE_DIR/t
show_error_codes = true
enable_error_code = ignore-without-code,redundant-self,truthy-iterable
Loading