-
Notifications
You must be signed in to change notification settings - Fork 2
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
configure pre-commit
#7
Conversation
no Is your main objection the formatting of math (i.e. SPEC12), or are there other things as well? Because at least here I don't think we'd have complex math anywhere. |
No, it's mostly everything else : ). (SPEC 12 was mostly interesting as a theoretical exercise - if we could balance pretty formatting with relatively simple rules, what would they be? I don't currently follow it religiously. If it happens to be possible to get others onboard, it is something I'd be happy to follow, but we'll see.) Another objection is that if I do start to like it, I won't be able to use it with SciPy, and that is where I will spend most of my time. |
Thanks for this! |
If you could set up tests to run, too, that would be great! Do you think we need to test with multiple libraries, or maybe just array_api_strict? I'm leaning toward just strict (unless it turns out to be too hard to get anything done). I'll try to convert the existing tests to use strict shortly. |
That's the situation I'm in, just in reverse 😅 I'll open a PR to add
I was planning to! I just thought that
|
We also need to check that the masks are doing the right thing. We can at least have those in addition to what we write, or depending on how they are organized, it might be easier to extend them with masks than to start from scratch. What did you have in mind? |
nothing yet, I had not played around with |
This adds a couple of
pre-commit
hooks:trailing-whitespace
,end-of-file-fixer
,check-docstring-first
: basic hooksruff
: lintingprettier
: format config files (mostly yaml)taplo
: format tomlvalidate-pyproject
: validatepyproject.toml
's project table