-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various ticks fixes (precision, log scale) (#124)
* relax constraint on int exponent for log scales * update CI script * drop julia versions < 1.6 as in Plots * add formatting action * coding style * reorder statements * add type tests * Delete appveyor.yml * Delete REQUIRE Co-authored-by: Simon Christ <[email protected]>
- Loading branch information
1 parent
c2cf719
commit b2c8065
Showing
9 changed files
with
177 additions
and
169 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,12 @@ | ||
always_for_in = true | ||
import_to_using = false | ||
align_pair_arrow = true | ||
align_assignment = true | ||
align_conditional = true | ||
always_use_return = false | ||
conditional_to_if = false | ||
whitespace_in_kwargs = true | ||
remove_extra_newlines = true | ||
whitespace_ops_in_indices = true | ||
short_to_long_function_def = false | ||
annotate_untyped_fields_with_any = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: format-pr | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * SUN' | ||
|
||
jobs: | ||
build: | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install JuliaFormatter and format | ||
run: | | ||
julia -e 'using Pkg; pkg"add JuliaFormatter"' | ||
julia -e 'using JuliaFormatter; [format(["src", "test"]) for _ in 1:2]' | ||
git diff --exit-code | ||
- name: Create Pull Request | ||
if: ${{ failure() }} | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: "Format .jl files [skip ci]" | ||
title: 'Automatic JuliaFormatter.jl run' | ||
branch: auto-juliaformatter-pr | ||
delete-branch: true | ||
labels: formatting, automated pr, no changelog | ||
|
||
- name: Check outputs | ||
if: ${{ failure() }} | ||
run: | | ||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | ||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |
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 was deleted.
Oops, something went wrong.
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.
b2c8065
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
b2c8065
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/50464
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: