Skip to content

Commit ef9ad1b

Browse files
Merge pull request #1 from epicseven-cup/feature/create-flask-api-layout
Feature/create flask api layout
2 parents f76889a + 60efd80 commit ef9ad1b

22 files changed

+965
-1
lines changed

.github/workflows/formatter.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Formatter
2+
run-name: Reformating files 🐧
3+
on:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: ["3.10", "3.11", "3.12"]
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install black
23+
- name: Formatting the code with black
24+
run: |
25+
black $(git ls-files '*.py')

.github/workflows/pylint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Pylint
2+
run-name: Pylint Checker 🐧
3+
on: [push]
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
python-version: ["3.10", "3.11", "3.12"]
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up Python ${{ matrix.python-version }}
13+
uses: actions/setup-python@v3
14+
with:
15+
python-version: ${{ matrix.python-version }}
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install -r ./api/requirements_dev.txt
20+
- name: Analysing the code with pylint
21+
run: |
22+
pylint $(git ls-files '*.py')

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.venv/
2+
**/__pycache__/
3+
.idea/

0 commit comments

Comments
 (0)