From 0218f244dadc0088c26c79974578842ea7107b90 Mon Sep 17 00:00:00 2001 From: arjunsavel Date: Mon, 11 Mar 2024 20:54:44 -0400 Subject: [PATCH] uhh testing` --- .pre-commit-config.yaml | 11 +++++++---- docs/pages/optimizing.ipynb | 18 ++++++++++-------- pyproject.toml | 6 ++++++ 3 files changed, 23 insertions(+), 12 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 28b75e0..55d952c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # https://github.com/exoplanet-dev/exoplanet/blob/master/.pre-commit-config.yaml repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: trailing-whitespace @@ -11,7 +11,7 @@ repos: - id: debug-statements - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort name: isort (python) @@ -29,19 +29,22 @@ repos: exclude: src/cortecs/tests - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 24.2.0 hooks: - id: black language_version: python3 # Should be a command that runs python3.6+ + additional_dependencies: [toml] exclude: src/cortecs/__init__.py + args: ["--target-version", "py38"] - repo: https://github.com/dfm/black_nbconvert rev: v0.4.0 hooks: - id: black_nbconvert + additional_dependencies: [toml] - repo: https://github.com/adrienverge/yamllint.git - rev: v1.32.0 + rev: v1.35.1 hooks: - id: yamllint args: [-c=.yamllint] diff --git a/docs/pages/optimizing.ipynb b/docs/pages/optimizing.ipynb index b6bce34..b96a65d 100644 --- a/docs/pages/optimizing.ipynb +++ b/docs/pages/optimizing.ipynb @@ -274,6 +274,16 @@ "optimizer.optimize(max_size, max_evaluations)" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "2c552707-9d84-4943-b51c-8a6e704ca5db", + "metadata": {}, + "outputs": [], + "source": [ + "optimizer.optimize(max_size, max_evaluations)" + ] + }, { "cell_type": "markdown", "id": "a0f11df9-2c38-43d7-aad1-f2966d21746e", @@ -369,14 +379,6 @@ "source": [ "Note that optimizing for the polynomial fits is not currently supported; we plan to support this functionality in a future release of `cortecs`." ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "56cab919-18e0-477a-bb4c-483e57fcfeeb", - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { diff --git a/pyproject.toml b/pyproject.toml index 87788cd..0cce8f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,3 +49,9 @@ neural_networks = ["tensorflow<2.16", Homepage = "https://github.com/arjunsavel/cortecs" Issues = "https://github.com/arjunsavel/cortecs/issues" Documentation = "https://cortecs.readthedocs.io" + +[tool.black] +target_version = ['py38', 'py39', 'py310', 'py311'] + +[tool.black_nbconvert] +target_version = ['py38', 'py39', 'py310', 'py311']