-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the automation code #1660
Conversation
troydai
commented
Jan 6, 2017
- Install automation code as a development package. The outcome is that the automation code can be invoked without add ./scripts folder to the PYTHONPATH.
- Add PEP8 scripts to fix PEP8 automatically
1. Install automation code as development package 2. Add PEP8 scripts to fix PEP8 automatically
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple questions, but I like the direction this is going.
@@ -2,7 +2,6 @@ adal==0.4.3 | |||
applicationinsights==0.10.0 | |||
argcomplete==1.3.0 | |||
colorama==0.3.7 | |||
coverage==4.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we removing this dependency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is moved to automation package's setup.py.
# -------------------------------------------------------------------------------------------- | ||
|
||
|
||
def fix_pip8(directory): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: should be fix_pep8
. Also, where does it "fit" (i.e. how and when will we invoke it?) Should it be added to the CI scripts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I'll fix the typo;
- I don't think this should be added to the CI script. From what I saw the autopep8 doesn't fix everything perfectly. It needs human intervention.
- What I do plan to add is a PEP8 code style check run after pylint.
Looks good? I'll merge soon. |
] | ||
|
||
setup( | ||
name='automation', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, please change name as even though we won't be releasing this package, it conflicts with https://pypi.python.org/pypi/automation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix this right now.
* Azure/master: Release azure-cli-component 0.1.0b12 (Azure#1665) Rename the utility automation package name (Azure#1664) [ACS] Update service principal creation so that it is subscription specific. (Azure#1630) Change the automation code (Azure#1660)