Skip to content

Commit

Permalink
Use ruff to format
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbuwen committed Feb 19, 2024
1 parent 4d1b6fe commit 79d6658
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
run: |
pip install -e .
- name: Check with black
- name: Check with ruff format
run: |
pip install black
black . --check
pip install ruff
ruff format
- name: Check with ruff
run: |
Expand Down
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ dev = [
"pytest",
"pytest-coverage",
"hypothesis",
"black",
"mypy",
"ruff>=0.2.1",
]
Expand Down Expand Up @@ -102,6 +101,7 @@ implicit_reexport = false
strict_equality = true

[tool.ruff]
preview = true
exclude = ["venv", "env", "build"]
line-length = 100
target-version = "py38"
Expand All @@ -112,10 +112,12 @@ ignore = [
"A003",
"ANN10", "ANN401",
"B028",
"COM812",
"D",
"EM101", "EM102",
"FBT001", "FBT002",
"G004",
"ISC001",
"N999",
"PD901",
"PLR0911",
Expand Down Expand Up @@ -151,3 +153,7 @@ ignore = [

[tool.ruff.lint.pylint]
max-args = 7

[tool.ruff.format]
docstring-code-format = true
quote-style = "preserve"

0 comments on commit 79d6658

Please sign in to comment.