Skip to content

Commit

Permalink
chore: migrate to ruff formatter
Browse files Browse the repository at this point in the history
Change-Id: I5ce7fec5759e3b5f10220e4cd7b876dca1f8f37d
  • Loading branch information
DouglasBlackwood committed Nov 10, 2023
1 parent 146a176 commit fd0dd98
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 89 deletions.
2 changes: 1 addition & 1 deletion poe.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ help = "Run linters"
default_item_type = "cmd"
sequence = [
"ruff check .",
"black --check .",
"ruff format --check .",
"mypy",
]
86 changes: 2 additions & 84 deletions poetry.lock

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

7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ source = "git-tag"
[tool.poetry.group.dev.dependencies]
mypy = {version = ">=0.930"}
mypy-extensions = "^1.0.0"
black = "^23.7.0"
ruff = ">=0.0.277,<0.1.6"
pytest = {version = ">=6.2.5"}
poethepoet = ">=0.21,<0.25"
Expand All @@ -28,9 +27,6 @@ mergify = 'mergify_cli:cli'
[tool.poe]
include = ["poe.toml"]

[tool.black]
target-version = ['py311']

[tool.mypy]
strict = true
warn_unreachable = true
Expand All @@ -40,6 +36,7 @@ show_error_codes = true

[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py311"
select = [
"E", "W", "F", "I", "A", "B", "Q",
Expand All @@ -53,6 +50,8 @@ select = [
]

ignore = [
# NOTE(sileht): not compatible with ruff-format
"ISC001",
# NOTE(sileht): line-length is up to black
"E501",
# NOTE(sileht): we prefer using exc_info=True
Expand Down

0 comments on commit fd0dd98

Please sign in to comment.