pygit2 icon indicating copy to clipboard operation
pygit2 copied to clipboard

random fixes

Open DinhHuy2010 opened this issue 1 year ago • 3 comments

adding more type checking into the library

This will add typing information since pygit2 stubs is obsolete at https://github.com/python/typeshed/pull/12785 Also others list at the tasks:

Tasks/TODO

  • [x] Add typing to pygit2/_pygit2.pyi
  • [x] Add pygit2/_libgit2.pyi
  • [ ] Add typing to pygit2/settings.py
  • [ ] Add typing to pygit2/init.py
  • [x] Add typing to pygit2/errors.py
  • [ ] Add typing to pygit2/remotes.py
  • [ ] Add typing to pygit2/submodules.py
  • [x] Add typing to pygit2/packbuilder.py
  • [ ] Add typing to pygit2/refspec.py
  • [ ] Add typing to pygit2/callbacks.py
  • [ ] Add typing to pygit2/repository.py
  • [x] Add typing to pygit2/branches.py
  • [x] Add typing to pygit2/utils.py
  • [x] Add typing to pygit2/credentials.py
  • [x] Add typing to pygit2/enums.py
  • [x] Add typing to pygit2/_run.py
  • [ ] Add typing to pygit2/references.py
  • [x] Add typing to pygit2/config.py
  • [x] Add typing to pygit2/_build.py
  • [ ] Add typing to pygit2/legacyenums.py
  • [x] Add typing to pygit2/ffi.py
  • [x] Add typing to pygit2/blame.py
  • [x] Add typing to pygit2/blob.py
  • [ ] Add typing to pygit2/index.py
  • [x] Add more ruff configuration
  • [x] Lint and format using ruff
  • [x] Add pyright configuration for type checking
  • [ ] Add more GitHub Actions workflows
  • [ ] Maybe update docs

DinhHuy2010 avatar Dec 22 '24 04:12 DinhHuy2010

Hi, this PR is too big, could you split it?

jdavid avatar Feb 16 '25 19:02 jdavid

Hi there, thanks for responding. Yeah is PR is too big, oops. Probably I need to know to split the PR itself. Thanks.

DinhHuy2010 avatar Feb 17 '25 10:02 DinhHuy2010

uhhh for some reasons in github found conlicts in a unittest, thinking that is a confilct...

DinhHuy2010 avatar Feb 17 '25 12:02 DinhHuy2010