WIP: ISort, various new checks, problem matchers and more - configs #4890
No reviewers
Labels
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot!4890
Loading…
Reference in a new issue
No description provided.
Delete branch "Jackenmen/V3/linter_stuff"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Description of the changes
List of changes to be completed...
Notes:
make stylediffreports diffs separatelybut I think it's just an unnecessary maintenance burden. Here's a link in case someone is
interested in this work though:
github.com/Cog-Creators/Red-DiscordBot@563b94a17emake stylediffcompletely since it was primarily added foruse in CI but it isn't much of a burden to at least keep it in this form and it might be
useful for some people's workflows.
pre-commitusage should, however, be preferred.TODO:
tests/after figuring out a proper way to minimize the issues with the importsmake newenv+pre-commit installcombinedmake newenvafter it finishes everything elsepretty-format-jsonhook"Things that I have considered but ended up not doing:
pre-commit run --all-filesreformat,stylecheck, orstylediffas not all hooks are able to automatically reformat the filesan installed pre-commit hook, it already runs in CI, and it isn't particularly
hard for people to run
pre-commit run --all-filesif that's their preferred workflownewenvrecipe in MakefileThe reformatting needed by this PR is done in #4894 and that PR should be merged before this one.
Link to problem matcher preview:
github.com/Cog-Creators/Red-DiscordBot@6378fdf45d(can also be seen on the "Files changes" page in "Unchanged files with check annotations" section)Fixes #3882, fixes #4698
Blocked by #4894 (the one that actually does the reformatting)
If someone's interested in the diffs (do mind that this is still draft until the split and possibly some other changes), I suggest looking at the first 14 commits for all the configuration files:
https://github.com/Cog-Creators/Red-DiscordBot/pull/4890/files/332b5296dce8c81de3b4dbab3d8e6b8263ca1b7a
Next 10 commits is all the reformatting effort (some of which was done by the tools automatically and the rest of the issues were addressed manually):
https://github.com/Cog-Creators/Red-DiscordBot/pull/4890/files/332b5296dce8c81de3b4dbab3d8e6b8263ca1b7a..d21032b99e5b2782686cbef1806598300c25a0fb
The last commit is
.git-blame-ignore-revsfile which will need to be updated after the commits with all the reformatted stuff get inV3/develop:59fbe37(#4890)Ich schließe den PR, weil er veraltet ist. Er stammt von 2021 und ist WIP; seitdem hat sich das Linting-Setup komplett geändert (black-Versionen, pyproject-Konfiguration, die CI ist jetzt in Forgejo Actions). Die Configs lassen sich nicht sinnvoll rebasen. isort/ruff am besten als neuen, kleinen PR gegen den aktuellen Stand einbringen. Gern wieder öffnen, falls jemand daran weiterarbeiten will.
Generated by Claude Code
Pull request closed