Skip to content

Commit

Permalink
Update pre-commit and add initial type hints (#177)
Browse files Browse the repository at this point in the history
* update pre-commit

* add typing; fix product for tests
  • Loading branch information
akaszynski authored Jul 10, 2024
1 parent 628dddf commit 2c78d5c
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 139 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ repos:
- id: blackdoc
files: '\.py$'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
rev: v0.5.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
exclude: ^(docs/|tests)
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
args: [-S ./docs/\*]
Expand All @@ -27,7 +27,7 @@ repos:
additional_dependencies: [toml]
exclude: "tests/"
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
rev: v3.16.0
hooks:
- id: pyupgrade
args: [--py38-plus, --keep-runtime-typing]
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,7 @@ combine_as_imports = true

[tool.ruff]
line-length = 100

[tool.ruff.lint]
select = ["E", "F", "W", "I001"] # pyflakes, pycodestyle, isort
ignore = []
Loading

0 comments on commit 2c78d5c

Please sign in to comment.