Skip to content

Commit

Permalink
Implement ExplicitImports hook in main repo
Browse files Browse the repository at this point in the history
Manually add an ExplicitImports pre-commit hook.

Related to #349
  • Loading branch information
abelsiqueira committed Oct 29, 2024
1 parent 350e34d commit 8dff120
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/Lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ jobs:
version: "1"
- name: Use Julia cache
uses: julia-actions/cache@v2
- name: Install JuliaFormatter.jl
run: julia -e 'using Pkg; pkg"add JuliaFormatter"'
- name: Build package (required for ExplicitImports)
uses: julia-actions/julia-buildpkg@v1
- name: Install Julia packages
run: julia -e 'using Pkg; pkg"add ExplicitImports, JuliaFormatter"'
- name: Hack for setup-python cache # https://github.com/actions/setup-python/issues/807
run: touch requirements.txt
- name: Setup Python
Expand Down
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ repos:
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/ericphanson/ExplicitImports.jl
rev: v1.10.0
hooks:
- id: explicit-imports
name: ExplicitImports checks
args: [--print, --checklist, exclude_all_qualified_accesses_are_public]
- repo: https://github.com/domluna/JuliaFormatter.jl
rev: v1.0.61
hooks:
Expand Down
2 changes: 1 addition & 1 deletion src/debug/Debug.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Noteworthy: [`BestieTemplate.Debug.Data`](@ref)
"""
module Debug

using ..BestieTemplate: BestieTemplate, generate, apply
using ..BestieTemplate: BestieTemplate

include("Data.jl")
include("helper.jl")
Expand Down

0 comments on commit 8dff120

Please sign in to comment.