Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

(馃巵) canwecolor馃殌 #14051

Merged
merged 1 commit into from Dec 7, 2022
Merged

Conversation

KotlinIsland
Copy link
Contributor

@KotlinIsland KotlinIsland commented Nov 9, 2022

Last time i checked it wasn't the 1960's. So I think the CI could be colorized.

Configured pytest, tox, mypy(#7771) and pip鹿 (I already already colorized black and isort when I initially added them)

1: Pip doesn't work yet pypa/pip#10909, so this is just a placedholder for when it (hopefully) soon will.

@KotlinIsland KotlinIsland marked this pull request as draft November 9, 2022 13:55
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@KotlinIsland
Copy link
Contributor Author

@ilevkivskyi Do you think this is a good one?

Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

LGTM, just have one suggestion.

pytest.ini Outdated
@@ -21,7 +21,7 @@ python_functions =
# always run in parallel (requires pytest-xdist, see test-requirements.txt)
# and enable strict mode: require all markers
# to be defined and raise on invalid config values
addopts = -nauto --strict-markers --strict-config
addopts = -nauto --strict-markers --strict-config --color=yes
Copy link
Member

Choose a reason for hiding this comment

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

Would it be possible to instead add this flag in workflow config? Changing this file will affect local testing as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, I've added PYTEST_ADDOPTS to the workflow file and verified that it cooperates with the addopts config in pytest.ini.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ergh, that isn't working.....

Edit: Had to update tox passenv

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2022

According to mypy_primer, this change has no effect on the checked open source code. 馃馃帀

@ilevkivskyi ilevkivskyi merged commit 695ea30 into python:master Dec 7, 2022
@KotlinIsland KotlinIsland deleted the canwecolor branch December 7, 2022 23:58
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.

None yet

2 participants