Skip to content

Commit d70b79c

Browse files
ajax146dependabot[bot]LunaberriesTheKrolCpt-Dingus
authored
Merge Upstream (#1393)
* Fix typo in interaction check (#1221) * Update discord.py to version 2.5 (#1222) * Update discord.py to version 2.5 * Update version * Bump hypothesis from 6.122.4 to 6.131.7 (#1265) Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.122.4 to 6.131.7. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](HypothesisWorks/hypothesis@hypothesis-python-6.122.4...hypothesis-python-6.131.7) --- updated-dependencies: - dependency-name: hypothesis dependency-version: 6.131.7 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump pytest-asyncio from 0.25.0 to 0.26.0 (#1250) Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.25.0 to 0.26.0. - [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases) - [Commits](pytest-dev/pytest-asyncio@v0.25.0...v0.26.0) --- updated-dependencies: - dependency-name: pytest-asyncio dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Truly kill factoid all prefix command (#1224) * Bump pytest from 8.3.2 to 8.3.5 (#1235) Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.3.2 to 8.3.5. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@8.3.2...8.3.5) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump flake8-bugbear from 24.8.19 to 24.12.12 (#1269) Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 24.8.19 to 24.12.12. - [Release notes](https://github.com/PyCQA/flake8-bugbear/releases) - [Commits](PyCQA/flake8-bugbear@24.8.19...24.12.12) --- updated-dependencies: - dependency-name: flake8-bugbear dependency-version: 24.12.12 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Replaces the PC joke config with a better filter (#1266) This replaces the old pc_jokes filter and replaces it with a blacklisted_filters config, which allows a set of filters to apply in non NSFW channels, no matter what. Additionally apply_in_nsfw_channels is added, to allow the filter to apply in all channels. * Improves the output format of factoid search, and speeds it up a little (#1200) * Makes role self more dynamic. (#1199) * Bump pylint from 3.2.6 to 3.3.6 (#1247) * Bump pylint from 3.2.6 to 3.3.6 Bumps [pylint](https://github.com/pylint-dev/pylint) from 3.2.6 to 3.3.6. - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](pylint-dev/pylint@v3.2.6...v3.3.6) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * ignore R0917 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ajax146 <31014239+ajax146@users.noreply.github.com> * Make duck random better (#1189) * Make duck random better * Update docstring * Remove useless test line * Rename factoid json file (#1270) * Updating hangman to fix all the issues (#1207) * Updating hangman to fix all the issues * Formatting update * Formatting and fixing the issue for help * doc string update * Trailing white space removed * Doc string update * Format and small update * Flake update * Flake update * Fix game start error * Flake update * More Flake * More Flake * Fixed naming * Flake update * Fix issues and added a check for word length * Update length for starting word * Bump gitpython from 3.1.43 to 3.1.44 (#1226) Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.43 to 3.1.44. - [Release notes](https://github.com/gitpython-developers/GitPython/releases) - [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES) - [Commits](gitpython-developers/GitPython@3.1.43...3.1.44) --- updated-dependencies: - dependency-name: gitpython dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ajax146 <31014239+ajax146@users.noreply.github.com> * Bump pip from 24.3.1 to 25.0.1 (#1271) Bumps [pip](https://github.com/pypa/pip) from 24.3.1 to 25.0.1. - [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst) - [Commits](pypa/pip@24.3.1...25.0.1) --- updated-dependencies: - dependency-name: pip dependency-version: 25.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump isort from 5.13.2 to 6.0.1 (#1272) Bumps [isort](https://github.com/PyCQA/isort) from 5.13.2 to 6.0.1. - [Release notes](https://github.com/PyCQA/isort/releases) - [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md) - [Commits](PyCQA/isort@5.13.2...6.0.1) --- updated-dependencies: - dependency-name: isort dependency-version: 6.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump pydantic from 2.8.2 to 2.9.2 (#1149) Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.8.2 to 2.9.2. - [Release notes](https://github.com/pydantic/pydantic/releases) - [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md) - [Commits](pydantic/pydantic@v2.8.2...v2.9.2) --- updated-dependencies: - dependency-name: pydantic dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump emoji from 2.12.1 to 2.14.1 (#1274) Bumps [emoji](https://github.com/carpedm20/emoji) from 2.12.1 to 2.14.1. - [Release notes](https://github.com/carpedm20/emoji/releases) - [Changelog](https://github.com/carpedm20/emoji/blob/master/CHANGES.md) - [Commits](carpedm20/emoji@v2.12.1...v2.14.1) --- updated-dependencies: - dependency-name: emoji dependency-version: 2.14.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump pipenv from 2024.4.1 to 2025.0.1 (#1273) Bumps [pipenv](https://github.com/pypa/pipenv) from 2024.4.1 to 2025.0.1. - [Release notes](https://github.com/pypa/pipenv/releases) - [Changelog](https://github.com/pypa/pipenv/blob/main/CHANGELOG.md) - [Commits](pypa/pipenv@v2024.4.1...v2025.0.1) --- updated-dependencies: - dependency-name: pipenv dependency-version: 2025.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump pydoclint from 0.5.6 to 0.6.6 (#1262) * Bump pydoclint from 0.5.6 to 0.6.6 Bumps [pydoclint](https://github.com/jsh9/pydoclint) from 0.5.6 to 0.6.6. - [Release notes](https://github.com/jsh9/pydoclint/releases) - [Changelog](https://github.com/jsh9/pydoclint/blob/main/CHANGELOG.md) - [Commits](jsh9/pydoclint@0.5.6...0.6.6) --- updated-dependencies: - dependency-name: pydoclint dependency-version: 0.6.6 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update http error * Exclude DOC503 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ajax146 <31014239+ajax146@users.noreply.github.com> * Bump flake8 from 7.1.1 to 7.2.0 (#1275) Bumps [flake8](https://github.com/pycqa/flake8) from 7.1.1 to 7.2.0. - [Commits](PyCQA/flake8@7.1.1...7.2.0) --- updated-dependencies: - dependency-name: flake8 dependency-version: 7.2.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump unidecode from 1.3.8 to 1.4.0 (#1276) Bumps [unidecode](https://github.com/kmike/text-unidecode) from 1.3.8 to 1.4.0. - [Release notes](https://github.com/kmike/text-unidecode/releases) - [Commits](https://github.com/kmike/text-unidecode/commits) --- updated-dependencies: - dependency-name: unidecode dependency-version: 1.4.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump hypothesis from 6.131.8 to 6.131.9 (#1278) Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.131.8 to 6.131.9. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](HypothesisWorks/hypothesis@hypothesis-python-6.131.8...hypothesis-python-6.131.9) --- updated-dependencies: - dependency-name: hypothesis dependency-version: 6.131.9 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump pip from 25.0.1 to 25.1 (#1280) Bumps [pip](https://github.com/pypa/pip) from 25.0.1 to 25.1. - [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst) - [Commits](pypa/pip@25.0.1...25.1) --- updated-dependencies: - dependency-name: pip dependency-version: '25.1' dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Duck timeout on miss is now a config (#1141) * Ducks don't timeout anymore * unused import * Make duck timeout a config option --------- Co-authored-by: ajax146 <31014239+ajax146@users.noreply.github.com> * Updates the IRC authentication method to no longer need ib3 (#1282) This changes the IRC authentication to be done using the IRC package instead of the ib3 packages. * Updates the IRC authentication method to no longer need ib3 (#1282) * Start the refactor IRC branch * Update IRC authentication system * Formatting * Formatting * Bump inflect from 7.3.1 to 7.5.0 (#1279) Bumps [inflect](https://github.com/jaraco/inflect) from 7.3.1 to 7.5.0. - [Release notes](https://github.com/jaraco/inflect/releases) - [Changelog](https://github.com/jaraco/inflect/blob/main/NEWS.rst) - [Commits](jaraco/inflect@v7.3.1...v7.5.0) --- updated-dependencies: - dependency-name: inflect dependency-version: 7.5.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * make config.yml path configurable in .env file (#1294) * Removes useless print statement in HTD (#1291) * Make the DEBUG .env option default at 0 (#1301) * Make the burn command work on message reply (#1298) the `.burn` command now behaves like the `.hug` command, meaning it doesnt require mentioning a user to mark their message as a burn. replying to the message works. it still retains it's original behavior of marking the last message of a user as a burn when it is used as `.burn @user`. * Fix typo in logging warning in logger (#1292) This fixes a typo where WARN was used instead of WARNING. This was preventing messages from being logged where attachments that exceeded the size that the bot could upload were posted. * Add /factoid call command (#1290) * Add /factoid call command * Fix docstring * Add modmail bans command to list modmail bans (#1286) Adds a new .modmail bans command to list all currently banned users by modmail. * Bump aiocron from 1.8 to 2.1 (#1268) Bumps [aiocron](https://github.com/gawel/aiocron) from 1.8 to 2.1. - [Changelog](https://github.com/gawel/aiocron/blob/master/CHANGES.rst) - [Commits](gawel/aiocron@1.8...2.1) --- updated-dependencies: - dependency-name: aiocron dependency-version: '2.1' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Add override owner config and try catch to log DM (#1220) * Add override owner config and try catch to log DM * Formatting * Formatting 2 * Update config.default.yml * Bump dateparser from 1.2.0 to 1.2.1 (#1267) Bumps [dateparser](https://github.com/scrapinghub/dateparser) from 1.2.0 to 1.2.1. - [Release notes](https://github.com/scrapinghub/dateparser/releases) - [Changelog](https://github.com/scrapinghub/dateparser/blob/master/HISTORY.rst) - [Commits](scrapinghub/dateparser@v1.2.0...v1.2.1) --- updated-dependencies: - dependency-name: dateparser dependency-version: 1.2.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * concatenation of all prior CI and addition of dependabot close steps … (#1075) * concatenation of all prior CI and addition of dependabot close steps for semver patches on specific packages * correct invalid yaml * correct s * add removed word * Add black, fix flake8 ci * rename black test --------- Co-authored-by: dkay <dkay@nortnet.org> Co-authored-by: ajax146 <31014239+ajax146@users.noreply.github.com> * Make startup time dynamic timestamp (#1305) * Make startup time dynamic timestamp * Formatting * Fix modmail alias command when no aliases defined (#1287) * Fix modmail alias command when no aliases defined * Make modmail no alias use prepare_deny_embed * Add more friendly error when corrected message is too long (#886) * Add more friendly error when corrected message is too long * Add maximum line count * Remove unit tests * Update correct.py * Auto reject applications after 30 days (#1281) * Auto reject applications after 30 days * Add max_age config value * Make CI only run on PRs with the run-ci label (#1306) * Workflow dispatch on CI * More changes * Test * Add file * Try more AI code * Update CodeQL * Update if statement * Fix codeql * Fix PR types * Bump pip from 25.1 to 25.1.1 (#1308) Bumps [pip](https://github.com/pypa/pip) from 25.1 to 25.1.1. - [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst) - [Commits](pypa/pip@25.1...25.1.1) --- updated-dependencies: - dependency-name: pip dependency-version: 25.1.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump pipenv from 2025.0.1 to 2025.0.2 (#1307) Bumps [pipenv](https://github.com/pypa/pipenv) from 2025.0.1 to 2025.0.2. - [Release notes](https://github.com/pypa/pipenv/releases) - [Changelog](https://github.com/pypa/pipenv/blob/main/CHANGELOG.md) - [Commits](pypa/pipenv@v2025.0.1...v2025.0.2) --- updated-dependencies: - dependency-name: pipenv dependency-version: 2025.0.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Refactors hello, removes worthless unit tests (#1300) * Refactors hello, removes worthless unit tests * Add return type None to function * fix typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: dkay <dkay@nortnet.org> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Merge all formatting and testing CI into one (#1312) * Merge all formatting and testing CI into one * Remove useless statements * Don't run CodeQL or container on pushes, only PRs * Refactor all moderation features, auto mod and notes. Add reports and modlog. (#1095) This is a complete rewrite and restructure of protect and everything related to it. protect.py was split into: commands/moderator.py commands/purge.py core/moderation.py functions/automod.py functions/paste.py Two additional files were added: commands/modlog.py commands/report.py who.py was split into: commands/notes.py commands/whois.py commands/moderator.py: Moved all moderator actions into slash commands Adds a new /unwarn command allowing individual warnings to be removed Logs and displays who warned people (Fixes #657) Mute can now have both a duration and a reason (fixes #721) commands/modlog.py Completely new feature, copying carlbots /modlog highscores and ban/unban logging This additionally adds the ability to lookup bans by user or moderator Bans are now forever stored in TS database (Fixes #380) commands/notes.py All the notes editing commands, as well as a /notes all Write roles checks now check reader roles as well (fixes #692) Makes notes all paginated (fixes #800) Notes reader/writer now only send one message if config is empty (fixes #983) commands/purge.py Moves purge command to /purge Combines the duration and exact command commands/whois.py Is the /whois command core/moderation.py This handles the core actions of ban/unban/kick/mute/unmute/warn/unwarn and a few core logic items, like getting all warnings functions/automod.py Completely rewrites automod (Fixes #463) Fixes regex not working (no issue for this one) Adds a mute feature for automod (Fixes #1020) Adds automod as a framework instead of a strict class, allowing other modules to run messages through automod Adds IRC checks to automod (Fixes #212) functions/paste.py Paste now makes sure that the linx API request worked and that the message was sent BEFORE deleting the original message (Fixes #1077) Paste checks if message violates automod, and if it was recommended that it was deleted, nothing happens Other: Who now shows new warning information (Fixes #180) Moves duck to use the new core/moderation.py feature * Add enable all extension command (#1299) * Fix perms with extension all command (#1316) * Removes the if statements on CI (#1328) * Better message on factoid forget (#1326) * Better message on factoid delete * Remove typing * Fix CI schedule (#1329) * Remove label in ci.yml (#1330) * Bump hypothesis from 6.131.9 to 6.131.15 (#1327) Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.131.9 to 6.131.15. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](HypothesisWorks/hypothesis@hypothesis-python-6.131.9...hypothesis-python-6.131.15) --- updated-dependencies: - dependency-name: hypothesis dependency-version: 6.131.15 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ajax146 <31014239+ajax146@users.noreply.github.com> * Better factoid json name (#1325) * Changes the name of factoid json to match input * Add a to lower * Bump pylint from 3.3.6 to 3.3.7 (#1315) Bumps [pylint](https://github.com/pylint-dev/pylint) from 3.3.6 to 3.3.7. - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](pylint-dev/pylint@v3.3.6...v3.3.7) --- updated-dependencies: - dependency-name: pylint dependency-version: 3.3.7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ajax146 <31014239+ajax146@users.noreply.github.com> * Bump hypothesis from 6.131.15 to 6.131.18 (#1332) Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.131.15 to 6.131.18. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](HypothesisWorks/hypothesis@hypothesis-python-6.131.15...hypothesis-python-6.131.18) --- updated-dependencies: - dependency-name: hypothesis dependency-version: 6.131.18 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Modmail self/contact now links new thread on success (#1331) * Modmail self/contact now links new thread on success * Add space * Fix factoid all when there are no factoids for a given guild (#1322) * Fixes modmail sending files in threads (#1320) * Properly parse namespace on slash command log (#1313) * Properly parse namespace on slash command log * Adds a failsafe 6000 character limit, just in case * Move news random to be a slash command with autofill (#969) * Hopefully fix a bug with warns * Update News to a slash command to fix categories * Removing just plain news command comment * Update filtered articles * update news filter * update for pylint * Reverting protect change * Make it so it stops logging every autocomplete * Formatting update * More formatting changes * Flake8 formatting update * Small fix for flake8 * Hacky rate limit error fix * Update docstring --------- Co-authored-by: ajax146 <31014239+ajax146@users.noreply.github.com> Co-authored-by: dkay <dkay@nortnet.org> * Bump hypothesis from 6.131.18 to 6.135.4 (#1340) Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.131.18 to 6.135.4. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](HypothesisWorks/hypothesis@hypothesis-python-6.131.18...hypothesis-python-6.135.4) --- updated-dependencies: - dependency-name: hypothesis dependency-version: 6.135.4 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump pytest from 8.3.5 to 8.4.0 (#1339) Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.3.5 to 8.4.0. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@8.3.5...8.4.0) --- updated-dependencies: - dependency-name: pytest dependency-version: 8.4.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump pipenv from 2025.0.2 to 2025.0.3 (#1338) Bumps [pipenv](https://github.com/pypa/pipenv) from 2025.0.2 to 2025.0.3. - [Release notes](https://github.com/pypa/pipenv/releases) - [Changelog](https://github.com/pypa/pipenv/blob/main/CHANGELOG.md) - [Commits](pypa/pipenv@v2025.0.2...v2025.0.3) --- updated-dependencies: - dependency-name: pipenv dependency-version: 2025.0.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Adds a crude debug command (#1110) * Adds a crude debug command * Make some changes * Formatting * Formatting * More formatting * Even more formatting * Bump pytest-asyncio from 0.26.0 to 1.0.0 (#1342) Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.26.0 to 1.0.0. - [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases) - [Commits](pytest-dev/pytest-asyncio@v0.26.0...v1.0.0) --- updated-dependencies: - dependency-name: pytest-asyncio dependency-version: 1.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump hypothesis from 6.135.4 to 6.135.10 (#1341) Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.135.4 to 6.135.10. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](HypothesisWorks/hypothesis@hypothesis-python-6.135.4...hypothesis-python-6.135.10) --- updated-dependencies: - dependency-name: hypothesis dependency-version: 6.135.10 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add a warning message to people who DM the main bot (#1334) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Luna <161262151+GalacticalWolf@users.noreply.github.com> Co-authored-by: TheKrol <TheKrol@users.noreply.github.com> Co-authored-by: Cpt-Dingus <100243410+Cpt-Dingus@users.noreply.github.com> Co-authored-by: dkay <dkay@nortnet.org> Co-authored-by: Koei <eshanshekhaji@gmail.com> Co-authored-by: PipeItToDevNull <25917750+PipeItToDevNull@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent bf20c56 commit d70b79c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+5603
-3568
lines changed

.flake8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[flake8]
2-
ignore = DCO010, DCO023, DOC602, DOC603, E203, E501, E712, F401, F403, F821, W503
2+
ignore = DCO010, DCO023, DOC503, DOC602, DOC603, MDA002, E203, E501, E712, F401, F403, F821, W503
33
style = google
4-
skip-checking-short-docstrings = False
4+
skip-checking-short-docstrings = False

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ updates:
88
- package-ecosystem: "pip" # See documentation for possible values
99
directory: "/" # Location of package manifests
1010
schedule:
11-
interval: "daily"
11+
interval: "weekly"
1212
open-pull-requests-limit: 10

.github/workflows/black.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
name: Test and build
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
codeValidation:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Python 3.11
15+
uses: actions/setup-python@v3
16+
with:
17+
python-version: 3.11
18+
- name: Install pip
19+
run: |
20+
python -m pip install pip==$(sed -nE 's/pip = "==(.*)"/\1/p' Pipfile)
21+
- name: Install pipenv
22+
run: |
23+
PIPENV_VERSION=$(sed -nE 's/pipenv = "==(.*)"/\1/p' Pipfile)
24+
python -m pip install pipenv==$PIPENV_VERSION
25+
- name: Install from pipfile
26+
run: |
27+
pipenv install --system
28+
- name: Analysing the code with black
29+
run: |
30+
black $(git rev-parse --show-toplevel) --check
31+
- name: Analysing the code with pylint
32+
run: |
33+
pylint $(git ls-files '*.py')
34+
- name: Check for CRLF line endings
35+
run: |
36+
for file in $(git ls-files); do
37+
if grep -q $'\r$' "$file"; then
38+
echo "$file has faulty file endings"
39+
fi
40+
done
41+
if git grep -I --name-only $'\r'; then
42+
echo "CRLF line endings detected"
43+
exit 1
44+
fi
45+
- name: Analysing the code with flake8
46+
run: |
47+
flake8 $(git rev-parse --show-toplevel)
48+
- name: Analysing the code with isort
49+
run: |
50+
isort --check-only $(git rev-parse --show-toplevel)/ --profile black
51+
- name: Running pytest
52+
run: |
53+
cd techsupport_bot
54+
python3.11 -m pytest tests/ -p no:warnings
55+
56+
containerBuild:
57+
runs-on: ubuntu-latest
58+
needs:
59+
- codeValidation
60+
steps:
61+
- uses: actions/checkout@v3
62+
- name: Build the Docker image
63+
run: make establish_config && docker build -f Dockerfile . -t techsupportbot:$(date +%s)
64+
65+
close_pyTest:
66+
if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]'
67+
runs-on: ubuntu-latest
68+
needs:
69+
- codeValidation
70+
permissions:
71+
contents: write
72+
pull-requests: write
73+
steps:
74+
- name: Dependabot metadata
75+
id: dependabot-metadata
76+
uses: dependabot/fetch-metadata@v2
77+
with:
78+
github-token: "${{ secrets.GITHUB_TOKEN }}"
79+
- name: Merge PR
80+
if: steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' && steps.dependabot-metadata.outputs.dependency-names == 'pytest'
81+
run: gh pr merge --auto --merge "$PR_URL"
82+
env:
83+
PR_URL: ${{github.event.pull_request.html_url}}
84+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
85+
86+
close_pyLint:
87+
if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]'
88+
runs-on: ubuntu-latest
89+
needs:
90+
- codeValidation
91+
permissions:
92+
contents: write
93+
pull-requests: write
94+
steps:
95+
- name: Dependabot metadata
96+
id: dependabot-metadata
97+
uses: dependabot/fetch-metadata@v2
98+
with:
99+
github-token: "${{ secrets.GITHUB_TOKEN }}"
100+
- name: Merge PR
101+
if: steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' && steps.dependabot-metadata.outputs.dependency-names == 'pylint'
102+
run: gh pr merge --auto --merge "$PR_URL"
103+
env:
104+
PR_URL: ${{github.event.pull_request.html_url}}
105+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
106+
107+
close_flake8:
108+
if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]'
109+
runs-on: ubuntu-latest
110+
needs:
111+
- codeValidation
112+
permissions:
113+
contents: write
114+
pull-requests: write
115+
steps:
116+
- name: Dependabot metadata
117+
id: dependabot-metadata
118+
uses: dependabot/fetch-metadata@v2
119+
with:
120+
github-token: "${{ secrets.GITHUB_TOKEN }}"
121+
- name: Merge PR
122+
if: steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' && steps.dependabot-metadata.outputs.dependency-names == 'flake8'
123+
run: gh pr merge --auto --merge "$PR_URL"
124+
env:
125+
PR_URL: ${{github.event.pull_request.html_url}}
126+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
127+
128+
close_isort:
129+
if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]'
130+
runs-on: ubuntu-latest
131+
needs:
132+
- codeValidation
133+
permissions:
134+
contents: write
135+
pull-requests: write
136+
steps:
137+
- name: Dependabot metadata
138+
id: dependabot-metadata
139+
uses: dependabot/fetch-metadata@v2
140+
with:
141+
github-token: "${{ secrets.GITHUB_TOKEN }}"
142+
- name: Merge PR
143+
if: steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' && steps.dependabot-metadata.outputs.dependency-names == 'isort'
144+
run: gh pr merge --auto --merge "$PR_URL"
145+
env:
146+
PR_URL: ${{github.event.pull_request.html_url}}
147+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/codeql.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ on:
1515
push:
1616
branches: [ "main" ]
1717
pull_request:
18-
# The branches below must be a subset of the branches above
1918
branches: [ "main" ]
2019
schedule:
2120
- cron: '31 18 * * 1'

.github/workflows/docker-image.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/flake8.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/isort.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/lfendings.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/pylint.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)