From b737083e8b908ce140852fe8810cb4b0cead4faa Mon Sep 17 00:00:00 2001 From: Rob Bishop Date: Sun, 31 May 2026 22:46:26 -0400 Subject: [PATCH 1/2] codecov --- .github/workflows/dart.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index b48e980..370a127 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@v4 - name: Setup Dart SDK uses: dart-lang/setup-dart@v1.7.2 @@ -38,3 +38,9 @@ jobs: - name: Verify 100% test coverage run: dart run tool/verify_coverage.dart + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + files: coverage/coverage.lcov + fail_ci_if_error: false From dead8f5dd102c5e0c0b87a5ef1a698c9bffa03aa Mon Sep 17 00:00:00 2001 From: Rob Bishop Date: Mon, 1 Jun 2026 07:05:47 -0400 Subject: [PATCH 2/2] codecov config; linter upgrade --- .github/workflows/dart.yml | 1 + lib/domain/acoustics.dart | 2 +- lib/domain/astronomical.dart | 2 +- lib/domain/atomic_nuclear.dart | 2 +- lib/domain/chemistry.dart | 2 +- lib/domain/computing.dart | 2 +- lib/domain/electromagnetic.dart | 3 ++- lib/domain/fluid_dynamics.dart | 2 +- lib/domain/radiometry.dart | 2 +- lib/domain/thermodynamic.dart | 3 ++- lib/domain/universal.dart | 2 +- lib/number.dart | 3 ++- lib/quantity.dart | 3 ++- lib/quantity_core.dart | 3 ++- lib/quantity_ext.dart | 3 ++- lib/quantity_range.dart | 3 ++- lib/quantity_si.dart | 3 ++- lib/range/quantity_range.dart | 2 +- pubspec.yaml | 6 +++--- 19 files changed, 29 insertions(+), 20 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 370a127..68c7141 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -42,5 +42,6 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 with: + token: ${{ secrets.CODECOV_TOKEN }} files: coverage/coverage.lcov fail_ci_if_error: false diff --git a/lib/domain/acoustics.dart b/lib/domain/acoustics.dart index 22a7759..807134f 100644 --- a/lib/domain/acoustics.dart +++ b/lib/domain/acoustics.dart @@ -1,5 +1,5 @@ /// Quantity types, units and constants commonly encountered in acoustics. -library acoustics; +library; export 'package:quantity/quantity.dart' show diff --git a/lib/domain/astronomical.dart b/lib/domain/astronomical.dart index 512d890..e81b096 100644 --- a/lib/domain/astronomical.dart +++ b/lib/domain/astronomical.dart @@ -1,5 +1,5 @@ /// Quantity types, units and constants commonly encountered in the field of Astronomy and related sciences. -library astronomical; +library; import 'package:quantity/quantity.dart'; diff --git a/lib/domain/atomic_nuclear.dart b/lib/domain/atomic_nuclear.dart index d6ea43e..c56ded8 100644 --- a/lib/domain/atomic_nuclear.dart +++ b/lib/domain/atomic_nuclear.dart @@ -1,5 +1,5 @@ /// Quantity types, units and constants commonly encountered in the fields of atomic, molecular, and nuclear physics. -library atomic_nuclear; +library; export 'package:quantity/domain/thermodynamic.dart' show avogadro, faradayConstant, loschmidtStdAtm; diff --git a/lib/domain/chemistry.dart b/lib/domain/chemistry.dart index 3b56ed7..4e758f4 100644 --- a/lib/domain/chemistry.dart +++ b/lib/domain/chemistry.dart @@ -1,5 +1,5 @@ /// Quantity types, units and constants commonly encountered in the field of chemistry. -library chemistry; +library; export 'package:quantity/domain/thermodynamic.dart' show avogadro, gasConstantMolar, faradayConstant, loschmidtStdAtm; diff --git a/lib/domain/computing.dart b/lib/domain/computing.dart index ac18f6a..fd66119 100644 --- a/lib/domain/computing.dart +++ b/lib/domain/computing.dart @@ -1,5 +1,5 @@ /// Quantity types, units and constants commonly encountered in computing, information theory, and digital layouts. -library computing; +library; export 'package:quantity/quantity.dart' show diff --git a/lib/domain/electromagnetic.dart b/lib/domain/electromagnetic.dart index d63aac7..ccd682c 100644 --- a/lib/domain/electromagnetic.dart +++ b/lib/domain/electromagnetic.dart @@ -1,6 +1,7 @@ /// Quantity types, units and constants commonly encountered in the fields dealing with +library; + /// electromagnetics. -library electromagnetic; import 'package:quantity/quantity.dart'; diff --git a/lib/domain/fluid_dynamics.dart b/lib/domain/fluid_dynamics.dart index dba9193..2e38d4c 100644 --- a/lib/domain/fluid_dynamics.dart +++ b/lib/domain/fluid_dynamics.dart @@ -1,5 +1,5 @@ /// Quantity types, units and constants commonly encountered in fluid dynamics and hydraulics. -library fluid_dynamics; +library; export 'package:quantity/quantity.dart' show diff --git a/lib/domain/radiometry.dart b/lib/domain/radiometry.dart index f88c35c..dcfc12e 100644 --- a/lib/domain/radiometry.dart +++ b/lib/domain/radiometry.dart @@ -1,5 +1,5 @@ /// Quantity types, units and constants commonly encountered in the fields of radiometry and photometry. -library radiometry; +library; export 'package:quantity/domain/astronomical.dart' show solarConstant, solarLuminosity; diff --git a/lib/domain/thermodynamic.dart b/lib/domain/thermodynamic.dart index b111972..13d2f84 100644 --- a/lib/domain/thermodynamic.dart +++ b/lib/domain/thermodynamic.dart @@ -1,6 +1,7 @@ /// Quantity types, units and constants commonly encountered in the field of +library; + /// thermodynamics and related sciences. -library thermodynamic; import 'package:quantity/quantity.dart'; diff --git a/lib/domain/universal.dart b/lib/domain/universal.dart index 9bb1f40..b4d024c 100644 --- a/lib/domain/universal.dart +++ b/lib/domain/universal.dart @@ -1,5 +1,5 @@ /// Quantity types and constants with universal application. -library universal; +library; import 'package:quantity/quantity.dart'; diff --git a/lib/number.dart b/lib/number.dart index 0e2893a..36670ed 100644 --- a/lib/number.dart +++ b/lib/number.dart @@ -1,10 +1,11 @@ /// The _quantity package_ accepts both Dart's `num` types and the `Number`s defined by this +library; + /// _number library_ as quantity values and for quantity operations. /// /// The classes in this library can be used to model quantities having values with arbitrary precision /// as well as imaginary or complex numbers. It is independent of the quantity classes and can be /// used in a purely mathematical context. -library number; export 'package:decimal/decimal.dart'; export 'src/number/double.dart'; diff --git a/lib/quantity.dart b/lib/quantity.dart index 18ae987..efa89e9 100644 --- a/lib/quantity.dart +++ b/lib/quantity.dart @@ -1,8 +1,9 @@ /// A superset of all the other libraries available in the _quantity package_. +library; + /// Import this library to have access to all the quantity types, /// units and constants defined in this package. Alternatively, import only the _quantity_si /// library_ to stick to the types and units consistent with the International System of Units (SI). -library quantity; export 'number.dart'; export 'quantity_ext.dart'; diff --git a/lib/quantity_core.dart b/lib/quantity_core.dart index 1b13e47..3a648e7 100644 --- a/lib/quantity_core.dart +++ b/lib/quantity_core.dart @@ -1,6 +1,7 @@ /// Core library containing only core dimensions, units, numbers and quantity engine classes. +library; + /// Does not export any of the 75+ physical quantity subclasses, allowing clean compiler tree-shaking. -library quantity_core; export 'package:decimal/decimal.dart'; export 'number.dart'; diff --git a/lib/quantity_ext.dart b/lib/quantity_ext.dart index 5ba3925..c1bca04 100644 --- a/lib/quantity_ext.dart +++ b/lib/quantity_ext.dart @@ -1,6 +1,7 @@ /// Extends the core library with non-SI units, constants, unit synonyms to enable terse +library; + /// constructors and expressions, and auxiliary functions. -library quantity_ext; // quantity type extensions export 'src/ext/acceleration_ext.dart'; diff --git a/lib/quantity_range.dart b/lib/quantity_range.dart index db34890..801faad 100644 --- a/lib/quantity_range.dart +++ b/lib/quantity_range.dart @@ -1,6 +1,7 @@ /// Models ranges of quantities with start and end values (not necessarily increasing). +library; + /// Additional classes and utilities are provided for `Angle` and `TimePeriod` ranges. -library quantity_range; export 'range/angle_range.dart'; export 'range/quantity_range.dart'; diff --git a/lib/quantity_si.dart b/lib/quantity_si.dart index 984d224..73d7914 100644 --- a/lib/quantity_si.dart +++ b/lib/quantity_si.dart @@ -1,8 +1,9 @@ /// The core library containing the fundamental +library; + /// quantity classes and types consistent with the /// [International System of Units](http://physics.nist.gov/cuu/Units/introduction.html) /// (SI, in the French acronym). -library quantity_si; export 'src/si/dimensions.dart'; export 'src/si/dimensions_exception.dart'; diff --git a/lib/range/quantity_range.dart b/lib/range/quantity_range.dart index d746220..71957e9 100644 --- a/lib/range/quantity_range.dart +++ b/lib/range/quantity_range.dart @@ -91,7 +91,7 @@ class QuantityRange { bool encompasses(QuantityRange range2) => (minValue <= range2.minValue) && (maxValue >= range2.maxValue); - /// Returns a String representation of this range in the form ' to '. + /// Returns a String representation of this range in the form `' to '`. @override String toString() => '$q1 to $q2'; diff --git a/pubspec.yaml b/pubspec.yaml index bd9a2b4..f0504bc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -18,7 +18,7 @@ dependencies: intl: '>=0.19.0 <1.0.0' logging: ^1.0.0 dev_dependencies: - test: ^1.16.0 - lints: ^3.0.0 - benchmark_harness: ^2.2.0 + test: ^1.31.0 + lints: ^6.0.0 + benchmark_harness: ^2.4.0 coverage: ^1.7.2