Jonathan Hartley avatar Jonathan Hartley committed 1c0e9f0

update TODO, rename ignoreds -> ignores

Comments (0)

Files changed (2)

-* make "pydoc rerun" work
+* change implementation to get changed files then filter out ignoreds.
+* --ignore should accept globs. This would allow combination of SKIP_DIR
+  and SKIP_EXT into single 'IGNORES' list.
 * upload doc (readme?) to read the docs
-* use py2app
-* use py2exe
-* use Linux exe bundle.
+* use py2app, create an OSX binary.
+* use py2exe, create a Windows binary.
+* create a Linux binary.
+* bundle Linux binary into a deb or rpm
-def skip_file(filename, ignoreds):
+def skip_file(filename, ignores):
     return (
-        any(os.path.basename(filename) == i for i in ignoreds) or
+        any(os.path.basename(filename) == i for i in ignores) or
         any(filename.endswith(skip) for skip in SKIP_EXT)
     return False
-def changed_files(ignoreds):
+def changed_files(ignores):
     Walks subdirs of cwd, looking for files which have changed since last
     changed = []
     for root, dirs, files in os.walk('.'):
-        skip_dirs(dirs, ignoreds)
+        skip_dirs(dirs, ignores)
         for filename in files:
             fullname = os.path.join(root, filename)
-            if skip_file(fullname, ignoreds):
+            if skip_file(fullname, ignores):
             if has_file_changed(fullname):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.