Skip to content

Commit f79562c

Browse files
committed
WIP
1 parent 3a2f1be commit f79562c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+17448
-1050
lines changed

.github/workflows/check.yml

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Code Check
2+
23
on:
34
push:
45
branches: [ main ]
@@ -7,19 +8,27 @@ on:
78

89
jobs:
910
check:
10-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
12+
1113
steps:
1214
- uses: actions/checkout@v3
13-
- uses: actions/setup-python@v4
14-
- name: ruff
15-
run: |
16-
pip install ruff
17-
ruff check .
18-
- name: black
19-
run: |
20-
pip install black
21-
black --check .
22-
- name: interrogate
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.9.16'
20+
cache: 'pip'
21+
22+
- name: Install dependencies
2323
run: |
24-
pip install interrogate
25-
interrogate app/services -vv
24+
python -m pip install --upgrade pip
25+
pip install ruff black interrogate
26+
27+
- name: Check code style with Ruff
28+
run: ruff check .
29+
30+
- name: Check formatting with Black
31+
run: black --check .
32+
33+
- name: Check docstring coverage with Interrogate
34+
run: interrogate app/services -vv -f 100

.github/workflows/tests.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Tests
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
7+
8+
jobs:
9+
tests:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- uses: actions/setup-python@v4
15+
with:
16+
python-version: "3.9.16"
17+
18+
- name: Install Poetry
19+
uses: snok/install-poetry@v1
20+
with:
21+
version: 1.5.1
22+
virtualenvs-create: true
23+
virtualenvs-in-project: true
24+
25+
- name: Load cached dependencies
26+
uses: actions/cache@v3
27+
with:
28+
path: .venv
29+
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
30+
31+
- name: Install dependencies
32+
run: poetry install --no-interaction --with tests
33+
34+
- name: Run tests
35+
run: poetry run pytest

poetry.lock

Lines changed: 159 additions & 177 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fastapi = "==0.115.6"
1616
uvicorn = {extras = ["standard"], version = "==0.34.0"}
1717
slowapi = "==0.1.9"
1818
pydantic-settings = "==2.7.1"
19-
pydantic= "==2.10.4"
19+
pydantic= "==2.10.5"
2020
python-dateutil = "==2.9.0.post0"
2121

2222
[tool.poetry.group.dev.dependencies]
@@ -31,7 +31,6 @@ interrogate = "==1.7.0"
3131
[tool.poetry.group.tests.dependencies]
3232
pytest = "==7.3.1"
3333
pytest-cov = "==4.1.0"
34-
schema = "==0.7.5"
3534

3635
[tool.black]
3736
line-length = 120
@@ -53,7 +52,7 @@ lint.select = [
5352
]
5453

5554
[tool.pytest.ini_options]
56-
addopts = "--cov --cov-report term-missing --exitfirst"
55+
addopts = "--cov --cov-report term-missing --exitfirst -vv"
5756
testpaths = [
5857
"tests",
5958
]

tests/clubs/test_clubs_players.py

Lines changed: 0 additions & 57 deletions
This file was deleted.

tests/clubs/test_clubs_profile.py

Lines changed: 0 additions & 74 deletions
This file was deleted.

tests/clubs/test_clubs_search.py

Lines changed: 0 additions & 50 deletions
This file was deleted.

tests/competitions/test_competitions_clubs.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

tests/competitions/test_competitions_search.py

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)