diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5ace4600..bd654063 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,5 @@ updates: directory: "/" schedule: interval: "weekly" + commit-message: + prefix: "chore: " diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 8677d780..57bffaa6 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -115,7 +115,7 @@ jobs: strategy: matrix: platform: - - runner: macos-12 + - runner: macos-13 target: x86_64 - runner: macos-14 target: aarch64 diff --git a/crates/lox-ephem/src/spk/api.rs b/crates/lox-ephem/src/spk/api.rs index b06e0c33..863c4b44 100644 --- a/crates/lox-ephem/src/spk/api.rs +++ b/crates/lox-ephem/src/spk/api.rs @@ -49,7 +49,7 @@ impl Spk { array: &'a SpkType2Array, initial_epoch: Epoch, epoch: Epoch, - ) -> Result<(&Vec<SpkType2Coefficients>, f64), DafSpkError> { + ) -> Result<(&'a Vec<SpkType2Coefficients>, f64), DafSpkError> { let seconds_from_record_start = epoch - initial_epoch; let intlen = array.intlen as f64; @@ -81,7 +81,7 @@ impl Spk { &'a self, epoch: Epoch, segment: &'a SpkSegment, - ) -> Result<(Vec<f64>, &Vec<SpkType2Coefficients>), DafSpkError> { + ) -> Result<(Vec<f64>, &'a Vec<SpkType2Coefficients>), DafSpkError> { let (coefficients, record) = match &segment.data { super::parser::SpkArray::Type2(array) => { let (record, fraction) = self.find_record(array, segment.initial_epoch, epoch)?; diff --git a/crates/lox-math/src/linear_algebra/tridiagonal.rs b/crates/lox-math/src/linear_algebra/tridiagonal.rs index 16a7e91b..f4e9fa66 100644 --- a/crates/lox-math/src/linear_algebra/tridiagonal.rs +++ b/crates/lox-math/src/linear_algebra/tridiagonal.rs @@ -67,7 +67,7 @@ impl<'a> Tridiagonal<'a> { } } -impl<'a> Index<Idx> for Tridiagonal<'a> { +impl Index<Idx> for Tridiagonal<'_> { type Output = f64; fn index(&self, (i, j): Idx) -> &Self::Output { diff --git a/crates/lox-math/src/math.rs b/crates/lox-math/src/math.rs index 8f11e4cc..efd0eabb 100644 --- a/crates/lox-math/src/math.rs +++ b/crates/lox-math/src/math.rs @@ -1,9 +1,9 @@ +//! Module math provides common mathematical functions shared by many parts of the library. + use std::f64::consts::{PI, TAU}; use crate::types::units::{Arcseconds, Radians}; -/// Module math provides common mathematical functions shared by many parts of the library. - /// Normalizes an angle `a` to the range [center-π, center+π). pub fn normalize_two_pi(a: Radians, center: Radians) -> Radians { a - 2.0 * PI * ((a + PI - center) / (2.0 * PI)).floor() diff --git a/crates/lox-space/pyproject.toml b/crates/lox-space/pyproject.toml index d0691e38..b78eb263 100644 --- a/crates/lox-space/pyproject.toml +++ b/crates/lox-space/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "lox-space" -requires-python = ">=3.7" +requires-python = ">=3.9" classifiers = [ "Programming Language :: Rust", "Programming Language :: Python :: Implementation :: CPython", diff --git a/crates/lox-time/src/test_helpers.rs b/crates/lox-time/src/test_helpers.rs index d641b1bb..fdc73517 100644 --- a/crates/lox-time/src/test_helpers.rs +++ b/crates/lox-time/src/test_helpers.rs @@ -6,8 +6,6 @@ * file, you can obtain one at https://mozilla.org/MPL/2.0/. */ -#![cfg(test)] - use std::{path::PathBuf, sync::OnceLock}; use crate::{ut1::DeltaUt1Tai, utc::leap_seconds::BuiltinLeapSeconds};