Skip to content

Commit

Permalink
Update pyproject.toml for ruff updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bboe committed Apr 12, 2024
1 parent f8a2d53 commit bd0a294
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ target-version = "py38"
include = [
"praw/**/*.py"
]

[tool.ruff.lint]
ignore = [
"A002", # shadowing built-in
"ANN101", # missing type annotation for self in method
Expand All @@ -97,6 +99,7 @@ ignore = [
"PLR2004", # Magic value used in comparison,
"S101" # use of assert
]
ignore-init-module-imports = true
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
Expand Down Expand Up @@ -137,14 +140,13 @@ select = [
"W", # pycodestyle warnings
"UP" # pyupgrade
]
ignore-init-module-imports = true

[tool.ruff.flake8-annotations]
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
mypy-init-return = true
suppress-dummy-args = true
suppress-none-returning = true

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"praw/models/mod_notes.py" = ["FA100"]

0 comments on commit bd0a294

Please sign in to comment.