Skip to content

Commit 100a134

Browse files
committed
testing
1 parent 42f57c7 commit 100a134

File tree

4 files changed

+19
-29
lines changed

4 files changed

+19
-29
lines changed

.github/workflows/python-publish.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ jobs:
4242
- name: Install
4343
run: |
4444
pip install pytest
45-
pip install -e .[all]
46-
pip install -r tests/requirements.txt
45+
pip install -e .[all,test]
4746
pip freeze
4847
4948
- name: Tests

.pre-commit-config.yaml

+14-26
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
repos:
2-
32
# Empty notebookds
43
- repo: local
54
hooks:
6-
- id: clear-notebooks-output
7-
name: clear-notebooks-output
8-
files: tools/.*\.ipynb$
9-
stages: [commit]
10-
language: python
11-
entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace
12-
additional_dependencies: [jupyter]
13-
14-
5+
- id: clear-notebooks-output
6+
name: clear-notebooks-output
7+
files: tools/.*\.ipynb$
8+
stages: [commit]
9+
language: python
10+
entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace
11+
additional_dependencies: [jupyter]
1512
- repo: https://github.com/pre-commit/pre-commit-hooks
1613
rev: v4.6.0
1714
hooks:
@@ -23,13 +20,11 @@ repos:
2320
- id: no-commit-to-branch # Prevent committing to main / master
2421
- id: check-added-large-files # Check for large files added to git
2522
- id: check-merge-conflict # Check for files that contain merge conflict
26-
2723
- repo: https://github.com/psf/black-pre-commit-mirror
2824
rev: 24.4.2
2925
hooks:
30-
- id: black
31-
args: [--line-length=120]
32-
26+
- id: black
27+
args: [--line-length=120]
3328
- repo: https://github.com/pycqa/isort
3429
rev: 5.13.2
3530
hooks:
@@ -38,8 +33,6 @@ repos:
3833
- -l 120
3934
- --force-single-line-imports
4035
- --profile black
41-
42-
4336
- repo: https://github.com/astral-sh/ruff-pre-commit
4437
rev: v0.4.6
4538
hooks:
@@ -50,32 +43,27 @@ repos:
5043
- --fix
5144
- --exit-non-zero-on-fix
5245
- --preview
53-
5446
- repo: https://github.com/sphinx-contrib/sphinx-lint
5547
rev: v0.9.1
5648
hooks:
57-
- id: sphinx-lint
58-
49+
- id: sphinx-lint
5950
# For now, we use it. But it does not support a lot of sphinx features
6051
- repo: https://github.com/dzhu/rstfmt
6152
rev: v0.0.14
6253
hooks:
63-
- id: rstfmt
64-
exclude: 'cli/.*' # Because we use argparse
65-
54+
- id: rstfmt
55+
exclude: 'cli/.*' # Because we use argparse
6656
- repo: https://github.com/b8raoult/pre-commit-docconvert
6757
rev: "0.1.5"
6858
hooks:
6959
- id: docconvert
7060
args: ["numpy"]
71-
7261
- repo: https://github.com/b8raoult/optional-dependencies-all
7362
rev: "0.0.2"
7463
hooks:
7564
- id: optional-dependencies-all
76-
args: ["--inplace", "--all-key", "all", "--exclude-keys", "dev,docs"]
77-
65+
args: ["--inplace", "--all-key", "all", "--exclude-keys", "dev,docs,test"]
7866
- repo: https://github.com/tox-dev/pyproject-fmt
7967
rev: "2.1.3"
8068
hooks:
81-
- id: pyproject-fmt
69+
- id: pyproject-fmt

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ optional-dependencies.create = [
8181
"entrypoints",
8282
"pyproj",
8383
]
84+
85+
optional-dependencies.test = [
86+
"pytest",
87+
]
8488
optional-dependencies.dev = [
8589
"boto3",
8690

tests/requirements.txt

-1
This file was deleted.

0 commit comments

Comments
 (0)