development.md 993 Bytes
Newer Older
1
2
3
4
5
6
7
8
---
id: development
---

# Development

If you want to develop new feature, please follow below steps to set up development environment.

9
10
11
We suggest you to use [Visual Studio Code](https://vscode.github.com/) and install the recommended extensions for this project.
You can also develop online with [GitHub Codespaces](https://github.com/codespaces).

12
13
## Check Environment

14
Follow [System Requirements](../getting-started/installation).
15
16
17
18

## Set Up

```bash
19
git clone --recurse-submodules -j8 https://github.com/microsoft/superbenchmark
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
cd superbenchmark

python3 -m pip install -e .[dev,test]
```

## Lint and Test

Format code using yapf.
```bash
python3 setup.py format
```

Check code style with mypy and flake8
```bash
python3 setup.py lint
```

Run unit tests.
```bash
python3 setup.py test
```

## Submit a Pull Request

Please install `pre-commit` before `git commit` to run all pre-checks.

```bash
47
pre-commit install --install-hooks
48
49
50
```

Open a pull request to main branch on GitHub.