Skip to content

Commit 3e277fa

Browse files
authored
Performed various cleanups (#27)
1 parent 432057d commit 3e277fa

31 files changed

Lines changed: 1675 additions & 2079 deletions

.copier-answers.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
3-
_commit: 0.3.3
3+
_commit: 0.4.0
44
_src_path: gh:quickplates/meta
55
description: Generic project template 👤
6-
projectname: generic
6+
templatename: generic
77
username: quickplates

.github/workflows/example.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ concurrency:
1717
- main
1818
# Run only on changes to relevant files
1919
paths:
20+
- "src/**"
2021
- "copier.yaml"
2122
- "*.nix"
2223
- "flake.lock"
23-
- "src/**"
2424
- "Taskfile.dist.yaml"
2525
- ".github/workflows/example.yaml"
2626

.github/workflows/test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ name: Test
1111
- main
1212
# Run only on changes to files relevant to tests
1313
paths:
14+
- "src/**"
15+
- "tests/**"
1416
- "copier.yaml"
1517
- "*.nix"
1618
- "flake.lock"
17-
- "src/**"
18-
- "tests/**"
1919
- "pytest.ini"
2020
- "Taskfile.dist.yaml"
2121
- ".github/workflows/test.yaml"
@@ -25,11 +25,11 @@ name: Test
2525
- main
2626
# Run only on changes to files relevant to tests
2727
paths:
28+
- "src/**"
29+
- "tests/**"
2830
- "copier.yaml"
2931
- "*.nix"
3032
- "flake.lock"
31-
- "src/**"
32-
- "tests/**"
3333
- "pytest.ini"
3434
- "Taskfile.dist.yaml"
3535
- ".github/workflows/test.yaml"

.trunk/configs/.eslintrc.cjs

Lines changed: 0 additions & 9 deletions
This file was deleted.

.trunk/trunk.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ runtimes:
1111
enabled:
1212
# Needed for gitleaks, shfmt, actionlint
1313
- go@1.19.5
14-
# Needed for prettier, markdownlint, svgo, eslint
14+
# Needed for prettier, markdownlint, svgo
1515
- node@18.12.1
1616
# Needed for yamllint, black, ruff
1717
- python@3.10.8
@@ -23,7 +23,6 @@ lint:
2323
- "**/*.jinja"
2424
# Ignore copier answers file
2525
- "**/.copier-answers.yaml"
26-
- "**/.copier-answers.yml"
2726
definitions:
2827
# Nix formatting check (local)
2928
- name: nix-fmt-check
@@ -81,8 +80,6 @@ lint:
8180
- actionlint@1.6.24
8281
# SVG formatting
8382
- svgo@3.0.2
84-
# JavaScript linting
85-
- eslint@8.41.0
8683
# Python formatting
8784
- black@23.3.0
8885
- isort@5.12.0

CONTRIBUTING.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ Here are the most common ones, using `Task`:
9898
- `task lint` - Run linting on all changed files
9999

100100
Linting is automatically run on every pull request and push to the `main` branch.
101-
You can find the GitHub Actions workflow that does this in `.github/workflows/lint.yml`.
101+
You can find the GitHub Actions workflow that does this in
102+
[`.github/workflows/lint.yaml`](https://github.com/quickplates/generic/blob/main/.github/workflows/lint.yaml).
102103

103104
If you use the Dev Container setup,
104105
you will have the `Trunk` extension installed in Visual Studio Code.
@@ -115,3 +116,7 @@ To run all tests, you can run:
115116
```sh
116117
task test
117118
```
119+
120+
Testing is automatically run on every pull request and push to the `main` branch.
121+
You can find the GitHub Actions workflow that does this in
122+
[`.github/workflows/test.yaml`](https://github.com/quickplates/generic/blob/main/.github/workflows/test.yaml).

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ copier gh:quickplates/generic .
4141
with [`Docusaurus`](https://docusaurus.io)
4242
- continuous integration with [`GitHub Actions`](https://github.com/features/actions)
4343

44-
## 💻 Contributing and Development
44+
## 💻 Development
4545

46-
Read more about how to contribute and develop the project
46+
Read more about how to develop the project
4747
[here](https://github.com/quickplates/generic/blob/main/CONTRIBUTING.md).
4848

4949
If you have any ideas on how to improve this template,

Taskfile.dist.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ tasks:
107107
config
108108
--local
109109
user.name
110-
'quickplates'
110+
'test'
111111
- >
112112
git
113113
config
114114
--local
115115
user.email
116-
'quickplates <quickplates@mail.spietras.dev>'
116+
'test@example.org'
117117
- >
118118
git
119119
commit

copier.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ username:
77

88
projectname:
99
type: str
10-
help: The name of your project
10+
help: The name of the project
1111

1212
description:
1313
type: str
14-
help: A short description of your project
14+
help: A short description of the project
15+
16+
releases:
17+
type: bool
18+
help: Whether you plan to make releases
19+
default: true
1520

1621
docs:
1722
type: bool

src/.gitattributes.jinja

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
{%- if docs %}
44
docs/** -linguist-vendored linguist-documentation
55
{%- endif %}
6-
tests/** -linguist-vendored linguist-documentation
76
src/** -linguist-vendored

0 commit comments

Comments
 (0)