Skip to content

Commit 6a86eb4

Browse files
committed
initial adding of pre-commit
1 parent d2d4b6c commit 6a86eb4

File tree

6 files changed

+135
-7
lines changed

6 files changed

+135
-7
lines changed

.pre-commit-config.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v5.0.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-added-large-files
10+
- repo: https://github.com/astral-sh/ruff-pre-commit
11+
rev: v0.12.5
12+
hooks:
13+
- id: ruff-format
14+
name: "python · Format with Ruff"
15+
- id: ruff
16+
args: [ --fix ]
17+
- repo: https://github.com/RobertCraigie/pyright-python
18+
rev: v1.1.403
19+
hooks:
20+
- id: pyright
21+
name: "python · Check types"
22+
- repo: https://github.com/abravalheri/validate-pyproject
23+
rev: v0.24.1
24+
hooks:
25+
- id: validate-pyproject
26+
name: "python · Validate pyproject.toml"
27+
additional_dependencies: ["validate-pyproject-schema-store[all]"]

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Important Note
2-
This repository was a fork from [here](https://github.com/astropenguin/xarray-dataclasses). We are grateful for the
3-
work of the developer on this repo. That being said, sadly the state on main has been the case that the code was
4-
deleted and there has been no development for a while. Therefore, we intially decided to fork the repository and
2+
This repository was a fork from [here](https://github.com/astropenguin/xarray-dataclasses). We are grateful for the
3+
work of the developer on this repo. That being said, sadly the state on main has been the case that the code was
4+
deleted and there has been no development for a while. Therefore, we intially decided to fork the repository and
55
continue development here, where the community is better able to contribute to and maintain the project. We now changed
66
it into a standalone repository.
77

@@ -392,7 +392,7 @@ pixi run pyright
392392
```
393393

394394
### Creating documentation
395-
We also have a [documentation workflow] (Add link). However, if you want to locally create the documentation
395+
We also have a [documentation workflow] (Add link). However, if you want to locally create the documentation
396396
run the following:
397397

398398
```shell

docs/_static/logo-dark.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/_static/logo-light.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)