Skip to content

Conversation

teunhoevenaars
Copy link
Contributor

Small updates and suggestions to clarify issues encountered during the getting-started and coffee-machine tutorial.

PR Checklist

Please check if your PR fulfills the following requirements:

NB the link PR Review Checklist on Contributor guide is broken. Something for a later fix as I'm not sure where it is supposed to reference to.

PR Type

What kind of change does this PR introduce?

  • Bug fix
  • Feature
  • Chore (refactoring, formatting, local variables, other cleanup)
  • Documentation content changes

What is the current behavior?

  • failed build of app on MacOS when following instructions
  • manual configuration of poetry in-project environment
  • some minor unclarities / confusion in the documentation
  • documentation talks of black but since v2.22.0 this has been replaced with ruff
  • coffee-machine.gaphor model has typo and unused requirement IDs
  • internal links in Contribute page broken
  • link to GNOME code of conduct is out-dated

Issue Number: N/A

What is the new behavior?

  • added build-babel step to MacOS build intructions and made use of git hooks explicit
  • default configuration of poetry in-project environment for gaphor
  • minor improvements to the documentation
  • added ruff to dev dependencies
  • requirements in coffee-machine.gaphor model have no IDs
  • internal links in Contribute page work
  • link to GNOME code of conduct up-to-date

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

This is my first PR to this project, and have done my best to follow all guidelines. In case I've missed some, then this is absolutely not intentional. Please feel free to revert any changes that you deem inappropriate. Many thanks for all your efforts!

the built app crashes on startup if this command was not run before. the locale folder is empty by default.
preconfigure the repo for in-project virtualenv
since IDs are not used and implemented inconsistently, I consider it better to leave them out
to prevent distraction I consider it better to introduce all requirements as 'shall', since all these requirements are verifiable
small suggested improvements encountered during my run through the tutorial
ruff added (with newer version than hook) to dev, and fixed settings to resolve warnings
Copy link
Member

@danyeaw danyeaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @teunhoevenaars, thank you so much for this contribution, these are some really nice documentation updates 🤩.

I have a few comments about some of the dependencies changed and config files.

Copy link
Member

@danyeaw danyeaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @teunhoevenaars! This is a really great contribution!

@@ -197,9 +197,6 @@ gettext-mo-release = { "script" = "po.build-babel:compile_mo_release" }
translations = ["gettext-pot", "gettext-po", "gettext-mo-all"]
icons = { "shell" = "make -C gaphor/ui/icons" }

[tool.poe.executor]
type = "virtualenv"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one, it looks like this puts the configuration back to auto which should allow for centralized virtual environments 👍

@danyeaw danyeaw merged commit 219a89b into gaphor:main Apr 8, 2024
@danyeaw
Copy link
Member

danyeaw commented Apr 8, 2024

@all-contributors please add @teunhoevenaars for docs

Copy link
Contributor

@danyeaw

I've put up a pull request to add @teunhoevenaars! 🎉

@teunhoevenaars teunhoevenaars deleted the chore_getting_started_updates branch April 27, 2024 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants