Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Globals hints? #97

Closed
miohtama opened this Issue · 2 comments

2 participants

Mikko Ohtamaa Florent Xicluna
Mikko Ohtamaa

Jslint / jshint allows you to hint global variables like this:

  /*globals window,console*/

Does pep8 has anything similar?

Namely, to be used inside scripts of Plone CMS. Through-the-web scripts are run using eval() and have special builtin globals set beforehand to make your scripts shorter and more convenient.

PEP-8 works fine with these scripts, but complains about these missing globals like context and I don't know how to hint PEP8 to ignore this error for this specific file.

Florent Xicluna
Collaborator

This checker is not part of pep8.
It is most probably related to pyflakesor flake8.

Florent Xicluna florentx closed this
Mikko Ohtamaa

Ah thanks, of course! Too much coffee, too little sleep last night :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.