Extend twistedchecker to run on arbitrary directories
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
twistedchecker |
New
|
Undecided
|
Unassigned |
Bug Description
Twistedchecker currently expects a python module or package directory
as an argument.
It would useful if you could also pass it an arbitrary directory which
it would search recursively for any python files.
This would be more consistent with the behaviour of Pyflakes.
* https:/
{{{
#!python
def iterSourceCode(
"""
Iterate over all Python source files in C{paths}.
@param paths: A list of paths. Directories will be recursed into and
any .py files found will be yielded. Any non-directories will be
yielded as-is.
"""
for path in paths:
if os.path.
for dirpath, dirnames, filenames in os.walk(path):
for filename in filenames:
else:
yield path
}}}
This idea was raised by Tom in the comments in:
* http://
Which discusses the Twisted Better Examples plan:
* https:/
It is a blocker for:
* https:/
summary: |
- Extend twistedchcker to run on arbitrary directories + Extend twistedchecker to run on arbitrary directories |