You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Data (or data variables), coordinates, attributes, and a name of DataArray or Dataset objects will be defined as dataclass fields by special type hints (`Data`, `Coord`, `Attr`, `Name`), respectively.
72
72
Note that the following code is supposed in the examples below.
73
73
@@ -378,25 +378,24 @@ pixi run pre-commit-install
378
378
```
379
379
380
380
### Testing, linting, and formatting
381
-
We have [a test workflow][test-workflow] for testing, static type checking, linting, and formatting the code.
382
-
It is used for status checks when a pull request is created.
383
-
If you would like to check them in local, the following commands are almost equivalent (the difference is that the workflow is run under multiple Python versions).
381
+
We have a test workflow for testing and a pre-commit workflow for static type checking, linting, and formatting the code.
382
+
It is performed when a pull request is created against main.
383
+
If you would like to check them in local, the following commands are almost equivalent (the difference is that the test workflows are run under multiple Python versions).
384
384
Furthermore, these tasks are defined only in the `dev` environment. Pixi does not require you to specify the environment
385
385
in that case.
386
386
387
-
```shell
387
+
```
388
388
pixi run tests
389
-
pixi run flake8
390
-
pixi run black
391
-
pixi run pyright
389
+
pixi run -e dev pre-commit run --all-files
392
390
```
393
391
394
392
### Creating documentation
395
-
We also have a [documentation workflow] (Add link). However, if you want to locally create the documentation
393
+
We also have a documentation workflow. However, if you want to locally create the documentation
396
394
run the following:
397
395
398
396
```shell
399
-
pixi run doc_build
397
+
pixi run doc_build # this just creates the build
398
+
pixi run doc_serve # build and serve at http://localhost:8000/
0 commit comments