File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ image : debian/sid
2
+ sources :
3
+ - https://git.sr.ht/~cedric/pyenigma
4
+ packages :
5
+ - python3
6
+ - python3-dev
7
+ - python3-pip
8
+ - python3-venv
9
+ environment :
10
+ project : pyenigma
11
+ tasks :
12
+ - dependencies : |
13
+ pip3 install --user poetry
14
+ export PATH="$PATH:/home/build/.local/bin"
15
+ cd ${project}
16
+ poetry install
17
+ - lint : |
18
+ export PATH="$PATH:/home/build/.local/bin"
19
+ cd ${project}
20
+ # stop the build if there are Python syntax errors or undefined names
21
+ poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
22
+ # exit-zero treats all errors as warnings.
23
+ poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
24
+ - test : |
25
+ export PATH="$PATH:/home/build/.local/bin"
26
+ cd ${project}
27
+ poetry run nose2 -v --pretty-assert
You can’t perform that action at this time.
0 commit comments