Skip to content

Commit 8625e3a

Browse files
Expand prettier format conditions
1 parent a3de9c7 commit 8625e3a

9 files changed

+46
-35
lines changed

.all-contributorsrc

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"commitConvention": "angular",
33
"contributorsPerLine": 7,
4-
"files": [
5-
"CONTRIBUTORS.md",
6-
"README.md"
7-
],
4+
"files": ["CONTRIBUTORS.md", "README.md"],
85
"projectName": "copier-pipeline",
96
"projectOwner": "softboiler",
107
"commitType": "docs",
@@ -14,9 +11,7 @@
1411
"name": "Blake Naccarato",
1512
"avatar_url": "https://avatars.githubusercontent.com/u/20692450?v=4",
1613
"profile": "https://www.blakenaccarato.com/",
17-
"contributions": [
18-
"code"
19-
]
14+
"contributions": ["code"]
2015
}
2116
]
2217
}

.copier-answers.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2-
_commit: 2024.1.1-284-g5819542
2+
_commit: 2024.1.1-288-ga3de9c7
33
_src_path: gh:softboiler/copier-pipeline
44
actions_runner: ubuntu-22.04
55
github_repo_name: copier-pipeline

.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ exclude: |
22
(?x)^(
33
\.copier-answers\.yml
44
|changelog/towncrier_template\.md\.jinja
5+
|template/{{ _copier_conf\.answers_file }}\.jinja
56
)$
67
ci:
78
skip:

.prettierignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# ? Ignore hidden paths
2-
.*
31
# ? Prettier clobbers Myst-specific syntax in notebooks
42
*.py
53
*.ipynb

.renovaterc.json

+29-17
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@
2020
"pep621",
2121
"pre-commit"
2222
],
23-
"github-actions": {
24-
"fileMatch": ["(^|/)\\.github/workflows/[^/]+$"]
25-
},
26-
"pep621": {
27-
"fileMatch": ["(^|/)pyproject\\.toml[^/]*$"],
28-
"rangeStrategy": "bump"
29-
},
30-
"ignoreDeps": ["towncrier"],
3123
"customManagers": [
3224
{
3325
"description": "uv",
@@ -41,7 +33,9 @@
4133
"description": "uv-gha",
4234
"customType": "regex",
4335
"fileMatch": ["(^|/)\\.github/workflows/[^/]*$"],
44-
"matchStrings": ["- uses: \"astral-sh/setup-uv@.+\\n\\s+with:\\n\\s+version:\\s\"(?<currentValue>.+)\""],
36+
"matchStrings": [
37+
"- uses: \"astral-sh/setup-uv@.+\\n\\s+with:\\n\\s+version:\\s\"(?<currentValue>.+)\""
38+
],
4539
"datasourceTemplate": "github-releases",
4640
"depNameTemplate": "astral-sh/uv"
4741
},
@@ -52,20 +46,38 @@
5246
"matchStrings": ["(?<currentValue>[^\\n]+)"],
5347
"datasourceTemplate": "github-releases",
5448
"depNameTemplate": "microsoft/pylance-release"
55-
},
56-
{
57-
"description": "copier",
58-
"customType": "regex",
59-
"fileMatch": ["(^|/)\\.copier-version[^/]*$"],
60-
"matchStrings": ["(?<currentValue>[^\\n]+)"],
61-
"datasourceTemplate": "pypi",
62-
"depNameTemplate": "copier"
6349
}
6450
],
6551
"packageRules": [
6652
{
6753
"groupName": "all",
6854
"matchPackageNames": ["*"]
55+
},
56+
{
57+
"groupName": "ruff",
58+
"matchPackageNames": ["/^.*ruff.*$/"]
59+
},
60+
{
61+
"groupName": "pylance",
62+
"matchPackageNames": ["microsoft/pylance-release"]
63+
},
64+
{
65+
"groupName": "tests",
66+
"matchPackageNames": ["/^.*pytest.*$/"]
67+
},
68+
{
69+
"groupName": "docs",
70+
"matchPackageNames": [
71+
"docutils",
72+
"linkify-it-py",
73+
"numpydoc",
74+
"/^.*sphinx.*$/",
75+
"/^.*myst.*$/"
76+
]
77+
},
78+
{
79+
"groupName": "devcontainer",
80+
"matchManagers": ["devcontainer"]
6981
}
7082
]
7183
}

.vscode/settings.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"search.exclude": {
2424
//? Don't search in submodules or locks by default
2525
"typings": true,
26-
"uv.lock": true,
26+
"uv.lock": true
2727
},
2828
//! File nesting
2929
"explorer.sortOrder": "foldersNestsFiles",
@@ -42,7 +42,7 @@
4242
"*ipython-input*": "python",
4343
"*requirements*.in": "pip-requirements",
4444
"pyrightconfig.json": "jsonc",
45-
"uv.lock": "toml",
45+
"uv.lock": "toml"
4646
},
4747
//! Git
4848
"git.allowNoVerifyCommit": true,

template/.prettierignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# ? Ignore hidden paths
2-
.*
31
# ? Prettier clobbers Myst-specific syntax in notebooks
42
*.py
53
*.ipynb

template/.renovaterc.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
"description": "uv-gha",
3535
"customType": "regex",
3636
"fileMatch": ["(^|/)\\.github/workflows/[^/]*$"],
37-
"matchStrings": ["- uses: \"astral-sh/setup-uv@.+\\n\\s+with:\\n\\s+version:\\s\"(?<currentValue>.+)\""],
37+
"matchStrings": [
38+
"- uses: \"astral-sh/setup-uv@.+\\n\\s+with:\\n\\s+version:\\s\"(?<currentValue>.+)\""
39+
],
3840
"datasourceTemplate": "github-releases",
3941
"depNameTemplate": "astral-sh/uv"
4042
},
@@ -66,7 +68,12 @@
6668
},
6769
{
6870
"groupName": "docs",
69-
"matchPackageNames": ["docutils", "numpydoc", "/^.*sphinx.*$/", "/^.*myst.*$/"]
71+
"matchPackageNames": [
72+
"docutils",
73+
"numpydoc",
74+
"/^.*sphinx.*$/",
75+
"/^.*myst.*$/"
76+
]
7077
},
7178
{
7279
"groupName": "devcontainer",

template/.vscode/settings.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"search.exclude": {
1919
//? Don't search in submodules or locks by default
2020
"typings": true,
21-
"uv.lock": true,
21+
"uv.lock": true
2222
},
2323
//! File nesting
2424
"explorer.sortOrder": "foldersNestsFiles",
@@ -37,7 +37,7 @@
3737
"*ipython-input*": "python",
3838
"*requirements*.in": "pip-requirements",
3939
"pyrightconfig.json": "jsonc",
40-
"uv.lock": "toml",
40+
"uv.lock": "toml"
4141
},
4242
//! Git
4343
"git.allowNoVerifyCommit": true,

0 commit comments

Comments
 (0)