Skip to content

baseline accumulate #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
KotlinIsland opened this issue Dec 1, 2021 · 0 comments
Open

baseline accumulate #86

KotlinIsland opened this issue Dec 1, 2021 · 0 comments

Comments

@KotlinIsland
Copy link
Owner

KotlinIsland commented Dec 1, 2021

like when you wanna run on multiple platforms / multiple directories

> mypy --write-baseline .
a
b
c
found 3 errors (3 new)

> mypy --baseline-add --platform win32 .
w
found 3 errors (1 new)

I suppose this would set a flag in the baseline file indicating that auto-baseline shouldn't be used. Or perhaps additional info could be stored on each error indicating it's platform/version exclusivity.

Workaround

Have different baseline files for each invocation:

> mypy --platform lignux --write-baseline --baseline-file .mypy/baseline-lignux.json .
...

> mypy --platform win32 --write-baseline --baseline-file .mypy/baseline-win32.json .
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant