Skip to content

Commit

Permalink
Switch to ruff formatting (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep authored Oct 31, 2023
1 parent 72ca6c1 commit d48ad43
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
5 changes: 1 addition & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,9 @@ repos:
files: "^packages/.*$"
exclude: "^packages/.*/meta.yaml$"
# template repo registry
- repo: https://github.com/psf/black
rev: "23.10.1"
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
6 changes: 0 additions & 6 deletions scripts/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ fallback-version = "0.0"
[tool.hatch.envs.default]
python = "3.11"

[tool.black]
target-version = ["py310"] # py311 not supported yet
line-length = 120

[tool.ruff]
target-version = "py311"
line-length = 120
select = [
"A",
Expand All @@ -56,7 +51,6 @@ select = [
"PLE",
"PLR",
"PLW",
"Q",
"RUF",
"S",
"T",
Expand Down

0 comments on commit d48ad43

Please sign in to comment.