lint: (re-)add contrib/guix for Python linting #35869

pull fanquake wants to merge 2 commits into bitcoin:master from fanquake:re_lint_guix_scripts changing 4 files +6 −5
  1. fanquake commented at 10:59 AM on August 3, 2026: member

    These were no-longer being linted after #32458.

    suppress [union-attr] warning. i.e:

    contrib/guix/symbol-check.py:309: error: Item "None" of "lief.PE.Binary | lief.ELF.Binary | lief.MachO.Binary | lief.COFF.Binary | None" has no attribute "format"  [union-attr]
    contrib/guix/security-check.py:284: error: Item "lief.COFF.Binary" of "lief.PE.Binary | lief.ELF.Binary | lief.MachO.Binary | lief.COFF.Binary | None" has no attribute "abstract"  [union-attr]
    

    Add the comment suggested in #35855..

  2. lint: re-add guix scripts to mypy linting
    These were no-longer being linted after #32458.
    
    suppress `[union-attr]` warning. i.e:
    ```bash
    contrib/guix/symbol-check.py:309: error: Item "None" of "lief.PE.Binary | lief.ELF.Binary | lief.MachO.Binary | lief.COFF.Binary | None" has no attribute "format"  [union-attr]
    contrib/guix/security-check.py:284: error: Item "lief.COFF.Binary" of "lief.PE.Binary | lief.ELF.Binary | lief.MachO.Binary | lief.COFF.Binary | None" has no attribute "abstract"  [union-attr]
    ```
    594a02c3ae
  3. lint: document CI lief version requirement 8221d714c7
  4. DrahtBot added the label Tests on Aug 3, 2026
  5. DrahtBot commented at 10:59 AM on August 3, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35869.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process.

    Type Reviewers
    ACK hebasto, maflcko

    If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  6. hebasto approved
  7. hebasto commented at 11:15 AM on August 3, 2026: member

    ACK 8221d714c7888cbcf44971ab279effde505707a9, I have reviewed the code and it looks OK.

  8. maflcko commented at 11:15 AM on August 3, 2026: member

    Haven't reviewed the first commit. Are we still using mypy, and should this be modified, or is there an effort to move to ty anyway?

    lgtm ACK 8221d714c7888cbcf44971ab279effde505707a9 in any case.

  9. fanquake commented at 11:17 AM on August 3, 2026: member

    Are we still using mypy

    mypy is still being run over python files. @willcl-ark probably has insights on any potential migration.

  10. willcl-ark commented at 11:25 AM on August 3, 2026: member

    I would like to move to ty, but I do still read that it's perhaps not 100% stable enough yet (not being v1.0) to use in production, so have held off for now. (I have been using it myself for a year and it seems great tbh though).

    Perhaps I'll set up a fork repo to rebase master here using ty and see if/how often it breaks

  11. fanquake merged this on Aug 3, 2026
  12. fanquake closed this on Aug 3, 2026

  13. fanquake deleted the branch on Aug 3, 2026

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-08-05 06:51 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me