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

twistedchecker fails when it encounters emacs backup files #57

Open
ghost opened this issue Apr 16, 2014 · 1 comment
Open

twistedchecker fails when it encounters emacs backup files #57

ghost opened this issue Apr 16, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 16, 2014

I ran it on my twisted branch and got this

(twistedchecker)[richard@zorin add-setup-1084552]$ twistedchecker twisted
Traceback (most recent call last):
  File "/home/richard/.virtualenvs/twistedchecker/bin/twistedchecker", line 10, in <module>
    Runner().run(sys.argv[1:])
  File "/home/richard/projects/TwistedChecker/branches/add-setup-1084552/twistedchecker/core/runner.py", line 320, in run
    self.setNameExceptions(args)
  File "/home/richard/projects/TwistedChecker/branches/add-setup-1084552/twistedchecker/core/runner.py", line 288, in setNameExceptions
    patternsFunc, patternsClass = findAllExceptions(path)
  File "/home/richard/projects/TwistedChecker/branches/add-setup-1084552/twistedchecker/core/exceptionfinder.py", line 83, in findAllExceptions
    findPatternsInFile(open(pathFile).read(), finder)
IOError: [Errno 2] No such file or directory: '/home/richard/projects/Twisted/branches/static-path-3765/twisted/web/.#static.py'

It should only examine actual python modules.


Imported from Launchpad using lp2gh.

@adiroiban
Copy link
Member

@wallrj I took a look at this but pylint is ugly here.

The problem is that pylint only ignores explicit file or folder paths... without a filemask and does not provide a hook into file filtering code

filtering is done in pylint.utils.expand_modules based on the config.black_list which populated by the --ignore argument.

Can you just change emacs setting to backup files in `.static.py~' format? or maybe you can configure it to make backup outside of source folder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant