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
6 changes: 1 addition & 5 deletions {{ cookiecutter.name }}/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,10 @@ jobs:
packages: locales-all gettext
version: 1

- name: get number of cpu cores
uses: SimenB/github-actions-cpu-cores@v2.0.0
id: cpu-cores

- name: test
env:
DATABASE_URL: postgres://postgres:secret@localhost:5432/postgres
run: make test -e SIMULTANEOUS_TEST_JOBS=${{ steps.cpu-cores.outputs.count }}
run: make test

build-docker-image:
needs: test
Expand Down
4 changes: 2 additions & 2 deletions {{ cookiecutter.name }}/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SIMULTANEOUS_TEST_JOBS = 4
SIMULTANEOUS_TEST_JOBS = logical

.DEFAULT_GOAL := help

Expand Down Expand Up @@ -45,7 +45,7 @@ lint-ruff-format:
uv run ruff format --check src

lint-mypy:
uv run mypy -n 4 src
uv run mypy --num-workers 4 src

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это заодно: с длинными флагами не приходится гадать что за аргумент


lint-toml:
uv run toml-sort --check pyproject.toml
Expand Down
2 changes: 1 addition & 1 deletion {{ cookiecutter.name }}/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- 5432:5432
command: --autovacuum=off --fsync=off --synchronous_commit=off --full_page_writes=off --work_mem=12MB --max-connections=10 --max_wal_senders=0
command: --autovacuum=off --fsync=off --synchronous_commit=off --full_page_writes=off --work_mem=12MB --max-connections=100 --max_wal_senders=0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тут побольше, т.к. 10 уже может не хватить


redis:
image: valkey/valkey:8.0-alpine
Expand Down
2 changes: 1 addition & 1 deletion {{ cookiecutter.name }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dev = [
"pytest-freezer>=0.4.9",
"pytest-mock>=3.15.1",
"pytest-randomly>=4.1.0",
"pytest-xdist>=3.8.0",
"pytest-xdist[psutil]>=3.8.0",
"ruff>=0.15.22",
"toml-sort>=0.24.4",
"types-freezegun>=1.1.10",
Expand Down
9 changes: 7 additions & 2 deletions {{ cookiecutter.name }}/uv.lock

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

Loading