From 68b01c4fd8cf4727da37e3b664925d5dba9108d4 Mon Sep 17 00:00:00 2001 From: Kartik Singhal Date: Fri, 3 Nov 2023 17:43:08 -0500 Subject: [PATCH] chore: update ruff --- .pre-commit-config.yaml | 2 +- phir/model.py | 1 + requirements.txt | 2 +- ruff.toml | 5 +++++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9cc8a62..d139c13 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: - black==23.10.1 - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.3 + rev: v0.1.4 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/phir/model.py b/phir/model.py index 6a6f6c2..e964996 100644 --- a/phir/model.py +++ b/phir/model.py @@ -7,6 +7,7 @@ ############################################################################## """PHIR model lives here.""" + from __future__ import annotations import abc diff --git a/requirements.txt b/requirements.txt index 922fdfb..3d60ca5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ pydantic==2.4.2 pydata_sphinx_theme==0.14.3 pytest==7.4.3 rich==13.6.0 -ruff==0.1.3 +ruff==0.1.4 setuptools-scm==8.0.4 sphinx==7.2.6 wheel==0.41.3 diff --git a/ruff.toml b/ruff.toml index 0a5f821..dfcfd6d 100644 --- a/ruff.toml +++ b/ruff.toml @@ -72,8 +72,13 @@ select = [ "INP001", ] +ignore = ["COM812", "ISC001"] # conflicting with the formatter + [pydocstyle] convention = "google" [flake8-copyright] author = "Quantinuum LLC" + +[format] +preview = true