Skip to content

Draft impl#1

Merged
Lenormju merged 10 commits into
mainfrom
draft-impl
Jul 9, 2026
Merged

Draft impl#1
Lenormju merged 10 commits into
mainfrom
draft-impl

Conversation

@jgaffiot

Copy link
Copy Markdown
Owner

No description provided.

@Lenormju Lenormju left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I have reviewed the PR. Most of the comments are notes or suggestions, there are very few blocking comments, and only 1 issue.

Comment on lines +1 to +3
from decimal import Decimal
import httpx
from app.config import PAYMENT_API_URL, PAYMENT_API_KEY

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

question(non-blocking): no ruff here ?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

ruff format is applied, and ruff check with default config (so not many rules).
What rules do we want for ruff ? Perhaps as-is for the current app, and all rules for the solution ?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

solution/app now pass with ruff check --select ALL --fix --ignore EM,TRY003

solution/test now pass with ruff check --select ALL --fix --ignore EM,TRY003,S,ANN,PLR2004 .

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I was expecting an empty line between the 3 categories of imports, and the API_URL to be sorted after the API_KEY, strange.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

The solution is not considered as a proper package by ruff, so not considered as "project code" but "external code".

Comment thread app/schemas/order.py
Comment thread app/services/order_service.py
Comment thread app/services/order_service.py
Comment thread app/config.py Outdated
Comment thread solution/.github/workflows/ci.yml
Comment thread solution/ANALYSIS.md
Comment thread solution/ANALYSIS.md

---

## 3. Existing tests: catalogue of problems

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

todo: @Lenormju review if you find more problems

Comment thread solution/.github/workflows/ci.yml
Comment thread solution/ANALYSIS.md

@Lenormju Lenormju left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

GitHub reviews suck! Sorry, I will have to spam you it seems 😢

Comment thread app/schemas/order.py
Comment thread app/services/order_service.py
Comment on lines +1 to +3
from decimal import Decimal
import httpx
from app.config import PAYMENT_API_URL, PAYMENT_API_KEY

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I was expecting an empty line between the 3 categories of imports, and the API_URL to be sorted after the API_KEY, strange.

Comment thread solution/.github/workflows/ci.yml
@Lenormju

Lenormju commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

todo: add AGENTS.md + CLAUDE.md that points to Agents, and that explains to not read the solution unless explicitely asked for.

Comment thread solution/tests/conftest.py Outdated
Comment thread solution/tests/conftest.py Outdated
jgaffiot added 3 commits July 6, 2026 22:06
…e in solution, add a comment about the db fixture, package the app, add the title to the abstract
Comment thread AGENTS.md
Comment thread AGENTS.md
Comment thread AGENTS.md
Comment thread uv.lock

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

issue: faudrait tester sur Windows, car il y aura statistiquement au moins une personne sur Windows qui assistera au workshop. Mais j'ai pas de PC Windows sous la main, que du Linux. Toi tes VMs sont pas sous Windows ?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Sous Windows, la partie Python fonctionne, mais j'ai pas Docker

Comment thread solution/README.md
Comment thread README.md
@jgaffiot jgaffiot marked this pull request as ready for review July 9, 2026 20:54
@Lenormju Lenormju merged commit 37208a5 into main Jul 9, 2026
1 check failed
@Lenormju Lenormju deleted the draft-impl branch July 9, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants