Undertone0809 / P3G

πŸš€Python Packages Project Generator-Your next Python package needs a bleeding-edge project structure.
MIT License
58 stars 7 forks source link

Create use config, create new project in a more convenient way #111

Open Undertone0809 opened 5 months ago

Undertone0809 commented 5 months ago

πŸš€ Feature Request

For a developer who often creates projects, if it is easy to create a project and configure the basic information, it is best. I hope to optimize the output of the client and provide configuration options, which record the developer's customary configuration, such as user name, whether to use ruff and other configuration options, the following is an example:

github: "Undertone0809"
email: "zeeland4work@gmail.com"
use_ruff: True
use_pre_commit: False
license: Apache Software License 2.0
use_tsinghua_image_source: False
line_length: 99
p3g config

Running this command will open the corresponding configuration file, giving the user the ability to edit it.

p3g generate

If a profile is detected, part of the configuration is created using the profile directly, and if no profile is detected, the project is created in the default way.

πŸ”ˆ Motivation

Just to make it easier to create projects according to your own habits.

Undertone0809 commented 2 days ago

All statuses should be configurable, e.g. whether to configure the use of github actions or not.