Skip to content

add libcst as install_requires, print errors to stderr & return 1/0, add pre-commit hook & update config, #161

Merged
Zac-HD merged 1 commit intopython-trio:mainfrom
jakkdl:pre_commit_support
Mar 22, 2023
Merged

add libcst as install_requires, print errors to stderr & return 1/0, add pre-commit hook & update config, #161
Zac-HD merged 1 commit intopython-trio:mainfrom
jakkdl:pre_commit_support

Conversation

@jakkdl
Copy link
Copy Markdown
Member

@jakkdl jakkdl commented Mar 21, 2023

Didn't come up with any good ways of writing an automated test for pre-commit, but tested it locally and against my fork - and therefore finding the catastrophically bad errors in init & setup 😅
I was a bit surprised missing libcst wasn't picked up by tox, but that's because the testenv depends on hypothesmith - which requires libcst.

We surely want to start tagging releases though, I looked at shed's CI workflow if there were anything there that automatically created tags but didn't find anything so I'm a bit curious if/how you automate that or if you manually do it on releasing.

@jakkdl jakkdl force-pushed the pre_commit_support branch from 72d937c to 6213187 Compare March 21, 2023 09:24
@jakkdl
Copy link
Copy Markdown
Member Author

jakkdl commented Mar 21, 2023

rejigged the tests a bit to have two tests explicitly for SystemExit.

@jakkdl jakkdl mentioned this pull request Mar 21, 2023
63 tasks
@jakkdl jakkdl force-pushed the pre_commit_support branch from 6213187 to 1560ee2 Compare March 21, 2023 09:30
@Zac-HD Zac-HD merged commit 783b5d0 into python-trio:main Mar 22, 2023
@Zac-HD
Copy link
Copy Markdown
Member

Zac-HD commented Mar 22, 2023

I looked at shed's CI workflow if there were anything there that automatically created tags but didn't find anything so I'm a bit curious if/how you automate that or if you manually do it on releasing.

Automated via this ci config invoking this janky code! It's not pretty, but it works 😅

@jakkdl
Copy link
Copy Markdown
Member Author

jakkdl commented Mar 22, 2023

haha that's some beautiful jank! I'll add it in a PR

@jakkdl jakkdl deleted the pre_commit_support branch March 22, 2023 10:31
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