[pre-commit.ci] pre-commit autoupdate (#154)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/tox-dev/pyproject-fmt: 1.8.0 → 2.1.3](https://github.com/tox-dev/pyproject-fmt/compare/1.8.0...2.1.3)
- [github.com/astral-sh/ruff-pre-commit: v0.4.2 → v0.4.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.2...v0.4.7)
- [github.com/rhysd/actionlint: v1.6.27 → v1.7.1](https://github.com/rhysd/actionlint/compare/v1.6.27...v1.7.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
pre-commit-ci[bot]
2024-06-04 00:56:45 +02:00
committed by GitHub
parent 36e226904e
commit c27f9f7af3
2 changed files with 28 additions and 19 deletions

View File

@ -4,7 +4,7 @@ repos:
# Apply a consistent format to pyproject.toml files. # Apply a consistent format to pyproject.toml files.
# https://pyproject-fmt.readthedocs.io/en/latest/ # https://pyproject-fmt.readthedocs.io/en/latest/
- repo: https://github.com/tox-dev/pyproject-fmt - repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.8.0" rev: "2.1.3"
hooks: hooks:
- id: pyproject-fmt - id: pyproject-fmt
@ -42,7 +42,7 @@ repos:
# An extremely fast Python linter and formatter. # An extremely fast Python linter and formatter.
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2 rev: v0.4.7
hooks: hooks:
- id: ruff-format - id: ruff-format
- id: ruff - id: ruff
@ -50,6 +50,6 @@ repos:
# Static checker for GitHub Actions workflow files. # Static checker for GitHub Actions workflow files.
- repo: https://github.com/rhysd/actionlint - repo: https://github.com/rhysd/actionlint
rev: v1.6.27 rev: v1.7.1
hooks: hooks:
- id: actionlint - id: actionlint

View File

@ -1,8 +1,16 @@
[build-system]
build-backend = "poetry.core.masonry.api"
requires = [
"poetry-core>=1",
]
[tool.poetry] [tool.poetry]
name = "discord-embed" name = "discord-embed"
version = "1.0.0" version = "1.0.0"
description = "Make nice embeds for Discord" 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" license = "GPL-3.0-or-later"
[tool.poetry.dependencies] [tool.poetry.dependencies]
@ -13,32 +21,33 @@ discord-webhook = "^1.3.1"
python-multipart = "^0.0.9" python-multipart = "^0.0.9"
python-dotenv = "^1.0.1" python-dotenv = "^1.0.1"
Jinja2 = "^3.1.3" Jinja2 = "^3.1.3"
uvicorn = { extras = ["standard"], version = "^0.30.0" } uvicorn = { extras = [
"standard",
], version = "^0.30.0" }
[tool.poetry.group.dev.dependencies] [tool.poetry.group.dev.dependencies]
httpx = "^0.27.0" httpx = "^0.27.0"
pytest = "^8.2.0" pytest = "^8.2.0"
pre-commit = "^3.7.0" pre-commit = "^3.7.0"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = [
"poetry-core>=1",
]
[tool.ruff] [tool.ruff]
preview = true
fix = true fix = true
unsafe-fixes = true unsafe-fixes = true
preview = true select = [
select = ["ALL"] "ALL",
ignore = ["D100", "D104", "CPY001", "ANN201", "RUF029"] ]
ignore = [
"D100",
"D104",
"CPY001",
"ANN201",
"RUF029",
]
[tool.ruff.pydocstyle] per-file-ignores."tests/**/*.py" = [
convention = "google"
[tool.ruff.per-file-ignores]
"tests/**/*.py" = [
"S101", # asserts allowed in tests... "S101", # asserts allowed in tests...
"ARG", # Unused function args -> fixtures nevertheless are functionally relevant... "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() "FBT", # Don't care about booleans as positional arguments in tests, e.g. via @pytest.mark.parametrize()
] ]
pydocstyle.convention = "google"