Skip to content

Commit f65c2bc

Browse files
authored
refactor: 🚚 move config files into .config/ or pyproject.toml (#280)
# Description Move all config files into `.config/` folder. Only pytest I moved into `pyproject.toml`, as setting IDE-level changes wasn't that easy, nor do the docs talk about it. I tried to move `.typos.toml`, but it doesn't work well. There's an open issue in typos to support `.config/` (crate-ci/typos#1445). Closes #262 Needs a quick review. ## Checklist - [x] Ran `just run-all`
1 parent c63f4b6 commit f65c2bc

15 files changed

Lines changed: 31 additions & 23 deletions

File tree

File renamed without changes.
File renamed without changes.

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
id: check_changes
6868
run: |
6969
# Determine if a bump is possible.
70-
if [[ $(cog bump --auto --dry-run) != No* ]]; then
70+
if [[ $(cog --config .config/cog.toml bump --auto --dry-run) != No* ]]; then
7171
echo "has_changes=true" >> $GITHUB_OUTPUT
7272
else
7373
echo "has_changes=false" >> $GITHUB_OUTPUT
@@ -76,7 +76,7 @@ jobs:
7676
- name: Create tag and update changelog
7777
if: steps.check_changes.outputs.has_changes == 'true'
7878
run: |
79-
cog bump --auto
79+
cog --config .config/cog.toml bump --auto
8080
8181
- name: Create GitHub release
8282
if: steps.check_changes.outputs.has_changes == 'true'

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ repos:
2929
- id: typos
3030

3131
- repo: https://github.com/rvben/rumdl-pre-commit
32-
rev: v0.1.94
32+
rev: v0.1.96
3333
hooks:
3434
- id: rumdl-fmt # Auto-format

justfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ update-quarto-theme:
2727

2828
# Update files in the template from the Copier parent folder
2929
sync-template-files:
30-
cp CODE_OF_CONDUCT.md .pre-commit-config.yaml .typos.toml .editorconfig .rumdl.toml template/
30+
cp CODE_OF_CONDUCT.md .pre-commit-config.yaml .typos.toml .editorconfig template/
31+
cp .config/rumdl.toml template/.config/
3132
mkdir -p template/tools
3233
cp tools/get-contributors.sh template/tools/
3334
cp .github/pull_request_template.md template/.github/
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
line_length = 72
44
flavor = "quarto"
55
exclude = [
6-
# Common directories to exclude
7-
".github",
8-
# This is auto-generated from the qmd version
9-
"**/README.md",
10-
# This has it's own structure
11-
"**/LICENSE.md"
6+
# Common directories to exclude
7+
".github",
8+
# This is auto-generated from the qmd version
9+
"**/README.md",
10+
# This has it's own structure
11+
"**/LICENSE.md",
1212
]
1313

1414
# List style: `-`

template/.typos.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
[files]
22
extend-exclude = [
3+
"*.html",
34
"*.json",
45
"*.css",
56
".quarto/*",
67
"_site/*",
78
"_extensions/*",
89
".coverage-report/*",
910
"site_libs/",
11+
"*.svg",
12+
# Since it has hashes
13+
"CHANGELOG.md",
1014
]

0 commit comments

Comments
 (0)