-
Notifications
You must be signed in to change notification settings - Fork 120
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
Release v1.17.0 #227
Conversation
tox.ini
Outdated
skip_install = true | ||
basepython = python | ||
deps = black | ||
commands = black --check {posargs:.} |
There was a problem hiding this comment.
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
I suggest we remove 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. |
FTR on pytest we enforce the pre-commit rules in our tox files: |
pre-commit makes the work-flow a breeze for anyone callable of running 2 simple commands, |
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). 😁 |
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. |
Well, when you put it that way. 😂 |
@davehunt @nicoddemus @RonnyPfannschmidt Please review the changes. Sorry for any extra work this has caused you. 🙏 |
There was a problem hiding this 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
No description provided.