-
Notifications
You must be signed in to change notification settings - Fork 565
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
Feat: add python to auto detect for --all-projects
#964
Conversation
--all-projects
f6f0c6c
to
4fe746c
Compare
@@ -145,8 +145,8 @@ export const AllProjectsTests: AcceptanceTests = { | |||
allProjects: true, |
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.
Add skipUnresolved: true
here so we don't fail on python plugin
@@ -41,6 +41,8 @@ export const AUTO_DETECTABLE_FILES: string[] = [ | |||
'packages.config', | |||
'project.json', | |||
'project.assets.json', | |||
'Pipfile', | |||
'requirements.txt', |
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.
is there a test for requirements.txt
? not sure we really need what do you think?
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.
not atm as Pip
doesnt pass
a9ab75d
to
4fda770
Compare
// Python plugin (actually "custom-auto-detect" plugin) doesn't return | ||
// "targetFile" prop as expected, so we picked it from another part of | ||
// the req; | ||
const { |
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.
This is a part of the hack we did in order to push the relevant target file
Should be removed once the pipfile issue is resolved
// Forcing targetFile into the payload as the new plugin doesn't return | ||
// it; | ||
t.same( | ||
{...pipAllProjectsBody}, // targetFile: pipAllProjectsBody.displayTargetFile}, |
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.
Hack like in test/acceptance/cli-monitor/cli-monitor.all-projects.spec.ts#230
// Forcing targetFile into the payload as the new plugin doesn't return | ||
// it; | ||
t.same( | ||
{ ...pipAllProjectsBody }, // targetFile: pipAllProjectsBody.displayTargetFile}, |
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.
Hack like test/acceptance/cli-monitor/cli-monitor.all-projects.spec.ts#L230
@@ -41,6 +41,8 @@ export const AUTO_DETECTABLE_FILES: string[] = [ | |||
'packages.config', | |||
'project.json', | |||
'project.assets.json', | |||
'Pipfile', | |||
'requirements.txt', |
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.
not atm as Pip
doesnt pass
}); | ||
t.ok(spyPlugin.withArgs('rubygems').calledOnce, 'calls rubygems plugin'); | ||
t.ok(spyPlugin.withArgs('npm').calledOnce, 'calls npm plugin'); | ||
t.ok(spyPlugin.withArgs('maven').calledOnce, 'calls maven plugin'); | ||
t.ok(spyPlugin.withArgs('pip').calledOnce, 'calls maven plugin'); |
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.
text need to be changed to pip
plugin
25ca6ea
to
66dc964
Compare
d885688
to
7d7e02f
Compare
33965e1
to
aff0972
Compare
@@ -9,7 +9,7 @@ interface AcceptanceTests { | |||
} | |||
|
|||
export const AllProjectsTests: AcceptanceTests = { | |||
language: 'Mixed (Ruby & Npm & Maven)', | |||
language: 'Mixed (Ruby & Npm & Maven & Pip)', |
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.
have just made this 'Mixed' on my go PR
a2d9682
to
c004843
Compare
c004843
to
8e2702c
Compare
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.
0291fb5
to
c2ffa9b
Compare
c2ffa9b
to
36d59cc
Compare
Not really sure if |
acd0522
to
bcb37cd
Compare
Adding support for Pipfile and requirements.txt with --all-projects. Refactoring tests as well as adding tests for Pipfile and requirements.txt.
bcb37cd
to
e1651dd
Compare
🎉 This PR is included in version 1.287.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What does this PR do?
Adding
Pipfile
andrequirements.txt
to auto-detection w/--all-projects
Where should the reviewer start?
How should this be manually tested?
Any background context you want to provide?
What are the relevant tickets?
BST-1112