Skip to content

Commit bb80c87

Browse files
committed
chore: generate template via gh:garrett-he/copier-python
0 parents  commit bb80c87

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3232
-0
lines changed

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_size = 4
8+
indent_style = space
9+
trim_trailing_whitespace = true
10+
max_line_length = 160
11+
12+
[{LICENSE,*.md}]
13+
max_line_length = 80
14+
15+
[*.{yaml,yml}]
16+
indent_size = 2
17+
18+
[*.{cmd,bat}]
19+
end_of_line = crlf

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
test:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
- uses: actions/setup-python@v3
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- run: git config --global init.defaultBranch main
26+
27+
- run: |
28+
python -m pip install --upgrade pip
29+
python -m pip install uv
30+
31+
- run: uv sync
32+
33+
- run: uv run pytest

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
__pycache__/
2+
3+
/.pytest_cache/
4+
/.venv/
5+
6+
/.python-version

.pre-commit-config.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: check-added-large-files
6+
- id: check-ast
7+
- id: check-case-conflict
8+
- id: check-docstring-first
9+
- id: check-merge-conflict
10+
- id: check-toml
11+
- id: check-yaml
12+
args: [ '--allow-multiple-documents' ]
13+
exclude: 'copier.yml$'
14+
- id: double-quote-string-fixer
15+
- id: end-of-file-fixer
16+
- id: fix-byte-order-marker
17+
- id: fix-encoding-pragma
18+
args: [ '--remove' ]
19+
- id: mixed-line-ending
20+
args: [ '--fix', 'lf' ]
21+
- id: trailing-whitespace
22+
23+
- repo: local
24+
hooks:
25+
- id: pytest
26+
name: pytest
27+
entry: just test
28+
language: system
29+
always_run: true
30+
pass_filenames: false
31+
32+
- id: pylint
33+
name: pylint
34+
entry: just lint
35+
language: system
36+
always_run: true
37+
pass_filenames: false

.pylintrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[MAIN]
2+
jobs = 0
3+
suggestion-mode = yes
4+
disable = missing-module-docstring,
5+
missing-class-docstring,
6+
missing-function-docstring,
7+
too-few-public-methods,
8+
too-many-arguments,
9+
too-many-positional-arguments,
10+
abstract-method
11+
12+
[BASIC]
13+
good-names = i,j,k,m,n,s,fp
14+
15+
[FORMAT]
16+
expected-line-ending-format = LF
17+
max-line-length = 160
18+
indent-string = ' '

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog][1]
6+
and this project adheres to [Semantic Versioning][2].
7+
8+
## [Unreleased]
9+
10+
[1]: https://keepachangelog.com/en/1.1.0/
11+
12+
[2]: https://semver.org/spec/v2.0.0.html

Justfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
default:
2+
@just --list
3+
4+
init:
5+
uv sync
6+
uv run pre-commit install
7+
8+
test:
9+
uv run pytest
10+
11+
lint:
12+
uv run pylint --recursive=yes copier/ tests/

LICENSE

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2025 Garrett HE <[email protected]>
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
1. Redistributions of source code must retain the above copyright notice, this
9+
list of conditions and the following disclaimer.
10+
11+
2. Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
14+
15+
3. Neither the name of the copyright holder nor the names of its
16+
contributors may be used to endorse or promote products derived from
17+
this software without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# copier-python-wxpython
2+
3+
![license](https://img.shields.io/github/license/garrett-he/copier-python-wxpython)
4+
[![test](https://github.com/garrett-he/copier-python-wxpython/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/garrett-he/copier-python-wxpython/actions/workflows/test.yml)
5+
6+
A [Copier][1] template for Python projects with [wxPython][2] framework.
7+
8+
## Quickstart
9+
10+
1. Install the latest Copier via command:
11+
```
12+
pip install --user --upgrade copier copier-templates-extensions
13+
```
14+
15+
2. Use command `copier` to generate a new project:
16+
```
17+
copier copy --trust gh:garrett-he/copier-python-wxpython /path/to/destination
18+
```
19+
20+
## License
21+
22+
Copyright (C) 2025 Garrett HE <[email protected]>
23+
24+
The BSD 3-Clause License, see [LICENSE](./LICENSE).
25+
26+
[1]: https://github.com/copier-org/copier
27+
28+
[2]: https://wxpython.org

copier.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
!include copier/settings.yml
3+
4+
---
5+
!include copier/questions/project.yml
6+
7+
---
8+
!include copier/questions/copyright.yml
9+
10+
---
11+
!include copier/questions/vcs.yml
12+
13+
---
14+
!include copier/questions/python.yml
15+
16+
---
17+
!include copier/questions/features.yml

0 commit comments

Comments
 (0)