Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Support for conda as a language #1232
Conversation
|
This is lacking sufficient tests, I'm unsure what should be tested and am open for suggestions. |
30ed0d1
to
79779be
|
This has now all review comments incorporated and tests are passing except for Windows. There we need to download a lightweight conda (take an exe from https://repo.anaconda.com/pkgs/misc/conda-execs/) to get the tests passing. This needs an modification of the Azure template like https://github.com/asottile/azure-pipeline-templates/blob/f8721c757e218487ca0bb38af0201b2a04e9ed52/job--python-tox.yml#L63-L68 @asottile Should I modify the template to always install a conda.exe on Windows or make this conditional on some parameter? |
|
there's a for example, here's what it does to install ruby / swift on linux: pre-commit/azure-pipelines.yml Lines 41 to 46 in 023b337 |
5aba042
to
f7144ad
|
seems good! |
|
@asottile Adjusted all things and CI is still green. :) |
|
|
||
| @contextlib.contextmanager | ||
| def in_env(prefix, language_version): | ||
| helpers.assert_version_default('conda', language_version) |
asottile
Dec 4, 2019
Member
this should be part of install_environment I believe
this should be part of install_environment I believe
xhochy
Dec 6, 2019
Author
Contributor
Should these be removed here then?
Should these be removed here then?
asottile
Dec 6, 2019
Member
yes -- you can take precedent from the other languages that use this function
yes -- you can take precedent from the other languages that use this function
|
@asottile Azure is failing with missing files in the template repo but these actually exist. Do you have an idea what is going wrong here? |
huh they must have changed the inclusion rules :/ |
|
I'm trying to fix that in #1234 -- we'll see! |
|
ok if you rebase on master it should fix the CI |

Fixes #1204
Example usage
.pre-commit-hooks.yaml:environment.yml: