Skip to content

Commit

Permalink
ruff format repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jGaboardi committed Sep 1, 2024
1 parent d92edcb commit 8a0969d
Show file tree
Hide file tree
Showing 40 changed files with 2,952 additions and 1,672 deletions.
16 changes: 10 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
repos:
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
language_version: python3
files: "spreg\/"
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.6.3"
hooks:
- id: ruff-format

ci:
autofix_prs: false
autoupdate_schedule: quarterly
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,10 @@ tests = [
[tool.setuptools.packages.find]
include = ["spreg", "spreg.*"]

[tool.black]
line-length = 88

[tool.ruff]
line-length = 88
select = ["E", "F", "W", "I", "UP", "N", "B", "A", "C4", "SIM", "ARG"]
ignore = [
lint.select = ["E", "F", "W", "I", "UP", "N", "B", "A", "C4", "SIM", "ARG"]
lint.ignore = [
"B006",
"B008",
"B009",
Expand Down
1 change: 0 additions & 1 deletion spreg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import contextlib
from importlib.metadata import PackageNotFoundError, version

Expand Down
Loading

0 comments on commit 8a0969d

Please sign in to comment.