Skip to content

Commit

Permalink
Put configs under tool.ruff.lint and sort toml alphabetically
Browse files Browse the repository at this point in the history
Most of ruff's lint rules are now under tool.ruff.lint, so rearranging things a bit.
  • Loading branch information
weiji14 committed Nov 16, 2023
1 parent 6076a50 commit 8c58089
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ wrap-descriptions = 79
[tool.ruff]
line-length = 88 # E501 (line-too-long)
show-source = true

[tool.ruff.format]
line-ending = "lf" # Use UNIX `\n` line endings for all files

[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
Expand All @@ -99,17 +104,14 @@ select = [
]
ignore = ["E501"] # Avoid enforcing line-length violations

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-third-party = ["pygmt"]

[tool.ruff.pycodestyle]
max-doc-length = 79

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # Ignore `F401` (unused-import) in all `__init__.py` files

[tool.ruff.format]
line-ending = "lf" # Use UNIX `\n` line endings for all files
[tool.ruff.lint.pycodestyle]
max-doc-length = 79

[tool.pytest.ini_options]
minversion = "6.0"
Expand Down

0 comments on commit 8c58089

Please sign in to comment.