Skip to content

Release v1.17.0 #227

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Aug 5, 2019
Merged

Release v1.17.0 #227

merged 13 commits into from
Aug 5, 2019

Conversation

BeyondEvil
Copy link
Contributor

No description provided.

tox.ini Outdated
skip_install = true
basepython = python
deps = black
commands = black --check {posargs:.}
Copy link
Contributor Author

@BeyondEvil BeyondEvil Jul 13, 2019

Choose a reason for hiding this comment

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

--check only checks the python files for incorrect formatting and will fail the test if unformatted files are found.

https://travis-ci.org/pytest-dev/pytest-selenium/jobs/558206770

@BeyondEvil
Copy link
Contributor Author

I suggest we remove pre-commit and put black in tox instead. There's no mention of it in the docs and it requires the contributor to install extra stuff - and we have no way of enforcing it.

Putting it in tox enforces that the formatting is at least compatible with Black.

If we want, we can make black change files when run locally but only do the check when run in Travis.

davehunt
davehunt previously approved these changes Aug 3, 2019
@nicoddemus
Copy link
Member

I suggest we remove pre-commit and put black in tox instead. There's no mention of it in the docs and it requires the contributor to install extra stuff - and we have no way of enforcing it.

FTR on pytest we enforce the pre-commit rules in our tox files:

https://github.com/pytest-dev/pytest/blob/0d3958e8dec5f78ed19ba5bc7a00a35f3ea3deb0/tox.ini#L53-L57

@RonnyPfannschmidt
Copy link
Member

pre-commit makes the work-flow a breeze for anyone callable of running 2 simple commands,
putting things into other tools with other version pinning semantics is pretty much an absolute and utter pain

@nicoddemus
Copy link
Member

I concur, and that from a Windows user where using pre-commit is much slower than on Linux (not on pre-commmit's fault, but because Windows FS and venvs are much slower than on Linux). 😁

@BeyondEvil
Copy link
Contributor Author

BeyondEvil commented Aug 3, 2019

I suggest we remove pre-commit and put black in tox instead. There's no mention of it in the docs and it requires the contributor to install extra stuff - and we have no way of enforcing it.

FTR on pytest we enforce the pre-commit rules in our tox files:

https://github.com/pytest-dev/pytest/blob/0d3958e8dec5f78ed19ba5bc7a00a35f3ea3deb0/tox.ini#L53-L57

See, I didn't know you could do that. That takes care of the enforcing bit.

Since I don't feel strongly either way, we'll stick with pre-commit. I'll update the docs and and stuffs to tox.

@BeyondEvil
Copy link
Contributor Author

pre-commit makes the work-flow a breeze for anyone callable of running 2 simple commands,
putting things into other tools with other version pinning semantics is pretty much an absolute and utter pain

Well, when you put it that way. 😂

@BeyondEvil
Copy link
Contributor Author

@davehunt @nicoddemus @RonnyPfannschmidt

Please review the changes. Sorry for any extra work this has caused you. 🙏

nicoddemus
nicoddemus previously approved these changes Aug 4, 2019
Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

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

Apart from the small typo, LGTM

@BeyondEvil BeyondEvil merged commit d1d4ff6 into pytest-dev:master Aug 5, 2019
@BeyondEvil BeyondEvil deleted the release-v1.17.0 branch August 5, 2019 07:56
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.

4 participants