Skip to content

Commit 3ea5f4f

Browse files
authored
Merge pull request #3316 from camptocamp/fastapi
Add Copilot instructions
2 parents 8267a6d + 6781281 commit 3ea5f4f

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/copilot-instructions.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The project must use async-friendly APIs for I/O to don't block the event loop.
2+
3+
- `pathlib` must not be used, use `anyio.Path` instead.
4+
- Converting a non-async function to `async` is allowed, and requires updating all call sites to `await` it.
5+
- `aiofiles` must not be used, use `anyio.Path` instead.
6+
- All disk or network operation must be done with async API; avoid blocking calls on the event loop.
7+
- Don't allow sequential `await` calls in loops; use e.g. `asyncio.gather` or `asyncio.TaskGroup`.
8+
9+
The user documentation in the `tilecloud_chain/USAGE.rst` file should be updated to reflect the changes in the codebase.

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ repos:
149149
- --profile=utils:pre-commit
150150
additional_dependencies:
151151
- prospector-profile-utils==1.26.5 # pypi
152+
- ruff==0.14.3 # pypi
152153
- repo: https://github.com/sbrunner/jsonschema-validator
153154
rev: 1.0.0
154155
hooks:

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2012-2025, Camptocamp SA
1+
Copyright (c) 2012-2026, Camptocamp SA
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

0 commit comments

Comments
 (0)