From 101a3bdafcd2f0ac3199250ef60d9ffa75f0a8df Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Thu, 28 Mar 2024 20:24:26 -0400 Subject: [PATCH] update pre-commit --- .pre-commit-config.yaml | 12 ++++-------- pyproject.toml | 3 ++- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e4355b2..7e35fa3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,24 +5,20 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.4 + rev: v0.3.4 hooks: - id: ruff args: [--fix] + - id: ruff-format - repo: https://github.com/MarcoGorelli/cython-lint - rev: v0.15.0 + rev: v0.16.0 hooks: - id: cython-lint - id: double-quote-cython-strings - - repo: https://github.com/psf/black - rev: 23.10.1 - hooks: - - id: black - - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.6.1 + rev: v1.9.0 hooks: - id: mypy files: "^ilpy/" diff --git a/pyproject.toml b/pyproject.toml index 608a0cd..8814f1f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,6 @@ dependencies = [] dev = [ "ruff", "mypy", - "black", "pytest", "pytest-cov", "cython", @@ -51,6 +50,8 @@ readme = { file = ["README.md"] } [tool.ruff] target-version = "py38" src = ["ilpy"] + +[tool.ruff.lint] select = [ "F", # pyflakes "W", # pyflakes