Skip to content

Commit

Permalink
Merge pull request #359 from JrGoodle/refactor-kwargs
Browse files Browse the repository at this point in the history
Refactor kwargs
  • Loading branch information
JrGoodle committed Oct 30, 2017
2 parents 8617aab + 9a7d4c4 commit fd5ebc0
Show file tree
Hide file tree
Showing 19 changed files with 646 additions and 308 deletions.
9 changes: 9 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
version: "2"

engines:
pep8:
enabled: true

ratings:
paths:
- "**.py"

checks:
argument-count:
config:
Expand Down
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ valid-metaclass-classmethod-first-arg=mcs
[DESIGN]

# Maximum number of arguments for function / method
max-args=10
max-args=5

# Maximum number of attributes for a class (see R0902).
max-attributes=10
Expand Down
263 changes: 182 additions & 81 deletions clowder/clowder/clowder_controller.py

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion clowder/clowder/clowder_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,21 @@


class ClowderRepo(object):
"""Class encapsulating clowder repo information"""
"""Class encapsulating clowder repo information
Attributes:
root_directory (str): Root directory of clowder projects
default_ref (str): Default ref
remote (str): Remote name
clowder_path (path): Absolute path to clowder repo
"""

def __init__(self, root_directory):
"""ClowderController __init__
:param str root_directory: Root directory of clowder projects
"""

self.root_directory = root_directory
self.default_ref = 'refs/heads/master'
self.remote = 'origin'
Expand Down

0 comments on commit fd5ebc0

Please sign in to comment.