File: CONTRIBUTING.md

package info (click to toggle)
python-e3nn 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,700 kB
  • sloc: python: 13,368; makefile: 23
file content (36 lines) | stat: -rw-r--r-- 861 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contribute

For the docstrings we use the [numpy style](https://numpydoc.readthedocs.io/en/latest/format.html).

You can install some of the commonly used development tools by using e3nn's 'dev' extra:

```
pip install -e '.[dev]'
```

To have atomic code style checks performed at each commit, you can install the pre-commit hook using:

```
pre-commit install
```

These checks are automatically run on any commit made to the github repository but the pre-commit hook allows you to see if there are any problems locally.

Additionally, you may want to run the tests locally before pushing to remote.  This can be done with (from the root e3nn directory):

```
pytest tests
```

For formatting we use the [black](https://black.readthedocs.io/en/stable/index.html) library.
It can be installed with:

```
pip install black
```

and run with:

```
black .
```