Skip to content

Commit

Permalink
Merge pull request #156 from jGaboardi/GH150_update_formatting
Browse files Browse the repository at this point in the history
`ruff` format repo
  • Loading branch information
knaaptime authored Sep 2, 2024
2 parents 32d773e + 8a0969d commit f50f0b1
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 f50f0b1

Please sign in to comment.