Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Find unresolved references in a python repo using a git commit hook?

  • 03-09-2020 01:46PM
    #1
    Registered Users, Registered Users 2 Posts: 5,761 ✭✭✭


    Is there a way to automate the inspect code functionality of pycharm via a commit hook/bash command with specifics of "unresolved references"?

    I think this would be useful in a huge refactor.


Comments

  • Registered Users, Registered Users 2 Posts: 7,157 ✭✭✭srsly78


    Could run cython on the code, instantly shows missing stuff etc because it tries to compile it in C.


  • Registered Users, Registered Users 2 Posts: 2,062 ✭✭✭Colonel Panic


    I was gonna say look at the console in PyCharm when it runs this command to see the command line (I do this a lot troubleshooting JetBrains Rider as I'm a .Net dev by day using a Mac), but it turns out JetBrains document it.

    https://www.jetbrains.com/help/pycharm/command-line-code-inspector.html#options

    So, all that's left is seeing if that meets your needs and adding it as a commit hook.


Advertisement