Skip to content

Commit

Permalink
Update pycodestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
iamneha committed Feb 7, 2019
1 parent 6e11e5f commit d660448
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
'sphinx.ext.autodoc',
#'sphinx.ext.intersphinx',
# 'sphinx.ext.intersphinx',
]

# autodoc generation is a bit aggressive and a nuisance when doing heavy
Expand Down Expand Up @@ -79,4 +79,4 @@
]

# Example configuration for intersphinx: refer to the Python standard library.
#intersphinx_mapping = {'http://docs.python.org/': None}
# intersphinx_mapping = {'http://docs.python.org/': None}
1 change: 0 additions & 1 deletion examples/create_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from os import path

import yaml

from kubernetes import client, config


Expand Down
1 change: 0 additions & 1 deletion examples/deployment_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from os import path

import yaml

from kubernetes import client, config

DEPLOYMENT_NAME = "nginx-deployment"
Expand Down
1 change: 1 addition & 0 deletions examples/example4.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from kubernetes import client, config
from kubernetes.client import configuration

# install pick using "pip install pick". It is not included
# as a dependency because it only used in examples
from pick import pick
Expand Down
1 change: 1 addition & 0 deletions examples/multiple_clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

from kubernetes import client, config

# install pick using "pip install pick". It is not included
# as a dependency because it only used in examples
from pick import pick
Expand Down
3 changes: 2 additions & 1 deletion examples/remote_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def main():
# Define the barer token we are going to use to authenticate.
# See here to create the token:
# https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/
aToken = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
aToken = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"\
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

# Create a configuration object
aConfiguration = client.Configuration()
Expand Down
12 changes: 8 additions & 4 deletions kubernetes/utils/create_from_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
from os import path

import yaml
from six import iteritems

from kubernetes import client
from six import iteritems


def create_from_yaml(k8s_client, yaml_file, verbose=False, **kwargs):
Expand All @@ -33,9 +32,14 @@ def create_from_yaml(k8s_client, yaml_file, verbose=False, **kwargs):
Available parameters for performing the subsequent action:
:param async_req bool
:param bool include_uninitialized: If true, partially initialized resources are included in the response.
:param bool include_uninitialized: If true, partially initialized
resources are included in the response.
:param str pretty: If 'true', then the output is pretty printed.
: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
: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
"""

with open(path.abspath(yaml_file)) as f:
Expand Down

0 comments on commit d660448

Please sign in to comment.