-
Notifications
You must be signed in to change notification settings - Fork 14
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
add action input to configure working dir #51
Comments
Have you tried using the name: Run isort
on:
- push
jobs:
lint-foo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: isort/isort-action@master
with:
requirementsFiles: "my-proj/sub-proj-foo/requirements.txt"
sortPaths: "my-proj/sub-proj-foo"
lint-bar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: isort/isort-action@master
with:
requirementsFiles: "my-proj/sub-proj-bar/requirements.txt"
sortPaths: "my-proj/sub-proj-bar" |
Ah I glossed over that. That works for some of our packages, others (that need to be published to an internal registry) use a |
did a quick test, I loaded up a virtualenv and did the equivalent of:
and got different results. Keeping the venv constant should basically have the same effect as running |
Should be totally possible with the current setup. Just exclude the ...
jobs:
lint-foo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: echo "Installed the required dependencies here..."
- uses: isort/isort-action@master
with:
sortPaths: "my-proj/sub-proj-foo"
Out of curiosity, what were the differences? It would be easier to say definitively if there was a repro you could share. Note that if each of the subdirectories has its own config file with different isort settings, the plugin would currently require you to override the default for the An alternative would be to add support for another option named something like |
I have a project with a couple sub-packages that have their own requirement.txts, i.e.:
running the isort action doesn't pick up the third party deps, since isort is always run from the top-level root.
I'd like to be able to configure two separate isort invocations into my workflow, where I can call isort inside of
sub-proj-foo
and then separately inside ofsub-proj-bar
. Is this something you'd consider supporting?The text was updated successfully, but these errors were encountered: