Move to Docker; remove Logfire; small prompt fixes
All checks were successful
CI / ci (push) Successful in 15s

This commit is contained in:
Joakim Hellsén 2026-08-08 20:52:36 +02:00
commit bd939c94c2
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
13 changed files with 1830 additions and 258 deletions

View file

@ -5,16 +5,14 @@ description = "My shit bot"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"audioop-lts",
"discord-py",
"httpx",
"logfire[httpx]",
"numpy",
"ollama",
"openai",
"opencv-contrib-python-headless",
"psutil",
"pydantic-ai-slim[duckduckgo,openai]",
"pydantic-ai-slim[openai]",
"python-dotenv",
"sentry-sdk",
]
@ -37,31 +35,31 @@ lint.pydocstyle.convention = "google"
lint.select = ["ALL"]
# Don't automatically remove unused variables
lint.unfixable = ["F841"]
lint.unfixable = ["unused-variable"]
lint.ignore = [
"CPY001", # Checks for the absence of copyright notices within Python files.
"D100", # Checks for undocumented public module definitions.
"D104", # Checks for undocumented public package definitions.
"D106", # Checks for undocumented public class definitions, for nested classes.
"ERA001", # Checks for commented-out Python code.
"FIX002", # Checks for "TODO" comments.
"missing-copyright-notice", # Checks for the absence of copyright notices within Python files.
"undocumented-public-module", # Checks for undocumented public module definitions.
"undocumented-public-package", # Checks for undocumented public package definitions.
"undocumented-public-nested-class", # Checks for undocumented public class definitions, for nested classes.
"commented-out-code", # Checks for commented-out Python code.
"line-contains-todo", # Checks for "TODO" comments.
# Conflicting lint rules when using Ruff's formatter
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"COM812", # Checks for the absence of trailing commas.
"COM819", # Checks for the presence of prohibited trailing commas.
"D206", # Checks for docstrings that are indented with tabs.
"D300", # Checks for docstrings that use '''triple single quotes''' instead of """triple double quotes""".
"E111", # Checks for indentation with a non-multiple of 4 spaces.
"E114", # Checks for indentation of comments with a non-multiple of 4 spaces.
"E117", # Checks for over-indented code.
"ISC001", # Checks for implicitly concatenated strings on a single line.
"ISC002", # Checks for implicitly concatenated strings that span multiple lines.
"Q000", # Checks for inline strings that use single quotes or double quotes, depending on the value of the lint.flake8-quotes.inline-quotes option.
"Q001", # Checks for multiline strings that use single quotes or double quotes, depending on the value of the lint.flake8-quotes.multiline-quotes setting.
"Q002", # Checks for docstrings that use single quotes or double quotes, depending on the value of the lint.flake8-quotes.docstring-quotes setting.
"Q003", # Checks for strings that include escaped quotes, and suggests changing the quote style to avoid the need to escape them.
"W191", # Checks for indentation that uses tabs.
"missing-trailing-comma", # Checks for the absence of trailing commas.
"prohibited-trailing-comma", # Checks for the presence of prohibited trailing commas.
"docstring-tab-indentation", # Checks for docstrings that are indented with tabs.
"triple-single-quotes", # Checks for docstrings that use '''triple single quotes''' instead of """triple double quotes""".
"indentation-with-invalid-multiple", # Checks for indentation with a non-multiple of 4 spaces.
"indentation-with-invalid-multiple-comment", # Checks for indentation of comments with a non-multiple of 4 spaces.
"over-indented", # Checks for over-indented code.
"single-line-implicit-string-concatenation", # Checks for implicitly concatenated strings on a single line.
"multi-line-implicit-string-concatenation", # Checks for implicitly concatenated strings that span multiple lines.
"bad-quotes-inline-string", # Checks for inline strings that use single quotes or double quotes, depending on the value of the lint.flake8-quotes.inline-quotes option.
"bad-quotes-multiline-string", # Checks for multiline strings that use single quotes or double quotes, depending on the value of the lint.flake8-quotes.multiline-quotes setting.
"bad-quotes-docstring", # Checks for docstrings that use single quotes or double quotes, depending on the value of the lint.flake8-quotes.docstring-quotes setting.
"avoidable-escaped-quote", # Checks for strings that include escaped quotes, and suggests changing the quote style to avoid the need to escape them.
"tab-indentation", # Checks for indentation that uses tabs.
]
@ -69,10 +67,10 @@ lint.ignore = [
"**/test_*.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()
"PLR2004", # Magic value used in comparison, ...
"PLR6301", # Method could be a function, class method, or static method
"S101", # asserts allowed in tests...
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"magic-value-comparison", # Magic value used in comparison, ...
"no-self-use", # Method could be a function, class method, or static method
"assert", # asserts allowed in tests...
"suspicious-non-cryptographic-random-usage", # Standard pseudo-random generators are not suitable for cryptographic purposes
]
# https://pytest-django.readthedocs.io/en/latest/