-
Notifications
You must be signed in to change notification settings - Fork 91
chore: Add numpy typing plugin #2566
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2566 +/- ##
=======================================
Coverage 98.23% 98.23%
=======================================
Files 65 65
Lines 4190 4190
Branches 452 452
=======================================
Hits 4116 4116
Misses 45 45
Partials 29 29
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
0f28a49 to
42a5249
Compare
|
ping @matthewfeickert |
matthewfeickert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kratsg This is great overall, but I have a few questions that I've left as review comments.
The other thing that I wanted to get your 👍 / 👎 on is that this is a pretty dang big PR (for good reason!). As we know that there's going to be some CI failures that we have to fix anyway, how do you feel about pulling all of the "drop TensorFlow" stuff out into a seperate PR so that this gets more atomic? Given that you've done all the work for this PR by yourself, I'm happy to volunteer to do that PR so that I don't give you Git surgery.
It's impossible. We've pushed this PR so far back that we have to drop pytorch AND tensorflow AND have these fixes just to have a working CI. I cannot tell you what to fix if you just drop one dependency without fixing the existing CI. You're stuck with this big PR I think. |
matthewfeickert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few questions, but other than that this is basically there.
db6da5d to
7b7fb8a
Compare
@kratsg I did though: https://github.com/scikit-hep/pyhf/pull/2625/files#r2495650423 From my fork's branch $ git diff upstream/main origin/build/drop-python-3-8-support -- .pre-commit-config.yaml
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 07539686..ef188fe0 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -55,14 +55,15 @@ repos:
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
# check the oldest and newest supported Pythons
+ # except skip python 3.9 for numpy, due to poor typing
hooks:
- &mypy
id: mypy
- name: mypy with Python 3.8
+ name: mypy with Python 3.10
files: src
additional_dependencies:
['numpy', 'types-tqdm', 'click', 'types-jsonpatch', 'types-pyyaml', 'types-jsonschema', 'importlib_metadata', 'packaging']
- args: ["--python-version=3.8"]
+ args: ["--python-version=3.10"]
- <<: *mypy
name: mypy with Python 3.13
args: ["--python-version=3.13"]or just comparing to this PR's branch $ git diff upstream/fix/ci origin/build/drop-python-3-8-support -- .pre-commit-config.yaml
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b22720ce..ef188fe0 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -65,8 +65,8 @@ repos:
['numpy', 'types-tqdm', 'click', 'types-jsonpatch', 'types-pyyaml', 'types-jsonschema', 'importlib_metadata', 'packaging']
args: ["--python-version=3.10"]
- <<: *mypy
- name: mypy with Python 3.12
- args: ["--python-version=3.12"]
+ name: mypy with Python 3.13
+ args: ["--python-version=3.13"]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0 |
a6cfb87 to
25f7b4a
Compare
matthewfeickert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kratsg.
Pull Request Description
Add numpy typing plugin
Checklist Before Requesting Reviewer
Before Merging
For the PR Assignees: