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

what is the base directory for "log_file" output #1553 #375

Closed
drjasonharrison opened this issue Aug 10, 2020 · 1 comment
Closed

what is the base directory for "log_file" output #1553 #375

drjasonharrison opened this issue Aug 10, 2020 · 1 comment

Comments

@drjasonharrison
Copy link
Contributor

Originally reported as pre-commit/pre-commit#1553

I'm running pytest using the following definition:

-   repo: local
    hooks:
    -   id: simple-pytest
        description: run pytest
        name: simple-pytest
        entry: pytest
        language: system
        types: [python]
        pass_filenames: false
        stages: [push]
        log_file: pytest.log

and I see pre-commit list pytest during the git push after I make a change to a .py source file and git add and git commit. But I cannot find a pytest.log file anywhere.

When I run pytest manually:

pytest > manual-pytest.log

The manual-pytest.log file is created in the current working directory.

This is on Ubuntu 18.04.4, with python 3.6.9, pytest 5.4.3

Conclusion: pytest is not failing -- that is why log file is created.

@asottile
Copy link
Member

no need to make a separate issue, you can use closes pre-commit/pre-commit#123 to close across projects

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

No branches or pull requests

2 participants