Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.5.19 #1796

Merged
merged 70 commits into from
Aug 21, 2024
Merged

v1.5.19 #1796

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
5a0adae
chore(deps): update dependency openpyxl to v3.1.5
renovate[bot] Jun 28, 2024
d0abacd
Merge pull request #1763 from watchdogpolska/develop
PiotrIw Jul 18, 2024
7ce122e
chore(deps): update dependency cryptography to v43
renovate[bot] Jul 20, 2024
af679ec
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Aug 5, 2024
bb31c67
Merge pull request #1767 from watchdogpolska/renovate/cryptography-43.x
PiotrIw Aug 7, 2024
403c759
Fix docker compose in Makefile
PiotrIw Aug 7, 2024
94c90f6
Update frontend.yml
PiotrIw Aug 7, 2024
584007c
Update web.yml
PiotrIw Aug 7, 2024
bdfdd7e
Update package-lock.json
PiotrIw Aug 7, 2024
5a789e2
Merge pull request #1770 from watchdogpolska/PiotrIw-patch-1
PiotrIw Aug 7, 2024
30aaf4d
chore(deps): update dependency django to v4.2.15
renovate[bot] Aug 7, 2024
db6840f
Merge pull request #1769 from watchdogpolska/renovate/django-4.x
PiotrIw Aug 7, 2024
e4a09dc
chore(deps): update dependency langchain-openai to v0.1.20
renovate[bot] Aug 7, 2024
0a9bbc8
Merge pull request #1772 from watchdogpolska/master
PiotrIw Aug 7, 2024
3cfdaaf
Merge pull request #1768 from watchdogpolska/pre-commit-ci-update-config
PiotrIw Aug 7, 2024
eeaf5b0
Merge pull request #1771 from watchdogpolska/renovate/langchain-opena…
PiotrIw Aug 7, 2024
2699321
chore(deps): update dependency tqdm to v4.66.5
renovate[bot] Aug 7, 2024
1b2d499
chore(deps): update non-production-dependencies
renovate[bot] Aug 7, 2024
47d714e
chore(deps): update dependency openai to v1.40.0
renovate[bot] Aug 7, 2024
287cecc
Merge pull request #1773 from watchdogpolska/renovate/tqdm-4.x
PiotrIw Aug 7, 2024
79ebd14
Merge pull request #1764 from watchdogpolska/renovate/openai-1.x
PiotrIw Aug 7, 2024
1fe36a9
fix(deps): update dependency postcss to v8.4.41
renovate[bot] Aug 7, 2024
c3fa5b6
Merge pull request #1761 from watchdogpolska/renovate/non-production-…
PiotrIw Aug 7, 2024
606e366
Merge pull request #1774 from watchdogpolska/renovate/postcss-8.x
PiotrIw Aug 7, 2024
00b8735
chore(deps): update dependency django-filter to v24.3
renovate[bot] Aug 7, 2024
9e7d4b1
chore(deps): update dependency sentry-sdk to v2.12.0
renovate[bot] Aug 7, 2024
d22dddc
chore(deps): update dependency langchain to v0.2.12
renovate[bot] Aug 7, 2024
a371619
Merge pull request #1765 from watchdogpolska/renovate/langchain-0.x
PiotrIw Aug 7, 2024
135338e
chore(deps): update dependency langchain-community to v0.2.11
renovate[bot] Aug 7, 2024
c4fb54d
Merge pull request #1766 from watchdogpolska/renovate/langchain-commu…
PiotrIw Aug 7, 2024
6cbf552
Merge pull request #1775 from watchdogpolska/renovate/django-filter-24.x
PiotrIw Aug 7, 2024
f31ad1e
Merge pull request #1776 from watchdogpolska/renovate/sentry-sdk-2.x
PiotrIw Aug 7, 2024
06fe387
chore(deps): update dependency openai to v1.40.1
renovate[bot] Aug 7, 2024
ee38eaa
Merge pull request #1779 from watchdogpolska/renovate/openai-1.x
PiotrIw Aug 7, 2024
1de8519
chore(deps): update dependency openai to v1.40.3
renovate[bot] Aug 10, 2024
d3ad001
Update package-lock.json
PiotrIw Aug 12, 2024
8f7fb26
Merge pull request #1780 from watchdogpolska/renovate/openai-1.x
PiotrIw Aug 12, 2024
7e4b78d
chore(deps): update dependency langchain-openai to v0.1.21
renovate[bot] Aug 12, 2024
1e2657d
chore(deps): update dependency django-reversion to v5.1.0
renovate[bot] Aug 12, 2024
4d87032
chore(deps): update dependency lxml to v5.3.0
renovate[bot] Aug 12, 2024
9e78b5a
Merge pull request #1782 from watchdogpolska/renovate/lxml-5.x
PiotrIw Aug 12, 2024
1f16071
chore(deps): update dependency gunicorn to v23
renovate[bot] Aug 12, 2024
12968f5
Merge pull request #1781 from watchdogpolska/renovate/django-reversio…
PiotrIw Aug 12, 2024
36f957f
Merge pull request #1783 from watchdogpolska/renovate/langchain-opena…
PiotrIw Aug 12, 2024
828a3c5
chore(deps): update dependency langchain to v0.2.13
renovate[bot] Aug 12, 2024
e095e64
chore(deps): update dependency openai to v1.40.6
renovate[bot] Aug 12, 2024
f2a44c0
Merge pull request #1784 from watchdogpolska/renovate/gunicorn-23.x
PiotrIw Aug 13, 2024
f9c72cf
Merge pull request #1786 from watchdogpolska/renovate/langchain-0.x
PiotrIw Aug 13, 2024
2370708
Merge pull request #1785 from watchdogpolska/renovate/openai-1.x
PiotrIw Aug 13, 2024
200343c
chore(deps): update dependency langchain-community to v0.2.12
renovate[bot] Aug 13, 2024
bd94ee0
chore(deps): update dependency sentry-sdk to v2.13.0
renovate[bot] Aug 13, 2024
713f54d
Merge pull request #1788 from watchdogpolska/renovate/langchain-commu…
PiotrIw Aug 14, 2024
a01fcb3
Merge pull request #1789 from watchdogpolska/renovate/sentry-sdk-2.x
PiotrIw Aug 14, 2024
20869a9
chore(deps): update dependency langchain to v0.2.14
renovate[bot] Aug 15, 2024
552c171
chore(deps): update dependency langchain-openai to v0.1.22
renovate[bot] Aug 16, 2024
ea915f5
Merge pull request #1792 from watchdogpolska/renovate/langchain-opena…
PiotrIw Aug 19, 2024
10103ec
Merge pull request #1790 from watchdogpolska/renovate/langchain-0.x
PiotrIw Aug 19, 2024
0b6c23f
chore(deps): update dependency factory-boy to v3.3.1
renovate[bot] Aug 19, 2024
2ddef8f
chore(deps): update dependency openai to v1.41.0
renovate[bot] Aug 19, 2024
51b2238
Merge pull request #1791 from watchdogpolska/renovate/openai-1.x
PiotrIw Aug 19, 2024
175ef85
Merge pull request #1793 from watchdogpolska/renovate/non-production-…
PiotrIw Aug 19, 2024
9a575e8
Merge pull request #1726 from watchdogpolska/renovate/openpyxl-3.x
PiotrIw Aug 19, 2024
26897bf
chore: remove orphaned dev containers
PiotrIw Aug 20, 2024
49db83b
refactor: unused code
PiotrIw Aug 20, 2024
438a417
chore: version bumpup
PiotrIw Aug 20, 2024
6eeb076
feat: log API response error
PiotrIw Aug 20, 2024
a2af6a9
feat: add attachment text content refresh
PiotrIw Aug 20, 2024
2a79383
feat: update translations
PiotrIw Aug 21, 2024
fc288a8
Merge pull request #101 from PiotrIw/fix_attachements
PiotrIw Aug 21, 2024
2d5fd36
Merge pull request #1795 from PiotrIw/develop
PiotrIw Aug 21, 2024
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
4 changes: 2 additions & 2 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Collect statics
run: docker-compose run web python manage.py collectstatic --noinput
run: docker compose run web python manage.py collectstatic --noinput
- name: Build and run frontend
run: docker-compose up gulp
run: docker compose up gulp
- name: Regenerate frontend
run: make wait_web regenerate_frontend
- name: Show git status
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
lfs: true
- name: Build application
run: docker-compose build web
run: docker compose build web
env:
PYTHON_VERSION: ${{ matrix.python }}
DJANGO_VERSION: ${{ matrix.django }}
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Show settings
run: make settings
- name: Show installed dependencies
run: docker-compose run web pip list
run: docker compose run web pip list
- name: Build test
run: make test
# - name: Send coverage report
Expand All @@ -44,7 +44,7 @@ jobs:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
- name: Show MySQL logs
run: docker-compose logs db
run: docker compose logs db
if: failure()
- name: Show docker process
run: docker ps
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ default_language_version:
minimum_pre_commit_version: "1.20.0"
repos:
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.19.0
rev: 1.20.0
hooks:
- id: django-upgrade
args: [--target-version, "4.2"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.17.0
hooks:
- id: pyupgrade
args:
Expand All @@ -28,7 +28,7 @@ repos:
- --skip-glob
- "**/migrations/*.py"
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.29.0
rev: 0.29.1
hooks:
- id: check-github-workflows
- id: check-readthedocs
Expand All @@ -39,15 +39,15 @@ repos:
args: [-c, .yamllint.yml]
# exclude: (feder/letters/logs/cassettes/.*|docker-compose.yml)
- repo: https://github.com/psf/black
rev: 24.4.2
rev: 24.8.0
hooks:
- id: black
args:
- --config
- ./pyproject.toml
exclude: '.*/[^/]+/migrations/[^/]+\.py'
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
rev: 7.1.1
hooks:
- id: flake8
args:
Expand Down
36 changes: 18 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,40 @@ TEST?=feder
.PHONY: docs

clean:
docker-compose down
docker compose down

regenerate_frontend:
docker-compose run web python manage.py collectstatic --noinput
docker-compose up gulp
docker compose run web python manage.py collectstatic --noinput
docker compose up gulp

makemessages:
docker-compose run web python manage.py makemessages --ignore=htmlcov --all
docker compose run web python manage.py makemessages --ignore=htmlcov --all

gulp: regenerate_frontend

build:
docker-compose build web
docker compose build web

start: wait_mysql
docker-compose up
docker compose up --remove-orphans

test:
docker-compose run web coverage run manage.py test --keepdb --verbosity=2 ${TEST}
docker compose run web coverage run manage.py test --keepdb --verbosity=2 ${TEST}

coverage_html:
docker-compose run web coverage html
docker compose run web coverage html

coverage_send:
docker-compose run -e GITHUB_ACTIONS -e GITHUB_REF -e GITHUB_SHA -e GITHUB_HEAD_REF -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -e GITHUB_TOKEN -e COVERALLS_REPO_TOKEN web coveralls
docker compose run -e GITHUB_ACTIONS -e GITHUB_REF -e GITHUB_SHA -e GITHUB_HEAD_REF -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -e GITHUB_TOKEN -e COVERALLS_REPO_TOKEN web coveralls

wait_web: wait_mysql

wait_mysql:
docker-compose up -d db
docker-compose run web bash -c 'wait-for-it -t 30 db:3306' || (docker-compose logs db; exit -1)
docker compose up -d db
docker compose run web bash -c 'wait-for-it -t 30 db:3306' || (docker compose logs db; exit -1)

migrate:
docker-compose run web python manage.py migrate
docker compose run web python manage.py migrate

lint: # lint currently staged files
pre-commit run
Expand All @@ -45,19 +45,19 @@ lint-all: # lint all files in repository
pre-commit run --all-files

check: wait_mysql
docker-compose run web python manage.py makemigrations --check
docker compose run web python manage.py makemigrations --check

migrations: wait_mysql
docker-compose run web python manage.py makemigrations
docker compose run web python manage.py makemigrations

settings:
docker-compose run web python manage.py diffsettings
docker compose run web python manage.py diffsettings

docs:
docker-compose run web sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
docker compose run web sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html

importterc:
docker-compose run web sh -c 'curl http://cdn.files.jawne.info.pl/public_html/2017/12/03_05_43_05/TERC_Urzedowy_2017-12-03.xml --output /tmp/TERC.xml && python manage.py load_terc --input /tmp/TERC.xml'
docker compose run web sh -c 'curl http://cdn.files.jawne.info.pl/public_html/2017/12/03_05_43_05/TERC_Urzedowy_2017-12-03.xml --output /tmp/TERC.xml && python manage.py load_terc --input /tmp/TERC.xml'

createsuperuser: # polyfill for django <3. On django 3+ you can use the `DJANGO_SUPERUSER_PASSWORD` env variable.
docker-compose run web python manage.py createsuperuserwithpassword --username root --email [email protected] --password root --noinput
docker compose run web python manage.py createsuperuserwithpassword --username root --email [email protected] --password root --noinput
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
# yamllint disable-line-length
version: "2.1"
# This is application’s services configuration for development purposes only.

services:
Expand Down
2 changes: 1 addition & 1 deletion feder/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# PEP 396: The __version__ attribute's value SHOULD be a string.
__version__ = "1.5.18"
__version__ = "1.5.19"


# Compatibility to eg. django-rest-framework
Expand Down
Binary file modified feder/letters/locale/pl/LC_MESSAGES/django.mo
Binary file not shown.
Loading
Loading