Skip to content

Commit

Permalink
Remove black as a formatter and update ruff config according to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
IanHopkinson committed Feb 5, 2024
1 parent ecc884c commit 1e8b924
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .config/ruff.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
line-length = 79
exclude = ["_version.py"]
ignore = [
lint.ignore = [
"E501" # Line too long
]
# List of rules: https://beta.ruff.rs/docs/rules/
select = [
lint.select = [
"E", # pycodestyle - default
"F", # pyflakes - default
"I" # isort
]

[isort]
[lint.isort]
known-local-folder = ["hdx"]
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,14 @@ python = ["3.11"]
[tool.hatch.envs.lint]
detached = true
dependencies = [
"black",
"ruff",
]

[tool.hatch.envs.lint.scripts]
style = [
"ruff --config .config/ruff.toml {args:.}",
"black --config .config/black.toml --check --diff {args:.}",
]
# Not used for anything at the moment
fmt = [
"black --config .config/black.toml {args:.}",
"ruff --config .config/ruff.toml --fix {args:.}",
]

0 comments on commit 1e8b924

Please sign in to comment.