Skip to content

Commit

Permalink
chore: Update pre-commit versions
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty committed Jan 5, 2025
1 parent 3cb05fd commit b00f869
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
default_language_version:
python: python3.11
default_stages: [commit]
default_stages: [pre-commit]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
rev: v0.8.4
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
rev: v1.14.0
hooks:
- id: mypy
- repo: https://github.com/python-poetry/poetry
Expand Down
6 changes: 2 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
"""Nox session configuration."""

from typing import List

import nox
from nox.sessions import Session

PACKAGE: str = "pyprql"
LOCATIONS: List[str] = [
LOCATIONS: list[str] = [
PACKAGE,
"noxfile.py",
]
VERSIONS: List[str] = [
VERSIONS: list[str] = [
"3.8",
"3.9",
"3.10",
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ requires = ["poetry-core>=1.3.0"]

[tool.ruff]
fix = true
exclude = ["docs/PRQL_Demo.ipynb"] # doesn't seem to like the `%prql` magic?
[tool.ruff.lint]
# E402: module level import not at top of file
# E501: line too long - let black worry about that
# E501: line too long - let the formatter about that
# E731: do not assign a lambda expression, use a def
extend-safe-fixes = [
"TID252", # absolute imports
Expand Down

0 comments on commit b00f869

Please sign in to comment.