Skip to content

Commit

Permalink
default all ruff warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed Jul 27, 2024
1 parent 9507fb7 commit c7ef2f9
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 69 deletions.
Empty file added hunt/chat/__init__.py
Empty file.
3 changes: 2 additions & 1 deletion hunt/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def __str__(self) -> str:
@receiver(post_save, sender=User)
def create_hunt_info(
sender: type[User], # noqa: ARG001
*,
instance: User,
created: bool,
**kwargs: Any, # noqa: ARG001
Expand Down Expand Up @@ -81,7 +82,7 @@ def hint_delete(
**kwargs: Any, # noqa: ARG001
) -> None:
if instance.image:
instance.image.delete(False)
instance.image.delete(save=False)


class AppSetting(models.Model):
Expand Down
Empty file added hunt/third_party/__init__.py
Empty file.
60 changes: 31 additions & 29 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 9 additions & 38 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,45 +79,16 @@ extend-exclude = [
target-version = "py312"

[tool.ruff.lint]
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"ASYNC", # flake8-async
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"DJ", # flake8-django
"DTZ", # flake8-datetimez
"E", # pycodestyle
"EM", # flake8-errmsg
"EXE", # flake8-executable
"F", # pyflakes
"FLY", # flynt
"FURB", # refurb
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-string-concat
"N", # pep8-naming
"PERF", # perflint
"PIE", # flake8-pie
"PLC", # pylint conventions
"PLE", # pylint errors
"PLW", # pylint warnings
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # ruff
"S", # flake8-bandit
"SIM", # flake8-simplify
"SLF", # flake8-self
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pycodestyle
]
select = ["ALL"]
ignore = [
"ANN", # flake8-annotations
"C90", # mccabe
"COM", # flake8-commas
"D", # pydocstyle
"ERA", # eradicate
"PD", # pandas-vet
"PLR", # pylint-refactor
"T20", # flake8-print
"E203", # whitespace before ':'
"S101", # assert-used
]
Expand Down
2 changes: 1 addition & 1 deletion treasure/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "treasure.settings")
app = get_asgi_application()

from hunt.chat import routing # noqa
from hunt.chat import routing # noqa: E402

application = ProtocolTypeRouter(
{
Expand Down

0 comments on commit c7ef2f9

Please sign in to comment.