Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
python-version: ["3.11"]

steps:
- name: Checkout code
Expand Down
12 changes: 6 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
image: python:3.11
image: python:3.13

stages:
- test
- security
- build

variables:
POETRY_VERSION: "1.8.0"
POETRY_VERSION: "2.3.1"
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"

cache:
Expand All @@ -17,7 +17,8 @@ cache:
before_script:
- python --version
- pip install poetry==$POETRY_VERSION
- poetry config virtualenvs.create false
- poetry config virtualenvs.create true
- poetry config virtualenvs.in-project true
- poetry install --with dev

test:
Expand All @@ -40,14 +41,13 @@ test:
security:
stage: security
script:
- pip install bandit safety
- pip install bandit
- bandit -r . -c .bandit.yml -f json -o bandit-report.json
- safety check --json > safety-report.json
artifacts:
paths:
- bandit-report.json
- safety-report.json
expire_in: 1 week
when: always

build:
stage: build
Expand Down
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
CORSMiddleware,
allow_origins=["http://127.0.0.1:8000"],
allow_credentials=True,
allow_methods=["*"],
allow_methods=["*"], # TODO: get
allow_headers=["*"],
)

Expand Down
68 changes: 66 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ruff = ">=0.4.8"
pytest = "^8.3.0"
pytest-asyncio = "^0.23.0"
pytest-cov = "^7.0.0"
pytest-xprocess = "^0.22.0"
pre-commit = "^4.5.1"
bandit = "^1.9.3"
safety = "^3.7.0"
Expand All @@ -31,7 +32,7 @@ requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.ruff]
target-version = "py311"
target-version = "py313"
line-length = 79
format.quote-style = "double"
lint.select = ["E", "W", "F", "I", "B", "C4", "UP", "RUF"]
Expand Down