numtide / treefmt-nix

treefmt nix configuration
https://numtide.github.io/treefmt/
MIT License
229 stars 70 forks source link

mypy: allow adding custom paths to PYTHONPATH #208

Closed DavHau closed 1 month ago

DavHau commented 1 month ago

Problem this fixes: Adding in-tree python dependencies via extraPythonPackages leads to constant re-builds, as the treefmt wrapper becomes dependant on ones own code.

This adds a new option extraPythonPaths which allows adding local projects to PYTHONPATH relative to $PROJECT_ROOT

DavHau commented 1 month ago

I noticed that this doesn't quite work yet.

DavHau commented 1 month ago

I noticed that this doesn't quite work yet.

Fixed

Mic92 commented 1 month ago

@mergify queue

mergify[bot] commented 1 month ago

queue

🛑 The pull request rule doesn't match anymore

The pull request has been synchronized by a user.
Mic92 commented 1 month ago

@mergify queue

mergify[bot] commented 1 month ago

queue

🛑 The pull request has been merged manually

The pull request has been merged manually at *4a6d7dccf80a1aa2d04cfaa88d9e5511542a2486*