Skip to content

Commit

Permalink
Merge pull request #18 from control-toolbox/17-dev-add-aqua-and-blue-…
Browse files Browse the repository at this point in the history
…style

add aqua and blue
  • Loading branch information
ocots authored Sep 6, 2024
2 parents 7e28873 + cf2f31a commit b1de56f
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 13 deletions.
7 changes: 0 additions & 7 deletions .JuliaFormatter.toml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/Formatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install JuliaFormatter and format
run: |
julia -e 'import Pkg; Pkg.add("JuliaFormatter")'
julia -e 'using JuliaFormatter; format(".")'
julia -e 'using JuliaFormatter; format(".", BlueStyle())'
# https://github.com/marketplace/actions/create-pull-request
# https://github.com/peter-evans/create-pull-request#reference-example
- name: Create Pull Request
Expand Down
3 changes: 3 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ name = "GeometricPreconditioner"
uuid = "4fb4c77a-c2a1-4666-8b47-e5158870c0af"
authors = ["Olivier Cots <olivier.cots@irit.fr>"]
version = "0.1.1"

[compat]
julia = "1.10"
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,22 @@
[doc-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg
[doc-stable-url]: https://control-toolbox.org/preconditioning/stable/

[licence-img]: https://img.shields.io/badge/License-MIT-yellow.svg
[licence-url]: https://github.com/control-toolbox/preconditioning/blob/master/LICENSE

[aqua-img]: https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg
[aqua-url]: https://github.com/JuliaTesting/Aqua.jl

This repo is part of the [control-toolbox ecosystem](https://github.com/control-toolbox).
The control-toolbox ecosystem gathers Julia packages for mathematical control and applications. The root package is [OptimalControl.jl](https://github.com/control-toolbox/OptimalControl.jl) which aims to provide tools to modelise and solve optimal control problems with ordinary differential equations by direct and indirect methods.

[![doc OptimalControl.jl](https://img.shields.io/badge/Documentation-OptimalControl.jl-blue)](http://control-toolbox.org/OptimalControl.jl)

| **Documentation** | **Code Status** |
|:-------------------|:-----------------|
| [![Documentation][doc-stable-img]][doc-stable-url] [![Documentation][doc-dev-img]][doc-dev-url] | [![Build Status][ci-img]][ci-url] [![Covering Status][co-img]][co-url] |
| **Name** | **Badge** |
:-------------------|:------------------|
| Documentation | [![Documentation][doc-stable-img]][doc-stable-url] [![Documentation][doc-dev-img]][doc-dev-url] |
| Code Status | [![Build Status][ci-img]][ci-url] [![Covering Status][co-img]][co-url] [![Aqua.jl][aqua-img]][aqua-url] |
| Licence | [![License: MIT][licence-img]][licence-url] |

## Contributing

Expand Down
5 changes: 5 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
Aqua = "0.8"
julia = "1.10"
5 changes: 3 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using Test
using Aqua
using GeometricPreconditioner
using Test

#
@testset verbose = true showtiming = true "Base" begin
for name (:default,)
for name (:aqua, :default)
@testset "$(name)" begin
test_name = Symbol(:test_, name)
include("$(test_name).jl")
Expand Down
13 changes: 13 additions & 0 deletions test/test_aqua.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function test_aqua()
@testset "Aqua.jl" begin
Aqua.test_all(
GeometricPreconditioner;
ambiguities=false,
#stale_deps=(ignore=[:SomePackage],),
deps_compat=(ignore=[:LinearAlgebra, :Unicode],),
piracies=true,
)
# do not warn about ambiguities in dependencies
Aqua.test_ambiguities(GeometricPreconditioner)
end
end

0 comments on commit b1de56f

Please sign in to comment.