Skip to content
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 pre-commit hook. #25

Closed
wants to merge 1 commit into from
Closed

Conversation

augustebaum
Copy link

Closes #24.

Testing:

  • Create a test_dir directory tracked by git containing only a pyproject.toml file respecting the poetry2conda requirements (i.e. that the [tool.poetry2conda] section have a name field).
  • As described in the pre-commit docs, run
cd /path/to/test_dir
pre-commit try-repo /path/to/poetry2conda "poetry2conda" --all-files --verbose

The output should look something like:

===============================================================================
Using config:
===============================================================================
repos:
-   repo: /path/to/poetry2conda
    rev: f857af95a3e1c88492ad252e44593ce78f8881d5
    hooks:
    -   id: poetry2conda
===============================================================================
[INFO] Initializing environment for /path/to/poetry2conda.
[INFO] Installing environment for /path/to/poetry2conda.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
poetry2conda.............................................................Passed
- hook id: poetry2conda
- duration: 0.08s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add pre-commit hook
1 participant