Skip to content

fix: use mypy pre-commit in local environment #10261

fix: use mypy pre-commit in local environment

fix: use mypy pre-commit in local environment #10261

Triggered via pull request February 9, 2025 21:42
Status Success
Total duration 11s
Artifacts

release-drafter.yml

on: pull_request
update_release_draft
4s
update_release_draft
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 4 warnings
update_release_draft
Resource not accessible by integration { name: 'HttpError', id: '13229870462', status: 403, response: { url: 'https://api.github.com/repos/narwhals-dev/narwhals/releases', status: 403, headers: { 'access-control-allow-origin': '*', 'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset', 'content-encoding': 'gzip', 'content-security-policy': "default-src 'none'", 'content-type': 'application/json; charset=utf-8', date: 'Sun, 09 Feb 2025 21:42:33 GMT', 'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin', server: 'github.com', 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload', 'transfer-encoding': 'chunked', vary: 'Accept-Encoding, Accept, X-Requested-With', 'x-accepted-github-permissions': 'contents=write; contents=write,workflows=write', 'x-content-type-options': 'nosniff', 'x-frame-options': 'deny', 'x-github-api-version-selected': '2022-11-28', 'x-github-media-type': 'github.v3; format=json', 'x-github-request-id': '4B82:4321F:2377DA6:477C6E2:67A92149', 'x-ratelimit-limit': '5000', 'x-ratelimit-remaining': '4914', 'x-ratelimit-reset': '1739140172', 'x-ratelimit-resource': 'core', 'x-ratelimit-used': '86', 'x-xss-protection': '0' }, data: { message: 'Resource not accessible by integration', documentation_url: 'https://docs.github.com/rest/releases/releases#create-a-release', status: '403' } }, request: { method: 'POST', url: 'https://api.github.com/repos/narwhals-dev/narwhals/releases', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'probot/12.4.0 octokit-core.js/3.6.0 Node.js/20.18.0 (linux; x64)', 'x-github-delivery': '13229870462', authorization: 'token [REDACTED]', 'content-type': 'application/json; charset=utf-8' }, body: '{"target_commitish":"refs/pull/1966/merge","name":"Narwhals unreleased","tag_name":"","body":"## Changes\\n\\n- ci: validate tpch query results (#1971)\\n- ci: add pointblank in downstream test (#1956)\\n- ci: add Validoopsie to downstream tests (#1973)\\n- chore(typing): fix `_from_compliant_dataframe` type ignore (#1969)\\n- fix(typing): resolve remaining `utils.py` warnings (#1968)\\n- test: Add new_streaming (#1898)\\n- fix(typing): add missing `Series._level` annotation (#1967)\\n- ci: fix plotly tests location (#1965)\\n\\n## ✨ Enhancements\\n\\n- feat: add `datetime` selector (#1822)\\n- feat: add `Schema.to_(arrow|pandas|polars)` (#1924)\\n\\n## 🐞 Bug fixes\\n\\n- fix: fix type `__get_item__` (#1958)\\n- fix(typing): Backport `from_native` overload fixes to `v1` (#1953)\\n- fix(typing): Backport use `IntoDataFrameT` in `to_native` to `v1` (#1954)\\n\\n## 📖 Documentation\\n\\n- docs: add `Schema.to_(arrow|pandas|polars)` (#1980)\\n- RFC, chore: shrink `series` module docstrings (#1976)\\n- chore: shrink `functions` module docstrings (#1974)\\n- docs: add docstring guidelines to CONTRIBUTING.md (#1957)\\n\\n## 🛠️ Other improvements\\n\\n- chore(typing): resolve `_arrow.dataframe` warnings (#1983)\\n- chore(typing): add `np.ndarray` aliases (#1977)\\n- chore: widen `parse_version` to accept packages (#1975)\\n- RFC, chore: shrink `series` module docstrings (#1976)\\n- chore: shrink `functions` module docstrings (#1974)\\n- chore(typing): fix remaining `functions`, `series` warnings (#1970)\\n- fix: missing `__getitem__` type fixes (#1963)\\n- chore(typing): add guards `is_compliant_*` (+ friends) (#1955)\\n- chore: reduce duplication, implement more methods at the Narwhals level rather than at the compliant level, fix CI from Ibis release (#1960)\\n\\nThank you to all our contributors for making this release possible!\
update_release_draft
HttpError: Resource not accessible by integration at /home/runner/work/_actions/release-drafter/release-drafter/v6/dist/index.js:7146:21 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Job.doExecute (/home/runner/work/_actions/release-drafter/release-drafter/v6/dist/index.js:61885:18) { name: 'AggregateError', event: { id: '13229870462', name: 'pull_request', payload: { action: 'edited', changes: { body: { from: '<!--\r\n' + '# Thanks for contributing a pull request! \r\n' + '## Please make sure you see our contribution guidelines: https://github.com/narwhals-dev/narwhals/blob/main/CONTRIBUTING.md\r\n' + '-->\r\n' + '\r\n' + '## What type of PR is this? (check all applicable)\r\n' + '\r\n' + '- [ ] 💾 Refactor\r\n' + '- [ ] ✨ Feature\r\n' + '- [x] 🐛 Bug Fix\r\n' + '- [ ] 🔧 Optimization\r\n' + '- [ ] 📝 Documentation\r\n' + '- [ ] ✅ Test\r\n' + '- [ ] 🐳 Other\r\n' + '\r\n' + '## Related issues\r\n' + '\r\n' + '- Related issues #1961 \r\n' + '- Closes #1962\r\n' + '\r\n' + '## Checklist\r\n' + '\r\n' + '- [x] Code follows style guide (ruff)\r\n' + '- [x] Tests added\r\n' + '- [x] Documented the changes\r\n' + '\r\n' + '## If you have comments or can explain your changes, please do so below\r\n' + '\r\n' + 'I did some digging, looking for how other projects run typing and general best practices with `mypy`.\r\n' + 'One thing people seem to agree with is that `mirrors-mypy` has its gotchas and may not be ideal for every project.\r\n' + 'In our case we would need to add every backend dependencies as `additional-dependencies`. In this case we would have to maintain a script that keep those dependencies up to date.\r\n' + '\r\n' + 'One alternative would be to run mypy in the local environment where all the dependencies are already installed. This is what this PR is trying to do.\r\n' + '\r\n' + 'I have still some open questions, making this draft to test the CI too.\r\n' + 'I am expecting to see ~300 errors from `mypy` 👀' } }, number: 1966, organization: { avatar_url: 'https://avatars.githubusercontent.com/u/169070048?v=4', description: 'Narwhals developers', events_url: 'https://api.github.com/orgs/narwhals-dev/events', hooks_url: 'https://api.github.com/orgs/narwhals-dev/hooks', id: 169070048, issues_url: 'https://api.github.com/orgs/narwhals-dev/issues', login: 'narwhals-dev', members_url: 'https://api.github.com/orgs/narwhals-dev/members{/member}', node_id: 'O_kgDOChPN4A', public_members_url: 'https://api.github.com/orgs/narwhals-dev/public_members{/member}', repos_url: 'https://api.github.com/orgs/narwhals-dev/repos', url: 'https://api.github.com/orgs/narwhals-dev' }, pull_request: { _links: { comments: { href: 'https://api.github.com/repos/narwhals-dev/narwhals/issues/1966/comments' }, commits: { href: 'https://api.github.com/repos/narwhals-dev/narwhals/pulls/1966/commits' }, html: { href: 'https://github.com/narwhals-dev/narwhals/pull/1966' }, issue: { href: 'https://api.github.com/repos/narwhals-dev/narwhals/issues/1966' }, review_comment: { href: 'https://api.github.com/repos/narwhals-dev/narwhals/pulls/comments{/number}' }, review_comments: { href: 'https://api.github.com/repos/narwhals-dev/narwhals/pulls/1966/comments' }, self: { href: 'https://
update_release_draft
"pull_request_target.opened" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)
update_release_draft
"pull_request_target.reopened" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)
update_release_draft
"pull_request_target.synchronize" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)
update_release_draft
"pull_request_target.edited" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)