jscheffl commented on PR #65492:
URL: https://github.com/apache/airflow/pull/65492#issuecomment-4276448972

   Interesting, running in Linux and `prek run -a` git two errors, Python 3.13:
   
   1) 
   ```
   Running hooks for `task-sdk-integration-tests`:
   Run mypy for 
task-sdk-integration-tests...................................................................Failed
   - hook id: mypy-task-sdk-integration-tests
   - exit code: 2
   
     Running mypy for folders: ['task-sdk-integration-tests']
     Syncing dedicated mypy virtualenv 
(/home/jscheffl/Workspace/airflow_review/.build/mypy-venvs/task-sdk-integration-tests)
 for project task-sdk-integration-tests: uv sync --frozen --project 
task-sdk-integration-tests --group mypy
     warning: Failed to parse `pyproject.toml` during settings discovery:
       TOML parse error at line 1355, column 17
            |
       1355 | exclude-newer = "4 days"
            |                 ^^^^^^^^
       failed to parse year in date "4 days": failed to parse "4 da" as year (a 
four digit integer): invalid digit, expected 0-9 but got  
     
     warning: 
`VIRTUAL_ENV=/home/jscheffl/.cache/prek/hooks/python-NFPi8u10rFeZ5V6tnNNQ` does 
not match the project environment path 
`.build/mypy-venvs/task-sdk-integration-tests` and will be ignored; use 
`--active` to target the active environment instead
     error: Group `mypy` is not defined in the project's `dependency-groups` 
table
     `uv sync --frozen --project task-sdk-integration-tests` failed for the 
mypy virtualenv at 
/home/jscheffl/Workspace/airflow_review/.build/mypy-venvs/task-sdk-integration-tests.
 Fix the sync error before running mypy — otherwise the dedicated mypy 
virtualenv will not match uv.lock and results will diverge from CI. You can 
remove the cached virtualenv with:
       breeze down --cleanup-mypy-cache
   
     Mypy check failed. You can run mypy locally with:
       prek run mypy-task-sdk-integration-tests --all-files
     The hook uses dedicated virtualenv(s) and mypy cache(s) under .build/ so 
it does
     not touch your regular project .venv. You can clear both with:
       breeze down --cleanup-mypy-cache
   ```
   ...but running individually via `prek run -a 
mypy-task-sdk-integration-tests` is fine. Could reproduce.
   
   2)
   ```
   Generate Datamodels for TaskSDK 
client....................................................................Failed
   - hook id: generate-tasksdk-datamodels
   - files were modified by this hook
   
     warning: Failed to parse 
`/home/jscheffl/Workspace/airflow_review/pyproject.toml` during settings 
discovery:
       TOML parse error at line 1355, column 17
            |
       1355 | exclude-newer = "4 days"
            |                 ^^^^^^^^
       failed to parse year in date "4 days": failed to parse "4 da" as year (a 
four digit integer): invalid digit, expected 0-9 but got  
     
     Using CPython 3.12.3 interpreter at: /usr/bin/python3.12
     Removed virtual environment at: 
/home/jscheffl/.cache/prek/hooks/python-YDYfQRMBSDtQiUlNIGnr
     Creating virtual environment at: 
/home/jscheffl/.cache/prek/hooks/python-YDYfQRMBSDtQiUlNIGnr
     Ignoring existing lockfile due to removal of timestamp cutoff: 
`2026-04-15T17:09:07.955557547Z`
     Installed 220 packages in 289ms
   ```
   maybe the same but unrelated to the change.
   
   Willr epeat testing with Python 3.10...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to