Skip to content

Commit e9934ed

Browse files
authored
Merge pull request #33 from j-fu/modernize
Modernize: Formatting, fix named using, remove some superfluous files from stl dir, fix for 1.11 memory handling
2 parents b7505cf + 181d78e commit e9934ed

19 files changed

+788
-12921
lines changed

.JuliaFormatter.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
style = "sciml"
2+
pipe_to_function_call=false
3+
always_for_in = false
4+
separate_kwargs_with_semicolon = true
5+
margin = 132
6+
yas_style_nesting=true

.github/workflows/format_check.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
2+
name: format-check
3+
4+
on:
5+
push:
6+
branches:
7+
- 'master'
8+
- 'release-'
9+
tags: '*'
10+
pull_request:
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
julia-version: [1.3.0]
18+
julia-arch: [x86]
19+
os: [ubuntu-latest]
20+
steps:
21+
- uses: julia-actions/setup-julia@latest
22+
with:
23+
version: ${{ matrix.julia-version }}
24+
25+
- uses: actions/checkout@v1
26+
- name: Install JuliaFormatter and format
27+
# This will use the latest version by default but you can set the version like so:
28+
#
29+
# julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="0.13.0"))'
30+
run: |
31+
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
32+
julia -e 'using JuliaFormatter; format(".", verbose=true)'
33+
- name: Format check
34+
run: |
35+
julia -e '
36+
out = Cmd(`git diff --name-only`) |> read |> String
37+
if out == ""
38+
exit(0)
39+
else
40+
@error "Some files have not been formatted !!!"
41+
write(stdout, out)
42+
exit(1)
43+
end'
44+
45+

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TetGen"
22
uuid = "c5d3f3f7-f850-59f6-8a2e-ffc6dc1317ea"
33
authors = ["SimonDanisch <[email protected]>", "Juergen Fuhrmann <[email protected]"]
4-
version = "1.4.0"
4+
version = "1.5.0"
55

66
[deps]
77
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
@@ -15,8 +15,8 @@ TetGen_jll = "b47fdcd6-d2c1-58e9-bbba-c1cee8d8c179"
1515
DocStringExtensions = "0.8,0.9"
1616
GeometryBasics = "0.2, 0.3, 0.4"
1717
StaticArrays = "1"
18-
julia = "1.6"
1918
TetGen_jll = "1.5.3"
19+
julia = "1.6"
2020

2121
[extras]
2222
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

docs/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
TetGen = "c5d3f3f7-f850-59f6-8a2e-ffc6dc1317ea"
4+
5+
[compat]
6+
Documenter = "1"

docs/make.jl

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
using Documenter, TetGen
22

33
function make_all()
4-
makedocs(
4+
makedocs(;
5+
sitename = "TetGen.jl",
6+
modules = [TetGen],
7+
warnonly = true,
8+
clean = false,
9+
doctest = false,
10+
authors = "Simon Danisch, Juergen Fuhrmann",
11+
repo = "https://github.com/JuliaGeometry/TetGen.jl",
12+
pages = [
13+
"Home" => "index.md",
14+
])
515

6-
sitename="TetGen.jl",
7-
modules = [TetGen],
8-
clean = true,
9-
doctest = false,
10-
authors = "Simon Danisch, Juergen Fuhrmann",
11-
repo="https://github.com/JuliaGeometry/TetGen.jl",
12-
pages=[
13-
"Home"=>"index.md"
14-
]
15-
)
16-
1716
if !isinteractive()
18-
deploydocs(repo = "github.com/JuliaGeometry/TetGen.jl.git")
17+
deploydocs(; repo = "github.com/JuliaGeometry/TetGen.jl.git")
1918
end
2019
end
2120

docs/src/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Modules = [TetGen]
2525
Pages = [ "rawtetgenio.jl"]
2626
```
2727

28+
```@docs
29+
tetunsuitable!
30+
```
31+
2832

2933
## TetGen C++ code
3034

0 commit comments

Comments
 (0)