Skip to content

Commit

Permalink
update pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Jun 11, 2024
1 parent be63a4f commit c46e702
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

- name: Install
run: |
pip install -e .[all,test]
pip install -e .[all,tests]
pip freeze
- name: Tests
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ repos:
- id: docconvert
args: ["numpy"]
- repo: https://github.com/b8raoult/optional-dependencies-all
rev: "0.0.2"
rev: "0.0.6"
hooks:
- id: optional-dependencies-all
args: ["--inplace", "--all-key", "all", "--exclude-keys", "dev,docs,test"]
- id: optional-dependencies-all
args: ["--inplace", "--exclude-keys=dev,docs,tests", "--group=dev=docs,tests"]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.1.3"
hooks:
- id: pyproject-fmt
- id: pyproject-fmt
13 changes: 4 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ dynamic = [
]
dependencies = [
"anemoi-utils>=0.3",
"anytree",
"numpy",
"pyyaml",
"semantic-version",
Expand All @@ -59,26 +60,20 @@ dependencies = [

optional-dependencies.all = [
"ai-models>=0.6.1",
"anemoi-datasets",
"anemoi-utils>=0.3",
"numpy",
"pytest",
"pyyaml",
"semantic-version",
"torch",
"tqdm",
]

optional-dependencies.dev = [
"pre-commit",
"anemoi-datasets",
"pytest",
]

optional-dependencies.plugin = [
"ai-models>=0.6.1",
"tqdm",
]

optional-dependencies.test = [
optional-dependencies.tests = [
"anemoi-datasets",
"pytest",
]
Expand Down

0 comments on commit c46e702

Please sign in to comment.