Skip to content

Commit d363407

Browse files
committed
style: prettier for local repo
explained discrepancy between #89 and JonasPammer/cookiecutter-pypackage-test#80 also wanted to add yamllint but couldn't manage to add same ignore directory as i did for prettierignore. when adding that it just straight out ignores everything. duh
1 parent c9ae447 commit d363407

File tree

5 files changed

+37
-49
lines changed

5 files changed

+37
-49
lines changed

.github/cookiecutter-example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ default_context:
1010
dockerhub_username: "JonasPammer"
1111
pypi_username: "jonaspammer"
1212
command_line_interface: "Click"
13-
use_pytest: "y"
13+
use_pytest: "y"

.github/renovate.json5

Lines changed: 30 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,46 @@
11
{
2-
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3-
ignorePaths: [
4-
'{{ cookiecutter.project_slug }}/',
5-
],
2+
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3+
ignorePaths: ["{{ cookiecutter.project_slug }}/"],
64
extends: [
7-
':dependencyDashboard',
8-
':semanticPrefixFixDepsChoreOthers',
9-
':ignoreModulesAndTests',
10-
':prHourlyLimit2',
11-
':prConcurrentLimit10',
12-
'group:monorepos',
13-
'group:recommended',
14-
'workarounds:all',
15-
'schedule:monthly',
16-
':prImmediately',
17-
':rebaseStalePrs',
18-
':semanticCommits',
19-
':semanticCommitScope(deps)',
20-
'docker:enableMajor',
21-
'docker:pinDigests',
22-
'helpers:pinGitHubActionDigests',
23-
':gitSignOff',
24-
':renovatePrefix',
5+
":dependencyDashboard",
6+
":semanticPrefixFixDepsChoreOthers",
7+
":ignoreModulesAndTests",
8+
":prHourlyLimit2",
9+
":prConcurrentLimit10",
10+
"group:monorepos",
11+
"group:recommended",
12+
"workarounds:all",
13+
"schedule:monthly",
14+
":prImmediately",
15+
":rebaseStalePrs",
16+
":semanticCommits",
17+
":semanticCommitScope(deps)",
18+
"docker:enableMajor",
19+
"docker:pinDigests",
20+
"helpers:pinGitHubActionDigests",
21+
":gitSignOff",
22+
":renovatePrefix",
2523
],
2624
configMigration: true,
2725
lockFileMaintenance: {
2826
enabled: true,
2927
},
30-
minimumReleaseAge: '7 days',
31-
commitMessageTopic: '{{manager}} dependency {{depName}}',
32-
labels: [
33-
'kind/dependencies',
34-
],
28+
minimumReleaseAge: "7 days",
29+
commitMessageTopic: "{{manager}} dependency {{depName}}",
30+
labels: ["kind/dependencies"],
3531
packageRules: [
3632
{
37-
matchPackagePatterns: [
38-
'eslint',
39-
],
40-
labels: [
41-
'kind/dependencies',
42-
'priority/low',
43-
],
33+
matchPackagePatterns: ["eslint"],
34+
labels: ["kind/dependencies", "priority/low"],
4435
},
4536
{
46-
matchDepTypes: [
47-
'action',
48-
],
49-
labels: [
50-
'kind/dependencies',
51-
'kind/infrastructure',
52-
],
37+
matchDepTypes: ["action"],
38+
labels: ["kind/dependencies", "kind/infrastructure"],
5339
},
5440
],
5541
vulnerabilityAlerts: {
56-
labels: [
57-
'kind/dependencies',
58-
'kind/security',
59-
],
42+
labels: ["kind/dependencies", "kind/security"],
6043
},
61-
rebaseLabel: 'renovate/rebase',
62-
stopUpdatingLabel: 'renovate/stop-updating',
44+
rebaseLabel: "renovate/rebase",
45+
stopUpdatingLabel: "renovate/stop-updating",
6346
}

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ jobs:
222222
run: .tox/pip${{ matrix.pip-version }}/${{ matrix.os == 'Windows' && 'Scripts' || 'bin' }}/coverage xml -o coverage.xml
223223
working-directory: ./some-package
224224

225-
226225
## TEST SETUPTOOLS BUILD ##
227226
# as per .github/workflows/release-to-pypi.yml
228227
- name: install build dependencies of generated project

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ repos:
2828
- id: detect-secrets
2929
exclude: package.lock.json
3030

31+
- repo: https://github.com/pre-commit/mirrors-prettier
32+
rev: v2.6.2
33+
hooks:
34+
- id: prettier
3135

3236
default_language_version:
3337
python: python3

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# has own prettier, which is also run as part of .github/workflows/ci.yml
2+
{{ cookiecutter.project_slug }}

0 commit comments

Comments
 (0)