From fe7df202a85f4967f0e35fa5d2b896f31de23a21 Mon Sep 17 00:00:00 2001 From: ejolly Date: Thu, 7 Sep 2023 17:09:02 -0400 Subject: [PATCH] fix formatting and python versions --- .github/workflows/Build.yml | 2 +- pymer4/tests/test_models.py | 11 +++++------ setup.cfg | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 3cc5097..a46ac06 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -82,7 +82,6 @@ jobs: conda convert -p win-64 -o $CONDA_BLD_PATH $tarball; \ fi echo "conda build tarball" $tarball - echo "::set-output name=conda-tarball::$tarball" echo "{conda-tarball}={$tarball}" >> $GITHUB_OUTPUT # ------------------------------------------------------------ @@ -104,6 +103,7 @@ jobs: PY_VER: ${{ matrix.py_ver }} run: | conda activate env_$PY_VER + black --version black --check --verbose . pytest pymer4/tests diff --git a/pymer4/tests/test_models.py b/pymer4/tests/test_models.py index ca88e91..cc4ef0d 100644 --- a/pymer4/tests/test_models.py +++ b/pymer4/tests/test_models.py @@ -216,15 +216,14 @@ def test_gaussian_lmm(df): assert boot_confint.shape == (8, 2) # ci for random effects should be estimates by bootstrapping assert boot_confint["2.5 %"].isna().sum() == 0 - + # test seed for confint - boot_df1 = model.confint(method="boot",nsim=10) - boot_df2 = model.confint(method="boot",nsim=10) + boot_df1 = model.confint(method="boot", nsim=10) + boot_df2 = model.confint(method="boot", nsim=10) assert not boot_df1.equals(boot_df2) - boot_df1 = model.confint(method="boot",nsim=10, seed=123) - boot_df2 = model.confint(method="boot",nsim=10, seed=123) + boot_df1 = model.confint(method="boot", nsim=10, seed=123) + boot_df2 = model.confint(method="boot", nsim=10, seed=123) assert boot_df1.equals(boot_df2) - # Smoketest for old_optimizer model.fit(summarize=False, old_optimizer=True) diff --git a/setup.cfg b/setup.cfg index d00b507..8753e10 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [metadata] -description-file = README.md +description_file = README.md [bdist_wheel] universal=1