Skip to content

Commit 1883c2c

Browse files
committed
Accepts conda terms of service, adds pyright as dependency of linting
1 parent bd543a7 commit 1883c2c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ commands =
2727
description = check the code style with black
2828
deps =
2929
pre-commit
30+
pyright
3031
commands =
3132
pre-commit run --all-files
3233

@@ -95,6 +96,8 @@ deps=
9596
-r requirements.txt
9697
-e.
9798
commands=
99+
sh -c "conda tos accept --override-channels --channel pkgs/main"
100+
sh -c "conda tos accept --override-channels --channel pkgs/r"
98101
sh -c 'if conda info --envs | grep -q poli__rasp; then echo "poli__rasp already exists"; else conda env create -f ./src/poli/objective_repository/rasp/environment.yml; fi'
99102
sh -c "conda run -n poli__rasp python -m pip uninstall -y poli"
100103
sh -c "conda run -n poli__rasp python -m pip install -e ."
@@ -109,6 +112,8 @@ deps=
109112
-r requirements.txt
110113
-e.[rmf]
111114
commands=
115+
sh -c "conda tos accept --override-channels --channel pkgs/main"
116+
sh -c "conda tos accept --override-channels --channel pkgs/r"
112117
pytest {tty:--color=yes} -v -m 'not slow and poli__rmf' {posargs}
113118

114119
[testenv:poli-ehrlich-holo-py310]
@@ -131,6 +136,8 @@ deps=
131136
-r requirements.txt
132137
-e.
133138
commands=
139+
sh -c "conda tos accept --override-channels --channel pkgs/main"
140+
sh -c "conda tos accept --override-channels --channel pkgs/r"
134141
sh -c 'if conda info --envs | grep -q poli__rosetta_energy; then echo "poli__rosetta_energy already exists"; else conda env create -f ./src/poli/objective_repository/rosetta_energy/environment.yml; fi'
135142
sh -c "conda run -n poli__rosetta_energy python -m pip uninstall -y poli"
136143
sh -c "conda run -n poli__rosetta_energy python -m pip install -e ."

0 commit comments

Comments
 (0)