-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand CLI functionality in
main
, make available on earlier Julia v…
…ersions, and add `.pre-commit-config.yaml` (#86) * Create script and pre-commit hook Update the CLI at src/main.jl to allow running the checks. The checks can be defined based on parsed arguments. Create scripts/explicit-imports.jl to pass ARGS to the CLI when running pre-commit. Create a pre-commit hook that runs the script. Move the documentation of CLI from docs/api.md to the README. Expands the CLI documentation with information on how to run the pre-commit hooks. Closes #85 * fix typo (`individial` -> `individual`) * rename files `main.jl` -> `cli.jl` * reorganize docs a little bit * reduce confusion by tweaking word elsewhere * don't show stacktrace in CLI * Revert "rename files `main.jl` -> `cli.jl`" This reverts commit d1ef007. * rename `cli` to `main` * only call `activate_and_load` once * all caps globals * exit manually * bump version --------- Co-authored-by: Eric Hanson <[email protected]>
- Loading branch information
1 parent
e78b1ee
commit 24b0de3
Showing
9 changed files
with
300 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- id: explicit-imports | ||
name: ExplicitImports checks | ||
entry: ./scripts/explicit-imports.jl --check | ||
files: ^src.*\.jl$ | ||
language: script | ||
pass_filenames: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env julia | ||
using ExplicitImports: main | ||
|
||
exit(main(ARGS)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
24b0de3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
24b0de3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/116711
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: