aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2025-01-29Move EmbedFileHandler cog to its own moduleGravatar Steele Farnsworth-87/+111
2025-01-29Add helper function for extracting attachment text.Gravatar Steele Farnsworth-1/+8
Implements a somewhat arbitrary limit on how much text content is passed along for filtering, to avoid wasting compute time on large attachments that aren't intended to be read (such as CSVs)
2025-01-19Apply token filters to text attachment content.Gravatar Steele Farnsworth-1/+10
Works by appending text attachment content to message content, and then applying the filters normally.
2025-01-19Migrate to py3.12 typing syntax.Gravatar Steele Farnsworth-9/+5
2025-01-12Migrate to py3.12 generic syntax (removes TypeVar).Gravatar Steele Farnsworth-4/+1
2025-01-12work-in-progress: when upload a text file attachment, ask for permission to ↵Gravatar Steele Farnsworth-2/+92
auto-upload to pastebin. Also DMs the delete URL to the user. This code will very likely be moved elsewhere before/if it is merged.
2025-01-10Further abbreviate the "wrong language specifier" message; remove extra ↵Gravatar Steele Farnsworth-7/+5
"please".
2025-01-08Abbreviate codeblock instructions; remove ability to dismiss the ↵Gravatar Steele Farnsworth-25/+8
instructions with emoji. The more concise instructions are intended to be easier to read and increase the rate of followthru. That the instructions cannot be dismissed is intended to make them harder to ignore.
2025-01-05Remove unneeded importGravatar Chris Lovering-2/+1
2025-01-04Re-fetch help threads before closing.Gravatar Steele Farnsworth-0/+4
This ensures that the thread title is up-to-date. Previously, even if someone changed the title of the thread, the bot might prepend the lock emoji to an older version of the title.
2025-01-03Bump pydantic-settings from 2.6.1 to 2.7.1 (#3222)Gravatar dependabot[bot]-5/+5
Bumps [pydantic-settings](https://github.com/pydantic/pydantic-settings) from 2.6.1 to 2.7.1. - [Release notes](https://github.com/pydantic/pydantic-settings/releases) - [Commits](https://github.com/pydantic/pydantic-settings/compare/v2.6.1...v2.7.1) --- updated-dependencies: - dependency-name: pydantic-settings dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-03Bump rapidfuzz from 3.10.1 to 3.11.0 (#3223)Gravatar dependabot[bot]-91/+91
Bumps [rapidfuzz](https://github.com/rapidfuzz/RapidFuzz) from 3.10.1 to 3.11.0. - [Release notes](https://github.com/rapidfuzz/RapidFuzz/releases) - [Changelog](https://github.com/rapidfuzz/RapidFuzz/blob/main/CHANGELOG.rst) - [Commits](https://github.com/rapidfuzz/RapidFuzz/compare/v3.10.1...v3.11.0) --- updated-dependencies: - dependency-name: rapidfuzz dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-03Bump pytest-subtests from 0.13.1 to 0.14.1 (#3225)Gravatar dependabot[bot]-7/+7
Bumps [pytest-subtests](https://github.com/pytest-dev/pytest-subtests) from 0.13.1 to 0.14.1. - [Release notes](https://github.com/pytest-dev/pytest-subtests/releases) - [Changelog](https://github.com/pytest-dev/pytest-subtests/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-subtests/compare/v0.13.1...v0.14.1) --- updated-dependencies: - dependency-name: pytest-subtests dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-03Bump sentry-sdk from 2.19.0 to 2.19.2 (#3224)Gravatar dependabot[bot]-5/+5
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 2.19.0 to 2.19.2. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/2.19.0...2.19.2) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-30Fix rendering of markdown headers in docsGravatar wookie184-1/+2
2024-12-30Remove surrounding whitespace from doc description markdownGravatar wookie184-1/+18
2024-12-30Bump markdownify from 0.13.1 to 0.14.1Gravatar dependabot[bot]-5/+5
Bumps [markdownify](https://github.com/matthewwithanm/python-markdownify) from 0.13.1 to 0.14.1. - [Release notes](https://github.com/matthewwithanm/python-markdownify/releases) - [Commits](https://github.com/matthewwithanm/python-markdownify/compare/0.13.1...0.14.1) --- updated-dependencies: - dependency-name: markdownify dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2024-12-30Bump ruff from 0.8.0 to 0.8.4 (#3220)Gravatar dependabot[bot]-21/+21
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.8.0 to 0.8.4. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.8.0...0.8.4) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-30Bump pytest from 8.3.3 to 8.3.4 (#3219)Gravatar dependabot[bot]-5/+5
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.3.3 to 8.3.4. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.3.3...8.3.4) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-30Bump httpx from 0.27.2 to 0.28.1 (#3218)Gravatar dependabot[bot]-6/+5
Bumps [httpx](https://github.com/encode/httpx) from 0.27.2 to 0.28.1. - [Release notes](https://github.com/encode/httpx/releases) - [Changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md) - [Commits](https://github.com/encode/httpx/compare/0.27.2...0.28.1) --- updated-dependencies: - dependency-name: httpx dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-29Bump coverage from 7.6.7 to 7.6.10 (#3217)Gravatar dependabot[bot]-65/+65
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.6.7 to 7.6.10. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.6.7...7.6.10) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-29Bump aiohttp from 3.11.7 to 3.11.11 (#3216)Gravatar dependabot[bot]-79/+79
--- updated-dependencies: - dependency-name: aiohttp dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-29Bump taskipy from 1.14.0 to 1.14.1 (#3206)Gravatar dependabot[bot]-7/+7
Bumps [taskipy](https://github.com/taskipy/taskipy) from 1.14.0 to 1.14.1. - [Release notes](https://github.com/taskipy/taskipy/releases) - [Commits](https://github.com/taskipy/taskipy/compare/1.14.0...1.14.1) --- updated-dependencies: - dependency-name: taskipy dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-03Heroku is no longer freeGravatar Krypton-1/+1
2024-11-27Don't ignore newlines when filtering invites (#3207)Gravatar Boris Muratov-4/+4
2024-11-23Bump pydis-core to 11.5.1Gravatar Chris Lovering-5/+5
2024-11-23Sort __all__ in snekboxGravatar Chris Lovering-1/+1
2024-11-23Branding: improve decorator nameGravatar kwzrd-3/+3
2024-11-23Branding: do not invoke calendar after refreshGravatar kwzrd-2/+0
We now send a result embed after refresh. It would be noisy to also send the calendar embed. Users can invoke the calendar manually if desired.
2024-11-23Branding: retry GitHub server errorsGravatar kwzrd-8/+35
Use the tenacity lib to retry 5xx responses from GitHub.
2024-11-23Branding: handle repo errors in cogGravatar kwzrd-29/+37
If we fail to fetch an event, the whole branding sync will now be aborted. This will prevent situations where we fail to fetch the current event due to a 5xx error and the cog resorts to the fallback branding in the middle of an event. Error handling is moved to the cog. The repo abstraction will now propagate errors rather than silence them.
2024-11-23Deps: add tenacityGravatar kwzrd-1/+17
2024-11-23Remove deprecated ruff rulesGravatar Chris Lovering-1/+1
2024-11-23Set ruff to use concise output and suggest unsafe fixesGravatar Chris Lovering-0/+2
2024-11-23Bump deps to latestGravatar Chris Lovering-1190/+1322
Deepdiff 7.0.1 -> 8.0.1 was left out as it seems the breaking changes could actually effect us
2024-11-23Drop newlines and url unquote messages before passing through invite filter ↵Gravatar ChrisJL-5/+11
(#3184)
2024-11-23fix: Replace unfriendly error messages (#3194)Gravatar dd84ai-3/+4
* fix: Replace unfriendly error messages Reviewed msgs that looked hurtful and not desirable And offered to replace with some alternative joke options refactor: error should start with capital errors Co-authored-by: Bradley Reynolds <[email protected]> * refactor: Update bot/constants.py with offered suggestion Co-authored-by: wookie184 <[email protected]> --------- Co-authored-by: Bradley Reynolds <[email protected]> Co-authored-by: wookie184 <[email protected]>
2024-11-23Sanitize MSVC++ build tools link for Discord (#3197)Gravatar thurisatic-1/+1
Discord does not like periods (.) in aliased URLs, so in embeds, this section of markdown is not rendered. Bare URLs, though, get made into links, and it looks just fine.
2024-11-14Prevent 3.13's ANSI escapes from mangling pinwand uploadsGravatar Thurisatic-1/+5
2024-11-14Add eval output highlight language to support ANSI colorsGravatar Thurisatic-4/+4
2024-10-07Ensure eval version buttons ascend in release dateGravatar Chris Lovering-2/+3
2024-10-07Special case Python versions ending in t for eval outputGravatar Chris Lovering-1/+2
A t suffix means it's a free threading version. For these versions we want to link users to what that means
2024-10-07Add support for 3.13t in evalGravatar Chris Lovering-1/+1
2024-10-07Dynamically build eval switcher buttons based on supported versionsGravatar Chris Lovering-8/+4
2024-10-07Rename kwarg in eval button to be clearerGravatar Chris Lovering-4/+4
2024-10-06Support both Python 3.12 and 3.13 in evalGravatar Chris Lovering-11/+11
2024-10-03Raise error if invalid metabase credentials are usedGravatar Chris Lovering-0/+1
2024-09-12Bump pre-commit from 3.7.1 to 3.8.0Gravatar dependabot[bot]-5/+5
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.7.1 to 3.8.0. - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md) - [Commits](https://github.com/pre-commit/pre-commit/compare/v3.7.1...v3.8.0) --- updated-dependencies: - dependency-name: pre-commit dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2024-09-12Bump httpx from 0.27.0 to 0.27.2Gravatar dependabot[bot]-5/+6
Bumps [httpx](https://github.com/encode/httpx) from 0.27.0 to 0.27.2. - [Release notes](https://github.com/encode/httpx/releases) - [Changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md) - [Commits](https://github.com/encode/httpx/compare/0.27.0...0.27.2) --- updated-dependencies: - dependency-name: httpx dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2024-09-11Bump ruff from 0.6.2 to 0.6.4Gravatar dependabot[bot]-21/+21
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.6.2 to 0.6.4. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.6.2...0.6.4) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>