GreenSteam/pep257 — pull request #24 by papisz (2013-04-11 10:54:44+00:00)
Title: Full path in errors

With current pep257 warnings it's really hard to say _where_ exactly the pointed file lives. This gets frustating when like in django framework you've got many files with the same filename - like forms.py, views.py, etc.
In this simple fix I've changed the filepath returned in error message.

#### Example:

**Before my fix:**

user@host$ pep257 abc/cde/aa.py
================================================================================
Note: checks are relaxed for scripts (with #!) compared to modules.
aa.py:4:4: PEP257 Use u""" for Unicode docstrings.
aa.py:4:4: PEP257 Use u""" for Unicode docstrings.
aa.py:4:4: PEP257 Short description should end with a period.
aa.py:4:4: PEP257 Short description should end with a period.

**After my fix:**

user@host$ python pep257.py abc/cde/aa.py
================================================================================
Note: checks are relaxed for scripts (with #!) compared to modules
abc/cde/aa.py:4:4: Use u\"\"\" for Unicode docstrings.
abc/cde/aa.py:4:4: Use u\"\"\" for Unicode docstrings.
abc/cde/aa.py:4:4: First line should end with a period.
abc/cde/aa.py:4:4: First line should end with a period.