Skip to content

Commit 8aa7044

Browse files
committed
refactor: 🚚 move config files into .config/ or pyproject.toml
1 parent c8f2e6d commit 8aa7044

16 files changed

Lines changed: 35 additions & 25 deletions

File tree

File renamed without changes.
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 bump --auto --dry-run --config .config/cog.toml) != 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 bump --auto --config .config/cog.toml
8080
8181
- name: Create GitHub release
8282
if: steps.check_changes.outputs.has_changes == 'true'

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@
2727
},
2828
"files.insertFinalNewline": true,
2929
"conventionalCommits.emojiFormat": "emoji",
30-
"conventionalCommits.promptScopes": false
30+
"conventionalCommits.promptScopes": false,
31+
"typos.config": ".config/typos.toml"
3132
}

justfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ 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/* template/.config/
3132
mkdir -p template/tools
3233
cp tools/get-contributors.sh template/tools/
3334
cp .github/pull_request_template.md template/.github/
3435

3536
# Check for spelling errors in files
3637
check-spelling:
37-
uvx typos
38+
uvx typos --config .config/typos.toml
3839

3940
# Check that URLs work
4041
check-urls:
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: `-`

0 commit comments

Comments
 (0)