10 Commits

Author SHA1 Message Date
ecc45caa46
feat!(deps): upgrade dependencies
Some checks failed
Enforce Conventional Commit PR Title / Validate PR Title (pull_request_target) Failing after 6s
CI / ci (pull_request) Successful in 1m13s
2025-06-06 18:51:16 +01:00
13097b36fb fix(lint): Fix linting issues (#487)
Some checks failed
Security / sonarqube (push) Failing after 36s
Security / snyk (push) Successful in 1m1s
This pull request focuses on improving the documentation and readability of the Webex meme bot application by adding docstrings and minor formatting adjustments. Here's a breakdown of the changes:

*   **Docstrings:**
    *   Added module-level docstrings to `app/close.py`, `app/img.py`, and `app/main.py` providing a high-level overview of the purpose of each module.
    *   Added docstrings to classes (`ExitCommand`, `MakeMemeCommand`, `MakeMemeCallback`) describing their role.
    *   Added docstrings to methods within those classes (`__init__`, `pre_execute`, `execute`, `post_execute`) explaining their functionality, arguments, and return values where applicable. The `get_templates` and `format_meme_string` functions in `app/img.py` have been documented as well.
*   **Formatting:**
    *   Added a line break before the return type annotation in function definitions (e.g., `def execute(...) -> Response:`).
    *   Added the disable comment `# pylint: disable=line-too-long` to a line in `app/meme.py` to disable pylint for that line.
    *   Added the disable comment `# pylint: disable=unused-argument` to the `pre_execute`, `execute`, and `post_execute` methods to disable pylint checks about unused arguments. This is because these methods are part of an interface and must have the same signature even if some arguments are unused.
*   **Variable Naming:**
    *   Renamed the `vars` dictionary to `env_vars` in `tests/test_config.py` for better clarity.
*   **Test Update:**
    *   Added a docstring to the `test_config` function in `tests/test_config.py` to explain its functionality.
*   **Imports Update:**
    *   Updated imports in `tests/test_config.py` to disable pylint for wrong-import-position errors using `# pylint: disable=wrong-import-position`.

In essence, these changes enhance the maintainability and understandability of the codebase through comprehensive documentation and minor code style improvements.

Reviewed-on: #487
2025-06-06 19:39:11 +02:00
9ea669f0fa chore(sentry): remove Sentry 2024-11-28 21:00:21 +00:00
14d7cecc55 chore: add pre-commit 2024-08-04 19:04:40 +01:00
618b8c149b Switch to automatic versioning 2024-04-21 17:20:58 +01:00
f1248df4af Explicitly return None 2024-03-26 22:29:44 +00:00
056dcf4155 Add docstrings 2024-03-26 22:29:44 +00:00
d213f1395d feature(tests): add unit tests 2023-12-14 20:55:17 +00:00
57f0bb9371
v0.1.0 2023-07-21 22:57:14 +01:00
df927977ba
Initial commit 2023-07-21 19:24:30 +01:00