File tree Expand file tree Collapse file tree 4 files changed +35
-23
lines changed Expand file tree Collapse file tree 4 files changed +35
-23
lines changed Original file line number Diff line number Diff line change 16
16
- [ ] Tests for the changes have been added (if needed)
17
17
- [ ] Docs have been reviewed and added / updated
18
18
- [ ] Lint (` black rocketpy/ tests/ ` ) has passed locally
19
- - [ ] All tests (` pytest --runslow ` ) have passed locally
19
+ - [ ] All tests (` python3 -m pytest tests -m slow --runslow` ) have passed locally
20
20
- [ ] ` CHANGELOG.md ` has been updated (if relevant)
21
21
22
22
## Current behavior
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ MANIFEST
36
36
pip-log.txt
37
37
pip-delete-this-directory.txt
38
38
39
- # Unit test / coverage reports
39
+ # Unit test / coverage reports / lints reports
40
40
htmlcov /
41
41
.tox /
42
42
.nox /
@@ -50,6 +50,7 @@ coverage.xml
50
50
.hypothesis /
51
51
.pytest_cache /
52
52
cover /
53
+ .pylint-report.txt
53
54
54
55
# Translations
55
56
* .mo
Original file line number Diff line number Diff line change 1
- test :
2
- python -m pytest tests -vv
1
+ # Set PYTHON variable according to OS
2
+ ifeq ($(OS ) ,Windows_NT)
3
+ PYTHON=python
4
+ else
5
+ PYTHON=python3
6
+ endif
3
7
4
- testfile :
5
- python -m pytest tests/ $( file ) -vv
8
+ pytest :
9
+ $( PYTHON ) -m pytest tests
6
10
7
- tests :
8
- test
11
+ pytest-slow :
12
+ $( PYTHON ) -m pytest tests -vv -m slow --runslow
9
13
10
- coverage :
11
- python -m pytest --cov=rocketpy tests -vv
14
+ coverage :
15
+ $( PYTHON ) -m pytest --cov=rocketpy tests
12
16
13
17
coverage-report :
14
- python -m pytest --cov=rocketpy tests -vv --cov-report html
18
+ $( PYTHON ) -m pytest --cov=rocketpy tests --cov-report html
15
19
16
- install :
17
- python -m pip install --upgrade pip
20
+ install :
21
+ $( PYTHON ) -m pip install --upgrade pip
18
22
pip install -r requirements.txt
19
- python setup.py install
23
+ pip install -r requirements-optional.txt
24
+ pip install -e .
20
25
21
- verify-lint :
22
- flake8 --select BLK rocketpy
23
- flake8 --select BLK test
26
+ isort :
27
+ isort --profile black rocketpy/ tests/ docs/
24
28
25
- lint :
26
- black rocketpy
27
- black tests
29
+ black :
30
+ black rocketpy/ tests/ docs/
31
+
32
+ pylint :
33
+ -pylint rocketpy tests --output=.pylint-report.txt
34
+
35
+ build-docs :
36
+ cd docs && $(PYTHON ) -m pip install -r requirements.txt && make html
37
+ cd ..
Original file line number Diff line number Diff line change 1
- pytest==6.2.4
1
+ pytest
2
2
pytest-coverage
3
- black
3
+ black[jupyter]
4
4
flake8-black
5
5
pandas
6
6
numericalunits==1.25
7
- pylint
7
+ pylint
8
+ isort
You can’t perform that action at this time.
0 commit comments