Skip to content

Commit fd56d39

Browse files
authored
Merge pull request #14 from WillSams/chore/update-dependencies-2024-02-19
Update Python dependencies
2 parents 49d6407 + dc79e0f commit fd56d39

File tree

8 files changed

+25
-34
lines changed

8 files changed

+25
-34
lines changed

.github/workflows/pr-validate.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
--max-line-length=96 --statistics --per-file-ignore='specs/**/*:E9,F63,F7,F82'
3838
- name: Run pytest tests
3939
run: |
40-
chmod +x ./backend/scripts/test.sh
41-
cd backend && ./scripts/test.sh
40+
chmod +x ./backend/scripts/test-coverage.sh
41+
cd backend && ./scripts/test-coverage.sh
4242
4343
unit-test-frontend:
4444
runs-on: ubuntu-latest

backend/requirements-docker.txt

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
ariadne==0.21
2-
asyncio==3.4.3
1+
ariadne==0.22
32
asyncpg==0.29.0
43
fastapi==0.109.2
54
httpx==0.26.0
6-
pydantic==2.5.3
7-
python-multipart==0.0.7
5+
pydantic==2.6.1
6+
python-multipart==0.0.9
87
python-jose==3.3.0
9-
uvicorn==0.25.0
8+
uvicorn==0.27.1

backend/run_tests.sh

-12
This file was deleted.
File renamed without changes.

frontend/.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage
2+
node_modules
3+
specs

frontend/.eslintrc

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
],
77
"plugins": [ "eslint-comments", "react", "react-refresh" ],
88
"root": true,
9-
"env": { browser: true, es2020: true },
9+
"env": { "browser": true, "es2020": true },
1010
"parserOptions": {
1111
"sourceType": "module",
1212
"ecmaVersion": "latest"
1313
},
1414
"ignorePatterns": ["build","specs",".eslintrc"],
15-
"settings": { "react": { version: "18.2" } },
15+
"settings": { "react": { "version": "18.2" } },
1616
"rules": {
1717
"react/jsx-uses-react": "error",
1818
"react/jsx-uses-vars": "error",
@@ -30,5 +30,5 @@
3030
"no-case-declarations": "off",
3131
"no-console": "error",
3232
"no-debugger": "error"
33-
},
33+
}
3434
}

frontend/Dockerfile

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
FROM node:20 as build-stage
22
WORKDIR /app
33
COPY . .
4-
RUN npm i -g npm
5-
RUN npm i --legacy-peer-deps
4+
RUN npm ci
5+
# Set default args. Override them at build time if needed
6+
ARG FRONTEND_PORT="80"
7+
ARG NODE_ENV="api" # 'api' is the default production url
8+
ARG RESERVATION_API="http://localhost:8080/${NODE_ENV}"
9+
# Set environment variables needed for the build
10+
ENV FRONTEND_PORT=${FRONTEND_PORT}
11+
ENV VITE_ENV=${NODE_ENV}
12+
ENV VITE_RESERVATION_API=${RESERVATION_API}
613
RUN npm run build
714

815
FROM nginx:alpine
9-
ARG FRONTEND_PORT="80"
10-
ARG NODE_ENV="production"
11-
ENV FRONTEND_PORT=${FRONTEND_PORT}
12-
ENV NODE_ENV=${NODE_ENV}
13-
ENV ENV=${NODE_ENV}
1416
COPY --from=build-stage /app/build/ /usr/share/nginx/html
1517
EXPOSE ${FRONTEND_PORT}
1618
CMD ["nginx", "-g", "daemon off;"]

requirements.txt

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
ariadne==0.21
1+
ariadne==0.22
22
asyncpg==0.29.0
33
black==23.10.1
44
fastapi==0.109.2
55
flake8==6.1.0
66
httpx==0.26.0
77
isort==5.13.2
8-
pydantic==2.5.3
9-
python-multipart==0.0.7
8+
pydantic==2.6.1
9+
python-multipart==0.0.9
1010
pytest==7.4.3
1111
pytest-asyncio==0.23.3
1212
pytest-cov==4.1.0
1313
pytest-mock==3.12.0
1414
python-jose==3.3.0
15-
uvicorn==0.25.0
16-
15+
uvicorn==0.27.1

0 commit comments

Comments
 (0)