Ravenports generated: 24 Sep 2021 02:24
[ravenports.git] / bucket_40 / python-autopep8
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               python-autopep8
4 VERSION=                1.5.7
5 KEYWORDS=               python
6 VARIANTS=               py38 py39
7 SDESC[py38]=            Automatic Python code formatter (PY38)
8 SDESC[py39]=            Automatic Python code formatter (PY39)
9 HOMEPAGE=               https://github.com/hhatto/autopep8
10 CONTACT=                Python_Automaton[python@ironwolf.systems]
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            PYPIWHL/a7/f6/84070ab117e6b080a87aac0ac9e4d269a66c6f6076ad81509bd0aac828d8
14 DISTFILE[1]=            autopep8-1.5.7-py2.py3-none-any.whl:main
15 DF_INDEX=               1
16 SPKGS[py38]=            single
17 SPKGS[py39]=            single
18
19 OPTIONS_AVAILABLE=      PY38 PY39
20 OPTIONS_STANDARD=       none
21 VOPTS[py38]=            PY38=ON PY39=OFF
22 VOPTS[py39]=            PY38=OFF PY39=ON
23
24 DISTNAME=               autopep8-1.5.7.dist-info
25
26 GENERATED=              yes
27
28 [PY38].RUN_DEPENDS_ON=                  python-pycodestyle:single:py38
29                                         python-toml:single:py38
30 [PY38].USES_ON=                         python:py38,wheel
31
32 [PY39].RUN_DEPENDS_ON=                  python-pycodestyle:single:py39
33                                         python-toml:single:py39
34 [PY39].USES_ON=                         python:py39,wheel
35
36 [FILE:2666:descriptions/desc.single]
37 ========
38 autopep8
39 ========
40
41     :alt: PyPI Version
42
43     :alt: Build status
44
45     :alt: Code Coverage
46
47 autopep8 automatically formats Python code to conform to the `PEP 8`_ style
48 guide. It uses the pycodestyle_ utility to determine what parts of the code
49 needs to be formatted. autopep8 is capable of fixing most of the formatting
50 issues_ that can be reported by pycodestyle.
51
52 .. _PEP 8: https://www.python.org/dev/peps/pep-0008/
53 .. _issues:
54 https://pycodestyle.readthedocs.org/en/latest/intro.html#error-codes
55
56 .. contents::
57
58 Installation
59 ============
60
61 From pip::
62
63     $ pip install --upgrade autopep8
64
65 Consider using the ``--user`` option_.
66
67 .. _option: https://pip.pypa.io/en/latest/user_guide/#user-installs
68
69 Requirements
70 ============
71
72 autopep8 requires pycodestyle_.
73
74 .. _pycodestyle: https://github.com/PyCQA/pycodestyle
75
76 Usage
77 =====
78
79 To modify a file in place (with aggressive level 2)::
80
81     $ autopep8 --in-place --aggressive --aggressive <filename>
82
83 Before running autopep8.
84
85 .. code-block:: python
86
87     import math, sys;
88
89     def example1():
90         ####This is a long comment. This should be wrapped to fit within 72
91 characters.
92         some_tuple=(   1,2, 3,'a'  );
93         some_variable={'long':'Long code lines should be wrapped within 79
94 characters.',
95         'other':[math.pi, 100,200,300,9876543210,'This is a long string
96 that goes on'],
97         'more':{'inner':'This whole logical line should be
98 wrapped.',some_tuple:[1,
99         20,300,40000,500000000,60000000000000000]}}
100         return (some_tuple, some_variable)
101     def example2(): return {'has_key() is
102 deprecated':True}.has_key({'f':2}.has_key(''));
103     class Example3(   object ):
104         def __init__    ( self, bar ):
105          #Comments should have a space after the hash.
106          if bar : bar+=1;  bar=bar* bar   ; return bar
107          else:
108                         some_string = """
109                            Indentation in multiline strings should not be touched.
110     Only actual code should be reindented.
111     """
112                         return (sys.path, some_string)
113
114 After running autopep8.
115
116 .. code-block:: python
117
118     import math
119     import sys
120
121     def example1():
122         # This is a long comment. This should be wrapped to fit within 72
123         # characters.
124         some_tuple = (1, 2, 3, 'a')
125         some_variable = {
126             'long': 'Long code lines should be wrapped within 79
127 characters.',
128             'other': [
129                 math.pi,
130                 100,
131                 200,
132                 300,
133                 9876543210,
134                 'This is a long string that goes on'],
135             'more': {
136                 'inner': 'This whole logical line should be wrapped.',
137
138
139 [FILE:114:distinfo]
140 aa213493c30dcdac99537249ee65b24af0b2c29f2e83cd8b3f68760441ed0db9        45046 autopep8-1.5.7-py2.py3-none-any.whl
141