Skip to content

Commit

Permalink
build(format): switch to Ruff for formatting
Browse files Browse the repository at this point in the history
Upgrade Ruff.
Disable two ignores.
  • Loading branch information
dbohdan committed Nov 2, 2023
1 parent f25d457 commit d8db985
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 121 deletions.
135 changes: 19 additions & 116 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ colorama = "^0.4.6"
rich-argparse = "^1.4.0"

[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
ruff = "0.1.0"
ruff = "0.1.3"
tomli = "^2.0.1"
types-python-dateutil = "^2.8.19.13"
types-pyyaml = "^6.0.12.10"
Expand Down Expand Up @@ -103,8 +102,8 @@ cmd = "echo ${PYTHON_SOURCES}"
help = "Print the list of files used for static checks"

[tool.poe.tasks.format]
cmd = "black ${PYTHON_SOURCES}"
help = "Run Black"
cmd = "ruff format ${PYTHON_SOURCES}"
help = "Run the Ruff formatter"

[tool.poe.tasks.lint]
cmd = "ruff check ${PYTHON_SOURCES}"
Expand Down Expand Up @@ -184,7 +183,12 @@ select = [
# "TRY", # tryceratops
# "UP", # pyupgrade
]
ignore = ["A002", "B006", "FBT002", "PGH003"]
ignore = [
"A002", # builtin-argument-shadowing
"COM812", # missing-trailing-comma
"ISC001", # single-line-implicit-string-concatenation
"PGH003", # blanket-type-ignore
]
src = ["src", "tests"]
target-version = "py38"

Expand Down

0 comments on commit d8db985

Please sign in to comment.