Skip to content

Commit 353ca40

Browse files
authored
Fetched template changes (#6)
1 parent ef92dd2 commit 353ca40

File tree

11 files changed

+619
-445
lines changed

11 files changed

+619
-445
lines changed

.copier-answers.yaml

Lines changed: 1 addition & 1 deletion
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: 0.11.0
2+
_commit: 0.12.0
33
_src_path: gh:quickplates/meta
44
accountname: quickplates
55
description: Helm charts template ⛵

.devcontainer/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
}
130130
}
131131
},
132+
"python.analysis.nodeExecutable": "auto",
132133
"remote.autoForwardPorts": false
133134
}
134135
}

.trunk/configs/ruff.toml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,27 @@ ignore = [
2323
"Q003",
2424
"W191",
2525

26-
# Disable some docstring rules that are too strict
26+
# Disable rules that are too strict
27+
"ANN401",
28+
"ARG",
29+
"BLE",
2730
"D100",
2831
"D104",
2932
"D105",
3033
"D106",
3134
"D107",
35+
"S104",
36+
]
37+
38+
[lint.extend-per-file-ignores]
39+
# Disable some rules in tests
40+
"tests/**" = [
41+
# Disable irrelevant rules
42+
"S",
43+
]
44+
45+
[lint.isort]
46+
known-first-party = [
47+
# Treat tests as a first-party module
48+
"tests",
3249
]

.trunk/trunk.yaml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ runtimes:
1010
enabled:
1111
# Needed for gitleaks, shfmt
1212
13-
# Needed for markdownlint, prettier
13+
# Needed for markdownlint, prettier, pyright
1414
1515
# Needed for ruff, yamllint
1616
@@ -57,11 +57,13 @@ lint:
5757
check
5858
path:${target}
5959
success_codes: [0, 1]
60-
# Enable Ruff formatter
61-
- name: ruff
62-
commands:
63-
- name: format
64-
enabled: true
60+
# Modify existing pyright definition
61+
- name: pyright
62+
environment:
63+
- name: PATH
64+
list:
65+
# Add Python to Path
66+
- ${env.PYRIGHT_PYTHON}/bin
6567
enabled:
6668
# GitHub Actions linting
6769
@@ -80,8 +82,13 @@ lint:
8082
packages:
8183
# JSON sorting
8284
85+
# Python type checking
86+
8387
# Python formatting and linting
84-
88+
89+
commands:
90+
- lint
91+
- format
8592
# Shell linting
8693
8794
# Shell formatting

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@
22
"files.associations": {
33
"**/src/**": "plaintext"
44
},
5-
"git.autoRepositoryDetection": false
5+
"git.autoRepositoryDetection": false,
6+
"python.analysis.diagnosticMode": "workspace",
7+
"python.analysis.diagnosticsSource": "Pyright",
8+
"python.analysis.pyrightVersion": "1.1.407",
9+
"python.testing.pytestEnabled": true
610
}

flake.nix

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
task = pkgs.go-task;
4141
coreutils = pkgs.coreutils;
4242
trunk = pkgs.trunk-io;
43+
pytest = pkgs.python313.withPackages (ps: [ps.copier ps.plumbum ps.pytest]);
4344
copier = pkgs.python313.withPackages (ps: [ps.copier]);
44-
pytest = pkgs.python313.withPackages (ps: [ps.copier ps.pytest ps.plumbum]);
4545
in {
4646
# Override pkgs argument
4747
_module.args.pkgs = import inputs.nixpkgs {
@@ -70,10 +70,12 @@
7070
task
7171
coreutils
7272
trunk
73-
copier
7473
pytest
74+
copier
7575
];
7676

77+
PYRIGHT_PYTHON = pytest;
78+
7779
shellHook = ''
7880
export TMPDIR=/tmp
7981
'';
@@ -102,8 +104,11 @@
102104
task
103105
coreutils
104106
trunk
107+
pytest
105108
];
106109

110+
PYRIGHT_PYTHON = pytest;
111+
107112
shellHook = ''
108113
export TMPDIR=/tmp
109114
'';
@@ -116,7 +121,6 @@
116121
nix
117122
task
118123
coreutils
119-
copier
120124
pytest
121125
];
122126

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[tool.pyright]
2+
# Analyze code only in these directories
3+
include = ["tests"]
4+
5+
# Python version and platform to target
6+
pythonPlatform = "All"
7+
pythonVersion = "3.13"
8+
9+
# Disable parsing dependencies for type information
10+
useLibraryCodeForTypes = false

0 commit comments

Comments
 (0)