This repository has been archived by the owner on May 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use absolute imports * Fix PEP8, flake8, hacking compliance issues * Check code with flake 8 on each github push * Move dev dependencies to requirements-dev.txt * Update dependencies * Fix some little bugs with the tests * Start cleaning up the docblocks
- Loading branch information
Showing
42 changed files
with
582 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[flake8] | ||
ignore = | ||
# This isn't an OpenStack project so we don't use their headers. | ||
H102, | ||
H103 | ||
|
||
exclude = .git,__pycache__ | ||
# This needs to be dropped to <=10 once AcquiaData.request is refactored. | ||
max_complexity = 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
"""Wrapper for ACAPI Client.""" | ||
|
||
from .client import Client | ||
from __future__ import absolute_import | ||
|
||
from acapi.client import Client | ||
|
||
__all__ = ["Client"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,58 @@ | ||
""" Imports all the resources. """ | ||
|
||
# Base classes | ||
from .acquiadata import AcquiaData | ||
from .acquialist import AcquiaList | ||
from .acquiaresource import AcquiaResource | ||
from acapi.resources.acquiadata import AcquiaData | ||
from acapi.resources.acquialist import AcquiaList | ||
from acapi.resources.acquiaresource import AcquiaResource | ||
|
||
# Databases can be backed up | ||
from .backup import Backup | ||
from .backuplist import BackupList | ||
from acapi.resources.backup import Backup | ||
from acapi.resources.backuplist import BackupList | ||
|
||
# Environments have databases | ||
from .database import Database | ||
from .databaselist import DatabaseList | ||
from acapi.resources.database import Database | ||
from acapi.resources.databaselist import DatabaseList | ||
|
||
# Environments have domains | ||
from .domain import Domain | ||
from .domainlist import DomainList | ||
from acapi.resources.domain import Domain | ||
from acapi.resources.domainlist import DomainList | ||
|
||
# Sites reference environments | ||
from .environment import Environment | ||
from .environmentlist import EnvironmentList | ||
from acapi.resources.environment import Environment | ||
from acapi.resources.environmentlist import EnvironmentList | ||
|
||
# Sites have servers | ||
from .server import Server | ||
from .serverlist import ServerList | ||
from acapi.resources.server import Server | ||
from acapi.resources.serverlist import ServerList | ||
|
||
# Sites have tasks | ||
from .task import Task | ||
from .tasklist import TaskList | ||
from acapi.resources.task import Task | ||
from acapi.resources.tasklist import TaskList | ||
|
||
# Site is our top level | ||
from .site import Site | ||
from .sitelist import SiteList | ||
from acapi.resources.site import Site | ||
from acapi.resources.sitelist import SiteList | ||
|
||
# Users are top level | ||
from .user import User | ||
from acapi.resources.user import User | ||
|
||
__all__ = [ | ||
'AcquiaData', | ||
'AcquiaList', | ||
'AcquiaResource', | ||
'Backup', | ||
'BackupList', | ||
'Database', | ||
'DatabaseList', | ||
'Domain', | ||
'DomainList', | ||
'Environment', | ||
'EnvironmentList', | ||
'Server', | ||
'ServerList', | ||
'Task', | ||
'TaskList', | ||
'Site', | ||
'SiteList', | ||
'User', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.