Skip to content

Set up the environment and add organize/coc.md #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Set up the environment and add organize/coc.md #1

wants to merge 10 commits into from

Conversation

CYFish
Copy link
Collaborator

@CYFish CYFish commented Feb 4, 2024

  1. Use PDM to manage packages
  2. Install MkDocs and configure the environment
  3. Add organize/coc.md

Copy link
Member

@Lee-W Lee-W left a comment

Choose a reason for hiding this comment

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

Is there anything we want to test in this repo? Or should we remove tests/__init__.py?

Also, it might make sense for us to use pre-commit hooks like https://github.com/pycontw/pycontw-blog/blob/main/.pre-commit-config.yaml#L19-L22 and https://github.com/pycontw/pycontw-blog/blob/be772415f6a134b68b035e10e3023198478c3197/.pre-commit-config.yaml#L2-L11.

If we're to following conventional commit, https://github.com/pycontw/pycontw-blog/blob/be772415f6a134b68b035e10e3023198478c3197/.pre-commit-config.yaml#L13-L17 is handy as well

@Lee-W
Copy link
Member

Lee-W commented Mar 23, 2025

Hey @CYFish , thanks for coming back. Tool chains change a bit these days. Wanna play with uv instead?

@CYFish
Copy link
Collaborator Author

CYFish commented Mar 23, 2025

Sure. Give me some time to explore it 😁

@CYFish
Copy link
Collaborator Author

CYFish commented Apr 9, 2025

Hi @Lee-W

I have used uv as the package manager and added a README.md file and pre-commit hooks following the recommendations.

Welcome any feedback on anything I might have missed.

description = "Default template for PDM package"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
Copy link
Member

Choose a reason for hiding this comment

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

nit: I think we can make commitizen and pre-commit dev dependencies

[project]
name = "pycontw-documentation"
version = "0.1.0"
description = "Default template for PDM package"
Copy link
Member

Choose a reason for hiding this comment

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

This description is not accurate now

@@ -0,0 +1,6 @@
def main():
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need this file.

- id: no-commit-to-branch

- repo: https://github.com/commitizen-tools/commitizen
rev: v3.15.0
Copy link
Member

Choose a reason for hiding this comment

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

I think we can use the latest version haha

Suggested change
rev: v3.15.0
rev: v4.6.0

Comment on lines +59 to +60
2. Winnie (PyCon TW 2023 大會主席, [email protected])
3. Pochun (PyCon TW 2023 大會主席, [email protected])
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
2. Winnie (PyCon TW 2023 大會主席, [email protected])
3. Pochun (PyCon TW 2023 大會主席, [email protected])

I guess we don't need to include their mail for now

Comment on lines +66 to +67
2. Winnie (Chairperson of PyCon TW 2023, [email protected])
3. Pochun (Chairperson PyCon TW 2023, [email protected])
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
2. Winnie (Chairperson of PyCon TW 2023, [email protected])
3. Pochun (Chairperson PyCon TW 2023, [email protected])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants