Skip to content

Commit 35028cb

Browse files
authored
Merge branch 'master' into jn/ambig-getobj
2 parents 3f1328e + 484c23f commit 35028cb

18 files changed

+249
-566
lines changed

.github/workflows/docs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
pull_request:
99
workflow_dispatch:
1010

11+
# needed to allow julia-actions/cache to delete old caches that it has created
12+
permissions:
13+
actions: write
14+
contents: read
15+
1116
concurrency:
1217
# group by workflow and ref; the last slightly strange component ensures that for pull
1318
# requests, we limit to 1 concurrent job, but for the master branch we don't

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
pull_request:
99
workflow_dispatch:
1010

11+
# needed to allow julia-actions/cache to delete old caches that it has created
12+
permissions:
13+
actions: write
14+
contents: read
15+
1116
concurrency:
1217
# group by workflow and ref; the last slightly strange component ensures that for pull
1318
# requests, we limit to 1 concurrent job, but for the master branch we don't
@@ -32,26 +37,20 @@ jobs:
3237
- '1.8'
3338
- '1.7'
3439
- '1.6'
35-
- '1.5'
36-
- '1.4'
37-
- '1.3'
38-
- '1.2'
39-
- '1.1'
40-
- '1.0'
4140
- 'nightly'
4241
include:
4342
- os: windows-latest
4443
julia-version: '1'
4544
- os: windows-latest
46-
julia-version: '1.0'
45+
julia-version: '1.6'
4746
- os: windows-latest
4847
julia-version: '1.12-nightly'
4948
- os: windows-latest
5049
julia-version: 'nightly'
5150
- os: macOS-latest
5251
julia-version: '1'
5352
- os: macOS-13 # macOS-14 and later require julia >= 1.8
54-
julia-version: '1.0'
53+
julia-version: '1.6'
5554
- os: macOS-latest
5655
julia-version: '1.12-nightly'
5756
- os: macOS-latest
@@ -67,6 +66,7 @@ jobs:
6766
uses: julia-actions/setup-julia@v2
6867
with:
6968
version: ${{ matrix.julia-version }}
69+
- uses: julia-actions/cache@v2
7070
- uses: julia-actions/julia-runtest@v1
7171
with:
7272
depwarn: error

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## Version [v1.0.0] - unreleased
9+
10+
### Changed
11+
12+
- The minimum supported julia version is increased to 1.6. ([#328])
13+
14+
## Version [v0.8.12] - 2025-05-05
15+
16+
### Changed
17+
18+
- Add `test_undocumented_names` to verify that all public symbols have docstrings (not including the module itself). This test is not enabled by default in `test_all`. ([#313])
19+
820
## Version [v0.8.11] - 2025-02-06
921

1022
### Changed
@@ -257,6 +269,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
257269
[v0.8.9]: https://github.com/JuliaTesting/Aqua.jl/releases/tag/v0.8.9
258270
[v0.8.10]: https://github.com/JuliaTesting/Aqua.jl/releases/tag/v0.8.10
259271
[v0.8.11]: https://github.com/JuliaTesting/Aqua.jl/releases/tag/v0.8.11
272+
[v0.8.12]: https://github.com/JuliaTesting/Aqua.jl/releases/tag/v0.8.12
260273
[#93]: https://github.com/JuliaTesting/Aqua.jl/issues/93
261274
[#103]: https://github.com/JuliaTesting/Aqua.jl/issues/103
262275
[#113]: https://github.com/JuliaTesting/Aqua.jl/issues/113
@@ -306,5 +319,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
306319
[#288]: https://github.com/JuliaTesting/Aqua.jl/issues/288
307320
[#297]: https://github.com/JuliaTesting/Aqua.jl/issues/297
308321
[#309]: https://github.com/JuliaTesting/Aqua.jl/issues/309
322+
[#313]: https://github.com/JuliaTesting/Aqua.jl/issues/313
309323
[#319]: https://github.com/JuliaTesting/Aqua.jl/issues/319
310324
[#322]: https://github.com/JuliaTesting/Aqua.jl/issues/322
325+
[#328]: https://github.com/JuliaTesting/Aqua.jl/issues/328

Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
name = "Aqua"
22
uuid = "4c88cf16-eb10-579e-8560-4a9242c79595"
33
authors = ["Takafumi Arakaki <[email protected]> and contributors"]
4-
version = "0.8.11"
4+
version = "1.0.0-DEV"
55

66
[deps]
77
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
88
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
99
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1010

1111
[compat]
12-
Compat = "3.12, 4"
13-
Pkg = "1.0"
12+
Compat = "4"
13+
Pkg = "1.6"
1414
Test = "<0.0.1, 1"
15-
julia = "1.0"
15+
julia = "1.6"
1616

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

docs/make.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ makedocs(;
2929
"deps_compat.md",
3030
"piracies.md",
3131
"persistent_tasks.md",
32+
"undocumented_names.md",
3233
],
3334
"release-notes.md",
3435
],

docs/src/undocumented_names.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Undocumented names
2+
3+
## [Test function](@id test_undocumented_names)
4+
5+
```@docs
6+
Aqua.test_undocumented_names
7+
```

src/Aqua.jl

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
module Aqua
22

3-
using Base: PkgId, UUID
3+
using Base: Docs, PkgId, UUID
44
using Pkg: Pkg, TOML, PackageSpec
5+
using Pkg.Types: VersionSpec, semver_spec
56
using Test
67

7-
@static if VERSION < v"1.1.0-DEV.472"
8-
using Compat: isnothing
9-
end
10-
@static if VERSION < v"1.3.0-DEV.349"
11-
using Compat: findfirst
12-
end
13-
14-
include("pkg/Versions.jl")
15-
using .Versions: VersionSpec, semver_spec
168

179
include("utils.jl")
1810
include("ambiguities.jl")
@@ -23,6 +15,7 @@ include("stale_deps.jl")
2315
include("deps_compat.jl")
2416
include("piracies.jl")
2517
include("persistent_tasks.jl")
18+
include("undocumented_names.jl")
2619

2720
"""
2821
test_all(testtarget::Module)
@@ -37,6 +30,7 @@ Run the following tests:
3730
* [`test_deps_compat(testtarget)`](@ref test_deps_compat)
3831
* [`test_piracies(testtarget)`](@ref test_piracies)
3932
* [`test_persistent_tasks(testtarget)`](@ref test_persistent_tasks)
33+
* [`test_undocumented_names(testtarget)`](@ref test_undocumented_names)
4034
4135
The keyword argument `\$x` (e.g., `ambiguities`) can be used to
4236
control whether or not to run `test_\$x` (e.g., `test_ambiguities`).
@@ -52,6 +46,7 @@ passed to `\$x` to specify the keyword arguments for `test_\$x`.
5246
- `deps_compat = true`
5347
- `piracies = true`
5448
- `persistent_tasks = true`
49+
- `undocumented_names = false`
5550
"""
5651
function test_all(
5752
testtarget::Module;
@@ -63,6 +58,7 @@ function test_all(
6358
deps_compat = true,
6459
piracies = true,
6560
persistent_tasks = true,
61+
undocumented_names = false,
6662
)
6763
if ambiguities !== false
6864
@testset "Method ambiguity" begin
@@ -105,6 +101,13 @@ function test_all(
105101
test_persistent_tasks(testtarget; askwargs(persistent_tasks)...)
106102
end
107103
end
104+
@testset "Undocumented names" begin
105+
if undocumented_names !== false
106+
isempty(askwargs(undocumented_names)) ||
107+
error("Keyword arguments not supported")
108+
test_undocumented_names(testtarget; askwargs(undocumented_names)...)
109+
end
110+
end
108111
end
109112

110113
end # module

src/piracies.jl

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,7 @@ module Piracy
22

33
using ..Aqua: is_kwcall
44

5-
@static if VERSION >= v"1.6-"
6-
using Test: is_in_mods
7-
else
8-
function is_in_mods(m::Module, recursive::Bool, mods)
9-
while true
10-
m in mods && return true
11-
recursive || return false
12-
p = parentmodule(m)
13-
p === m && return false
14-
m = p
15-
end
16-
end
17-
end
5+
using Test: is_in_mods
186

197
# based on Test/Test.jl#detect_ambiguities
208
# https://github.com/JuliaLang/julia/blob/v1.9.1/stdlib/Test/src/Test.jl#L1838-L1896

src/pkg/LICENSE.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)