Skip to content

move error codes into visitor classes - #82

Merged
Zac-HD merged 1 commit into
python-trio:mainfrom
jakkdl:move_error_message
Dec 19, 2022
Merged

Zac-HD merged 1 commit into
python-trio:mainfrom
jakkdl:move_error_message

Conversation

@jakkdl

@jakkdl jakkdl commented Dec 16, 2022

Copy link
Copy Markdown
Member

also changes test_113 and 114_options to use ARGS (since they broke from this it was a good opportunity to rewrite them).

As a follow-up, it'd be nice for each visitor class to have a docstring briefly explaining what they do - just copying the relevant line from the readme would be plenty.

Yeah this has been sorely needed for a while, I started copy-pasting but started feeling very silly about it so the visitor classes now define their error codes themselves.
Would be fun to move the documentation from the readme into them and auto-generate docs (+ the same for command line args) as well, but that's probs overkill - although having to keep documentation correct in several different files & places is always a pain.

…. Change test_113 and 114_options to use ARGS

@Zac-HD Zac-HD left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Comment thread tests/test_flake8_trio.py Resolved
@Zac-HD
Zac-HD merged commit 01cc0b1 into python-trio:main Dec 19, 2022
@jakkdl
jakkdl deleted the move_error_message branch December 31, 2022 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants