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

Add help target in Makefile + rename typecheck to type-check #6

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

brandur
Copy link
Contributor

@brandur brandur commented Jul 2, 2024

Adds a help target to Makefile similar to what I did for Ruby which
uses comments on targets to produce a list of targets along with some
minimal documentation:

$ make help
help           Print this message
fmt            Autoformat code with Rye/Ruff
lint           Run linter with Rye/Ruff
test           Run test suite with Rye/pytest
type-check     Run type check with MyPy

It also runs as the default target, so help can be omitted:

$ make
help           Print this message
fmt            Autoformat code with Rye/Ruff
lint           Run linter with Rye/Ruff
test           Run test suite with Rye/pytest
type-check     Run type check with MyPy

Rename typecheck to type-check to match the same target in the Ruby
project so that we're consistent across all projects.

[1] riverqueue/riverqueue-ruby#19

Adds a help target to `Makefile` similar to what I did for Ruby which
uses comments on targets to produce a list of targets along with some
minimal documentation:

    $ make help
    help           Print this message
    fmt            Autoformat code with Rye/Ruff
    lint           Run linter with Rye/Ruff
    test           Run test suite with Rye/pytest
    type-check     Run type check with MyPy

It also runs as the default target, so `help` can be omitted:

    $ make
    help           Print this message
    fmt            Autoformat code with Rye/Ruff
    lint           Run linter with Rye/Ruff
    test           Run test suite with Rye/pytest
    type-check     Run type check with MyPy

Rename `typecheck` to `type-check` to match the same target in the Ruby
project so that we're consistent across all projects.

[1] riverqueue/riverqueue-ruby#19
@brandur brandur merged commit 7e86175 into master Jul 2, 2024
1 check passed
@brandur brandur deleted the brandur-make-help branch July 2, 2024 03:54
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.

1 participant