Skip to content

Commit d660448

Browse files
committed
Update pycodestyle
1 parent 6e11e5f commit d660448

File tree

7 files changed

+14
-9
lines changed

7 files changed

+14
-9
lines changed

doc/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
3131
extensions = [
3232
'sphinx.ext.autodoc',
33-
#'sphinx.ext.intersphinx',
33+
# 'sphinx.ext.intersphinx',
3434
]
3535

3636
# autodoc generation is a bit aggressive and a nuisance when doing heavy
@@ -79,4 +79,4 @@
7979
]
8080

8181
# Example configuration for intersphinx: refer to the Python standard library.
82-
#intersphinx_mapping = {'http://docs.python.org/': None}
82+
# intersphinx_mapping = {'http://docs.python.org/': None}

examples/create_deployment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from os import path
1616

1717
import yaml
18-
1918
from kubernetes import client, config
2019

2120

examples/deployment_examples.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from os import path
1616

1717
import yaml
18-
1918
from kubernetes import client, config
2019

2120
DEPLOYMENT_NAME = "nginx-deployment"

examples/example4.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
from kubernetes import client, config
1616
from kubernetes.client import configuration
17+
1718
# install pick using "pip install pick". It is not included
1819
# as a dependency because it only used in examples
1920
from pick import pick

examples/multiple_clusters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
from kubernetes import client, config
16+
1617
# install pick using "pip install pick". It is not included
1718
# as a dependency because it only used in examples
1819
from pick import pick

examples/remote_cluster.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def main():
2323
# Define the barer token we are going to use to authenticate.
2424
# See here to create the token:
2525
# https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/
26-
aToken = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
26+
aToken = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"\
27+
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
2728

2829
# Create a configuration object
2930
aConfiguration = client.Configuration()

kubernetes/utils/create_from_yaml.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
from os import path
1919

2020
import yaml
21-
from six import iteritems
22-
2321
from kubernetes import client
22+
from six import iteritems
2423

2524

2625
def create_from_yaml(k8s_client, yaml_file, verbose=False, **kwargs):
@@ -33,9 +32,14 @@ def create_from_yaml(k8s_client, yaml_file, verbose=False, **kwargs):
3332
3433
Available parameters for performing the subsequent action:
3534
:param async_req bool
36-
:param bool include_uninitialized: If true, partially initialized resources are included in the response.
35+
:param bool include_uninitialized: If true, partially initialized
36+
resources are included in the response.
3737
:param str pretty: If 'true', then the output is pretty printed.
38-
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
38+
:param str dry_run: When present, indicates that modifications
39+
should not be persisted. An invalid or unrecognized dryRun
40+
directive will result in an error response and no further
41+
processing of the request. Valid values are: - All:
42+
all dry run stages will be processed
3943
"""
4044

4145
with open(path.abspath(yaml_file)) as f:

0 commit comments

Comments
 (0)