Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganizing QDM related methods #216

Merged
merged 8 commits into from
May 24, 2024
Prev Previous commit
Next Next commit
Combining ruff setup from PR #215
To keep the following PR cleaner, this commit moves and combines a few
ruff setup from that PR into here.

style: Adding 'F' into ruff's checks

  It seems to be the only one conforming.

cfg: Missing to ignore F401

  Following @bnb32 setup.

style: Ignore F401 only on __init__

  Thanks to @ppinchuk 's tip! I missed that before.

Ignoring unused import in docs

Including Warning (W) rules
  • Loading branch information
castelao committed May 20, 2024
commit 9456dd3558383b527e027c202757f45cf566cafd
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ fixable = ["ALL"]
preview = true
select = [
"E", # pycodestyle
"F", # Pyflakes
"W", # Warning
]

ignore = [
"B008", # function-call-in-default-argument
"B024", # abstract-base-class-without-abstract-method
Expand All @@ -100,6 +103,14 @@ ignore = [
"UP038" # non-pep604-isinstance
]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # unused-import
]
"docs/source/conf.py" = [
"E402", # unused-import
]

[tool.ruff.format]
quote-style = "single"
indent-style = "space"
Expand Down
Loading