-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKG-INFO
55 lines (45 loc) · 2.55 KB
/
PKG-INFO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Metadata-Version: 1.0
Name: Reindent
Version: 0.1.1
Summary: reindent script by Tim Peters
Home-page: UNKNOWN
Author: Dan Buch
Author-email: [email protected]
License: Public Domain
Description: Reindent python cleanup script
------------------------------
**Released to the public domain, by Tim Peters, 03 October 2000.**
Usage::
reindent [-d][-r][-v] [ path ... ]
-d (--dryrun) Dry run. Analyze, but don't make any changes to, files.
-r (--recurse) Recurse. Search for all .py files in subdirectories too.
-v (--verbose) Verbose. Print informative msgs; else no output.
-h (--help) Help. Print this usage information and exit.
Change Python (.py) files to use 4-space indents and no hard tab
characters. Also trim excess spaces and tabs from ends of lines,
and remove empty lines at the end of files. Also ensure the last line
ends with a newline.
If no paths are given on the command line, reindent operates as a filter,
reading a single source file from standard input and writing the
transformed source to standard output. In this case, the -d, -r and -v
flags are ignored.
You can pass one or more file and/or directory paths. When a directory
path, all .py files within the directory will be examined, and, if the -r
option is given, likewise recursively for subdirectories.
If output is not to standard output, reindent overwrites files in place,
renaming the originals with a .bak extension. If it finds nothing to
change, the file is left alone. If reindent does change a file,
the changed file is a fixed-point for future runs (i.e., running
reindent on the resulting .py file won't change it again).
The hard part of reindenting is figuring out what to do with comment
lines. So long as the input files get a clean bill of health from
tabnanny.py, reindent should do a good job.
Keywords: reindent,pep8,syntax,lint,tab,space
Platform: any
Classifier: Development Status :: 6 - Mature
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: Public Domain
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Quality Assurance