Fix Ruff warnings
This commit is contained in:
@ -8,9 +8,7 @@ requires = [
|
||||
name = "discord-embed"
|
||||
version = "1.0.0"
|
||||
description = "Make nice embeds for Discord"
|
||||
authors = [
|
||||
"Joakim Hellsén <tlovinator@gmail.com>",
|
||||
]
|
||||
authors = [ "Joakim Hellsén <tlovinator@gmail.com>" ]
|
||||
license = "GPL-3.0-or-later"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
@ -20,34 +18,32 @@ ffmpeg-python = "^0.2.0"
|
||||
discord-webhook = "^1.3.1"
|
||||
python-multipart = "^0.0.9"
|
||||
python-dotenv = "^1.0.1"
|
||||
Jinja2 = "^3.1.3"
|
||||
uvicorn = { extras = [
|
||||
"standard",
|
||||
], version = "^0.30.0" }
|
||||
Jinja2 = "^3.1.4"
|
||||
uvicorn = { extras = [ "standard" ], version = "^0.30.0" }
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
httpx = "^0.27.0"
|
||||
pytest = "^8.2.0"
|
||||
pre-commit = "^3.7.0"
|
||||
pytest = "^8.3.2"
|
||||
pre-commit = "^3.7.1"
|
||||
|
||||
[tool.ruff]
|
||||
preview = true
|
||||
fix = true
|
||||
unsafe-fixes = true
|
||||
select = [
|
||||
lint.select = [
|
||||
"ALL",
|
||||
]
|
||||
ignore = [
|
||||
lint.ignore = [
|
||||
"ANN201",
|
||||
"CPY001",
|
||||
"D100",
|
||||
"D104",
|
||||
"CPY001",
|
||||
"ANN201",
|
||||
"RUF029",
|
||||
]
|
||||
|
||||
per-file-ignores."tests/**/*.py" = [
|
||||
"S101", # asserts allowed in tests...
|
||||
lint.per-file-ignores."tests/**/*.py" = [
|
||||
"ARG", # Unused function args -> fixtures nevertheless are functionally relevant...
|
||||
"FBT", # Don't care about booleans as positional arguments in tests, e.g. via @pytest.mark.parametrize()
|
||||
"S101", # asserts allowed in tests...
|
||||
]
|
||||
pydocstyle.convention = "google"
|
||||
lint.pydocstyle.convention = "google"
|
||||
|
Reference in New Issue
Block a user