home.social

#gitlogui — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #gitlogui, aggregated by home.social.

  1. Progress on gitlogui. Yes, exactly. A minimal UI for git log.

    New:

    - regex or simple search through the shown text
    - commit graph (--graph option of git log) may be shown

    Suggestions of features to add are welcome.😀

    Same for a professional layout suggestion for the seemingly randomly tossed text entries and check boxes of the UI.

    codeberg.org/harald/gitlogui

    #gitlogui #git #git-log #gitk #tkinter #python

  2. I have a script called pyfix which runs mypy and ruff to

    - have strong typing
    - have a fixed and orderly import order
    - have the file always formatted in the same way
    - detect programming errors and redundancies.

    Now I am working on gitlogui (codeberg.org/harald/gitlogui) the main script of which I called glu. So I am running

    pyfix glu

    all the time, which reads funny. 😀

    #python #gitlogui #mypy #ruff #strongTyping #linting

  3. I have a script called pyfix which runs mypy and ruff to

    - have strong typing
    - have a fixed and orderly import order
    - have the file always formatted in the same way
    - detect programming errors and redundancies.

    Now I am working on gitlogui (codeberg.org/harald/gitlogui) the main script of which I called glu. So I am running

    pyfix glu

    all the time, which reads funny. 😀

    #python #gitlogui #mypy #ruff #strongTyping #linting

  4. I have a script called pyfix which runs mypy and ruff to

    - have strong typing
    - have a fixed and orderly import order
    - have the file always formatted in the same way
    - detect programming errors and redundancies.

    Now I am working on gitlogui (codeberg.org/harald/gitlogui) the main script of which I called glu. So I am running

    pyfix glu

    all the time, which reads funny. 😀

    #python #gitlogui #mypy #ruff #strongTyping #linting

  5. I have a script called pyfix which runs mypy and ruff to

    - have strong typing
    - have a fixed and orderly import order
    - have the file always formatted in the same way
    - detect programming errors and redundancies.

    Now I am working on gitlogui (codeberg.org/harald/gitlogui) the main script of which I called glu. So I am running

    pyfix glu

    all the time, which reads funny. 😀

    #python #gitlogui #mypy #ruff #strongTyping #linting

  6. I have a script called pyfix which runs mypy and ruff to

    - have strong typing
    - have a fixed and orderly import order
    - have the file always formatted in the same way
    - detect programming errors and redundancies.

    Now I am working on gitlogui (codeberg.org/harald/gitlogui) the main script of which I called glu. So I am running

    pyfix glu

    all the time, which reads funny. 😀

    #python #gitlogui #mypy #ruff #strongTyping #linting

  7. Nice one. Type hints in Python allow to list a number of literal values, similar to TypeScript union types and the syntax is actually somewhat more explicit.

    To implement page up/down in codeberg.org/harald/gitlogui I have now:

    def doPage(self, factor: Literal[-1] | Literal[1]) -> None:
    step = factor * int(self.pageSize.get())
    ...

    and I can be sure, when using mypy, that doPage is only ever called with either -1 or 1.

    #python #typehint #strongTyping #gitlogui

  8. Nice one. Type hints in Python allow to list a number of literal values, similar to TypeScript union types and the syntax is actually somewhat more explicit.

    To implement page up/down in codeberg.org/harald/gitlogui I have now:

    def doPage(self, factor: Literal[-1] | Literal[1]) -> None:
    step = factor * int(self.pageSize.get())
    ...

    and I can be sure, when using mypy, that doPage is only ever called with either -1 or 1.

    #python #typehint #strongTyping #gitlogui

  9. Nice one. Type hints in Python allow to list a number of literal values, similar to TypeScript union types and the syntax is actually somewhat more explicit.

    To implement page up/down in codeberg.org/harald/gitlogui I have now:

    def doPage(self, factor: Literal[-1] | Literal[1]) -> None:
    step = factor * int(self.pageSize.get())
    ...

    and I can be sure, when using mypy, that doPage is only ever called with either -1 or 1.

    #python #typehint #strongTyping #gitlogui

  10. Nice one. Type hints in Python allow to list a number of literal values, similar to TypeScript union types and the syntax is actually somewhat more explicit.

    To implement page up/down in codeberg.org/harald/gitlogui I have now:

    def doPage(self, factor: Literal[-1] | Literal[1]) -> None:
    step = factor * int(self.pageSize.get())
    ...

    and I can be sure, when using mypy, that doPage is only ever called with either -1 or 1.

    #python #typehint #strongTyping #gitlogui

  11. Nice one. Type hints in Python allow to list a number of literal values, similar to TypeScript union types and the syntax is actually somewhat more explicit.

    To implement page up/down in codeberg.org/harald/gitlogui I have now:

    def doPage(self, factor: Literal[-1] | Literal[1]) -> None:
    step = factor * int(self.pageSize.get())
    ...

    and I can be sure, when using mypy, that doPage is only ever called with either -1 or 1.

    #python #typehint #strongTyping #gitlogui

  12. Progress on gitlogui. Yes, exactly. A minimal UI to avoid reading the docs for all those who use it not that often, in particular with pickaxe options.

    Now on codeberg: codeberg.org/harald/gitlogui

    Suggestions of features to add are welcome.😀

    #gitlogui #git #git-log #gitk #tkinter #python #tkinter

  13. New project.

    If there is something I can't quite remember: the multitude of git log options. There should be a simple UI which makes this easier. Somewhat like gitk for git in general, but with as many useful options shown as understandable buttons as possible.

    I also wanted to toy with tkinter a bit. The last few hours brought up this minimally functional thing, which seems to be a good start. Suggestions of features to add first are welcome.😀

    #git #git-log #gitk #tkinter #python #gitlogui