Skip to content

Commit

Permalink
uhh testing`
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsavel committed Mar 12, 2024
1 parent 4b0a683 commit 0218f24
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
11 changes: 7 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand All @@ -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]
18 changes: 10 additions & 8 deletions docs/pages/optimizing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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']

0 comments on commit 0218f24

Please sign in to comment.