From d12036c231d51095b15d245502de1eee0638a227 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 18:57:11 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/lorenzwalthert/precommit: v0.3.2.9001 → v0.4.3.9020](https://github.com/lorenzwalthert/precommit/compare/v0.3.2.9001...v0.4.3.9020) - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v6.0.0) - [github.com/pre-commit-ci/pre-commit-ci-config: v1.5.1 → v1.6.1](https://github.com/pre-commit-ci/pre-commit-ci-config/compare/v1.5.1...v1.6.1) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 53b5117..d0d6baf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # R specific hooks: https://github.com/lorenzwalthert/precommit repos: - repo: https://github.com/lorenzwalthert/precommit - rev: v0.3.2.9001 + rev: v0.4.3.9020 hooks: - id: style-files args: [--style_pkg=styler, --style_fun=tidyverse_style] @@ -48,7 +48,7 @@ repos: - id: deps-in-desc args: [--allow_private_imports] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v6.0.0 hooks: - id: check-added-large-files args: ['--maxkb=200'] @@ -57,7 +57,7 @@ repos: - id: end-of-file-fixer exclude: '\.Rd' - repo: https://github.com/pre-commit-ci/pre-commit-ci-config - rev: v1.5.1 + rev: v1.6.1 hooks: # Only reuiqred when https://pre-commit.ci is used for config validation - id: check-pre-commit-ci-config From 169eb117f45d9472ae9b93d57eefa025d3754916 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 18:58:21 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- R/user.R | 6 ++---- R/util.R | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/R/user.R b/R/user.R index bdae002..2172778 100644 --- a/R/user.R +++ b/R/user.R @@ -50,12 +50,10 @@ simplify_membership <- function(membership) { if (!all(is.na(membership))) { membership <- membership %>% map_dfr(function(m) { - if (is.null(m$hourlyRate)) { - } else { + if (is.null(m$hourlyRate)) {} else { m$hourlyRate <- list(as_tibble(m$hourlyRate)) } - if (is.null(m$costRate)) { - } else { + if (is.null(m$costRate)) {} else { m$costRate <- list(as_tibble(m$costRate)) } m diff --git a/R/util.R b/R/util.R index 862b347..f145df0 100644 --- a/R/util.R +++ b/R/util.R @@ -9,7 +9,7 @@ list_null_to_na_flat <- function(l) { #' @param nested Is this a list of lists? #' @return A list of lists. #' @noRd -list_null_to_na <- function(l, nested=TRUE) { +list_null_to_na <- function(l, nested = TRUE) { # nocov start if (nested) { map(l, list_null_to_na_flat)