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

Already on GitHub? Sign in to your account

fix deprecation warnings and other lints #435

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

oconnor663
Copy link

I vendor docopt.py in some of my projects, and I see DeprecationWarning: invalid escape sequence when I run pytest across the whole project, because it's searching docopt.py for tests and hitting those warnings. As part of fixing that, I figured it would be nice to fix all the flake8 lints, at least in that one file. There are a few:

  • Those deprecated escape sequences.
  • One letter variable names.
  • A list comprehension variable with the same name as an outer variable (Python 2.7 only).
  • Comments without a space after the #.

I also added flake8 to tox.ini, which helped to catch that 2.7-only lint above.

If this is all too aggressive, I could rip out all of these changes except the escape sequence fixes, which is the only thing I think we genuinely need.

walles added a commit to walles/px that referenced this pull request Feb 8, 2019
Fails in CI, not locally.

The failure is a SyntaxError in Docopt 0.6.2:
docopt/docopt#435

But no Docopt release has been made since 2014, so we need to replace it
to fix this.
@itdaniher
Copy link

merged at jazzband/docopt-ng#3 - thanks!

@oconnor663
Copy link
Author

@itdaniher neat project, thanks for taking it on.

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