Skip to content

Commit

Permalink
make format_all.jl path independent (#17)
Browse files Browse the repository at this point in the history
Before the format_all.jl script needs to be execute from the project
root directory. Now the script can be executed from every directory
path.
  • Loading branch information
SimeonEhrig authored and Uwe Hernandez Acosta committed Jan 28, 2024
1 parent f499d9d commit b14ea96
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .formatting/format_all.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
using JuliaFormatter

<<<<<<< HEAD
# we asume the format_all.jl script is located in QEDbase.jl/.formatting
project_path = Base.Filesystem.joinpath(Base.Filesystem.dirname(Base.source_path()), "..")

not_formatted = format(project_path; verbose=true)
=======
not_formatted = format(pwd(); verbose=true)
>>>>>>> baec5cc (Enhancement for the gitlab-ci)
if not_formatted
@info "Formatting verified."
else
Expand Down

0 comments on commit b14ea96

Please sign in to comment.