From e92a47d262e506a895b6fa7e8f7d22d5a41039e9 Mon Sep 17 00:00:00 2001 From: Uwe Fechner Date: Sat, 8 Mar 2025 14:50:05 +0100 Subject: [PATCH 1/3] Add Aqua, fix Project.toml and exports --- Project.toml | 11 +++++++++-- src/KiteUtils.jl | 2 +- test/aqua.jl | 2 ++ test/runtests.jl | 1 + 4 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 test/aqua.jl diff --git a/Project.toml b/Project.toml index bc657b04..2c057d47 100644 --- a/Project.toml +++ b/Project.toml @@ -23,27 +23,34 @@ StructTypes = "856f2bd8-1eba-4b0a-8007-ebc267875bd4" YAML = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6" [compat] +Aqua = "0.8" Arrow = "2.7.3" +BenchmarkTools = "1.6" CSV = "0.10.14" DocStringExtensions = "0.9.3" +Documenter = "1.8" +LinearAlgebra = "1" OrderedCollections = "1.6.3" Parameters = "0.12.3" Parsers = "2.8.1" +Pkg = "1" PrecompileTools = "1.2.1" RecursiveArrayTools = "3.27" ReferenceFrameRotations = "3.0.2" +REPL = "1" Rotations = "1.7.1" StaticArrays = "1.9.7" StructArrays = "0.6.18" StructTypes = "1.11.0" +Test = "1" YAML = "0.4.12" julia = "1.10" [extras] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf" Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" -KiteUtils = "90980105-b163-44e5-ba9f-8b1c83bb0533" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test", "Documenter", "KiteUtils", "BenchmarkTools"] +test = ["Test", "Documenter", "BenchmarkTools", "Aqua"] diff --git a/src/KiteUtils.jl b/src/KiteUtils.jl index 45f5f848..64618ce6 100644 --- a/src/KiteUtils.jl +++ b/src/KiteUtils.jl @@ -50,7 +50,7 @@ export demo_state, demo_syslog, demo_log, load_log, save_log, export_log, import export log!, syslog, length, euler2rot, menu export demo_state_4p, demo_state_4p_3lines, initial_kite_ref_frame # functions for four point and three line kite export rot, rot3d, ground_dist, calc_elevation, azimuth_east, azimuth_north, asin2 -export acos2, wrap2pi, quat2euler, quat2frame, quat2viewer # geometric functions +export acos2, wrap2pi, quat2euler, quat2viewer # geometric functions export fromEG2W, fromENU2EG,fromW2SE, fromKS2EX, fromEX2EG # reference frame transformations export azn2azw, calc_heading_w, calc_heading, calc_course # geometric functions export calc_orient_rot, is_right_handed_orthonormal, enu2ned, ned2enu diff --git a/test/aqua.jl b/test/aqua.jl new file mode 100644 index 00000000..bacb0397 --- /dev/null +++ b/test/aqua.jl @@ -0,0 +1,2 @@ +using Aqua +Aqua.test_all(KiteUtils) \ No newline at end of file diff --git a/test/runtests.jl b/test/runtests.jl index 8f35b17f..adb70cf9 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -63,5 +63,6 @@ include("test_orientation.jl") include("test_azimuth.jl") include("test_rotational_inertia.jl") include("bench.jl") +include("aqua.jl") end nothing \ No newline at end of file From 51259959ff85b7f7f6075edd0e5fdfe05f9c216a Mon Sep 17 00:00:00 2001 From: Uwe Fechner Date: Sat, 8 Mar 2025 15:07:12 +0100 Subject: [PATCH 2/3] Fix Project.toml --- Project.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 2c057d47..9a8db9c5 100644 --- a/Project.toml +++ b/Project.toml @@ -13,7 +13,6 @@ Parameters = "d96e819e-fc66-5662-9728-84c9c7592b0a" Parsers = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0" Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" -REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb" RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd" ReferenceFrameRotations = "74f56ac7-18b3-5285-802d-d4bd4f104033" Rotations = "6038ab10-8711-5258-84ad-4b1120ba62dc" @@ -50,7 +49,8 @@ julia = "1.10" Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf" Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" +REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test", "Documenter", "BenchmarkTools", "Aqua"] +test = ["Test", "REPL", "Documenter", "BenchmarkTools", "Aqua"] From bf1a6053dfc18dea8aa3a8951ea4be73b1a0e528 Mon Sep 17 00:00:00 2001 From: Uwe Fechner Date: Sat, 8 Mar 2025 15:10:09 +0100 Subject: [PATCH 3/3] Add button to README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index efe0f087..76cff9dd 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://ufechner7.github.io/KiteUtils.jl/dev) [![Build Status](https://github.com/ufechner7/KiteUtils.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/ufechner7/KiteUtils.jl/actions/workflows/CI.yml?query=branch%3Amain) [![Coverage](https://codecov.io/gh/ufechner7/KiteUtils.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/ufechner7/KiteUtils.jl) +[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl) Utilities for simulating kite power systems.