Skip to content

Commit

Permalink
update ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
melonora committed Mar 11, 2024
1 parent 7c1a3c7 commit be5d9c5
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,31 @@ target-version = ['py38', 'py39', 'py310']


[tool.ruff]
line-length = 79
select = [
"E", "F", "W", #flake8
"UP", # pyupgrade
line-length = 120
lint.select = [
"D", # flake8-docstrings
"I", # isort
"BLE", # flake8-blind-exception
"E", # pycodestyle
"F", # pyflakes
"W", # pycodestyle
"Q", # flake8-quotes
"SIM", # flake8-simplify
"TID", # flake-8-tidy-imports
"NPY", # NumPy-specific rules
"PT", # flake8-pytest-style
"B", # flake8-bugbear
"A", # flake8-builtins
"UP", # pyupgrade
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"G", # flake8-logging-format
"PIE", # flake8-pie
"SIM", # flake8-simplify
"BLE", # flake8-blind-except
"T20", # flake8-print
"RET", # flake8-raise
]
lint.ignore = [
"E501", # line too long. let black handle this
"UP006", "UP007", # type annotation. As using magicgui require runtime type annotation then we disable this.
"SIM117", # flake8-simplify - some of merged with statements are not looking great with black, reanble after drop python 3.9
]
unfixable = ["B", "UP", "C4", "BLE", "T20", "RET"]

exclude = [
".bzr",
Expand All @@ -55,4 +61,6 @@ exclude = [
]

target-version = "py38"
fix = true

[tool.ruff.pydocstyle]
convention = "numpy"

0 comments on commit be5d9c5

Please sign in to comment.