Skip to content

Commit

Permalink
chore: update ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
qartik committed Nov 3, 2023
1 parent 5786ccd commit 68b01c4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions phir/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
##############################################################################

"""PHIR model lives here."""

from __future__ import annotations

import abc
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,13 @@ select = [
"INP001",
]

ignore = ["COM812", "ISC001"] # conflicting with the formatter

[pydocstyle]
convention = "google"

[flake8-copyright]
author = "Quantinuum LLC"

[format]
preview = true

0 comments on commit 68b01c4

Please sign in to comment.