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

Use Just to automate running tests and linters locally #446

Closed
simonw opened this issue Jun 20, 2022 · 2 comments
Closed

Use Just to automate running tests and linters locally #446

simonw opened this issue Jun 20, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Jun 20, 2022

I keep committing code that fails additional tests like mypy and flake8 and black. Automate those using Just.

@simonw simonw added the enhancement New feature or request label Jun 20, 2022
@simonw simonw closed this as completed in 3ddacb7 Jun 20, 2022
@simonw
Copy link
Owner Author

simonw commented Jun 20, 2022

just now defaults to running the tests and linters.

just test runs the tests - it can take arguments, e.g. just test -k transform

just lint runs all of the linters.

just black applies Black.

In all case it assumes you are using pipenv, at least for the moment.

@simonw
Copy link
Owner Author

simonw commented Jun 21, 2022

just -l now does this:

% just -l
Available recipes:
    black         # Apply Black
    cog           # Rebuild docs with cog
    default       # Run tests and linters
    lint          # Run linters: black, flake8, mypy, cog
    test *options # Run pytest with supplied options

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

No branches or pull requests

1 participant