From a1b45887de282ce78761f87c0054630e3bdadfd2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 21:06:14 +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/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) - [github.com/asottile/pyupgrade: v3.8.0 → v3.15.0](https://github.com/asottile/pyupgrade/compare/v3.8.0...v3.15.0) - [github.com/psf/black: 23.3.0 → 23.12.1](https://github.com/psf/black/compare/23.3.0...23.12.1) - [github.com/keewis/blackdoc: v0.3.8 → v0.3.9](https://github.com/keewis/blackdoc/compare/v0.3.8...v0.3.9) - [github.com/astral-sh/ruff-pre-commit: v0.0.276 → v0.1.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.276...v0.1.9) - [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.9-for-vscode → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.9-for-vscode...v4.0.0-alpha.8) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9f45a02..043fd14 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -16,31 +16,31 @@ repos: - id: mixed-line-ending - repo: https://github.com/asottile/pyupgrade - rev: v3.8.0 + rev: v3.15.0 hooks: - id: pyupgrade args: - '--py38-plus' - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 23.12.1 hooks: - id: black - id: black-jupyter - repo: https://github.com/keewis/blackdoc - rev: v0.3.8 + rev: v0.3.9 hooks: - id: blackdoc - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.0.276' + rev: 'v0.1.9' hooks: - id: ruff args: ['--fix'] - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.9-for-vscode + rev: v4.0.0-alpha.8 hooks: - id: prettier From 01108349c9a244d54ab15de474de74e38d38e30e Mon Sep 17 00:00:00 2001 From: Max Jones <14077947+maxrjones@users.noreply.github.com> Date: Fri, 2 Feb 2024 17:28:11 -0500 Subject: [PATCH 2/2] Lint --- .github/dependabot.yml | 6 +++--- .github/workflows/main.yaml | 4 ++-- .pre-commit-config.yaml | 7 +++---- carbonplan_project/data/catalog.yaml | 2 +- codecov.yml | 4 ++-- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8afc362..ce4f432 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,10 +1,10 @@ version: 2 updates: - package-ecosystem: pip - directory: '/' + directory: "/" schedule: interval: weekly - - package-ecosystem: 'github-actions' - directory: '/' + - package-ecosystem: "github-actions" + directory: "/" schedule: interval: weekly diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index ac3cd02..13a8529 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -19,7 +19,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.10'] + python-version: ["3.10"] os: [ubuntu-latest] timeout-minutes: 30 defaults: @@ -44,7 +44,7 @@ jobs: channel-priority: strict miniforge-version: latest miniforge-variant: Mambaforge - mamba-version: '*' + mamba-version: "*" run-post: false use-mamba: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 043fd14..1595200 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,6 @@ repos: - id: end-of-file-fixer - id: check-docstring-first - id: check-json - exclude: 'asv_bench/asv.conf.json' - id: check-yaml - id: debug-statements - id: mixed-line-ending @@ -20,7 +19,7 @@ repos: hooks: - id: pyupgrade args: - - '--py38-plus' + - "--py38-plus" - repo: https://github.com/psf/black rev: 23.12.1 @@ -34,10 +33,10 @@ repos: - id: blackdoc - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.1.9' + rev: "v0.1.9" hooks: - id: ruff - args: ['--fix'] + args: ["--fix"] - repo: https://github.com/pre-commit/mirrors-prettier rev: v4.0.0-alpha.8 diff --git a/carbonplan_project/data/catalog.yaml b/carbonplan_project/data/catalog.yaml index e439662..bd2b574 100644 --- a/carbonplan_project/data/catalog.yaml +++ b/carbonplan_project/data/catalog.yaml @@ -38,4 +38,4 @@ sources: ] driver: parquet args: - urlpath: '{{env(CARBONPLAN_DATA)}}/raw/gcp/{{ name }}.parquet' + urlpath: "{{env(CARBONPLAN_DATA)}}/raw/gcp/{{ name }}.parquet" diff --git a/codecov.yml b/codecov.yml index 0bbe239..2c4cc5d 100644 --- a/codecov.yml +++ b/codecov.yml @@ -5,8 +5,8 @@ codecov: comment: false ignore: - - 'tests/*.py' - - 'setup.py' + - "tests/*.py" + - "setup.py" coverage: precision: 2