Skip to content

Commit 8681532

Browse files
authored
Add Semaphore to Python Flask applications (#12)
* Update Semaphore configuration * Update Semaphore configuration * Update Semaphore configuration * Update Semaphore configuration * Update Semaphore configuration * Update Semaphore configuration * Update Semaphore configuration * Update Semaphore configuration
1 parent a5188db commit 8681532

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.semaphore/semaphore.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: v1.0
2+
name: Initial Pipeline
3+
agent:
4+
machine:
5+
type: e1-standard-2
6+
os_image: ubuntu2004
7+
blocks:
8+
- name: Python Flask Example Apps
9+
task:
10+
jobs:
11+
- name: python lint
12+
commands:
13+
- sem-version python 3.8
14+
- 'flake8 . --count --select=E9,F7,F82 --show-source --statistics'
15+
- flake8 . --count --exit-zero --max-complexity=10 --statistics
16+
prologue:
17+
commands:
18+
- checkout
19+
- sem-version python 3.8
20+
- python -m pip install --upgrade pip
21+
- 'pip install -e .[dev]'
22+
- pip install flake8
23+
- pip install black

0 commit comments

Comments
 (0)