Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: 0.11.0
_commit: 0.12.0
_src_path: gh:quickplates/meta
accountname: quickplates
description: Helm charts template ⛵
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
}
}
},
"python.analysis.nodeExecutable": "auto",
"remote.autoForwardPorts": false
}
}
Expand Down
19 changes: 18 additions & 1 deletion .trunk/configs/ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,27 @@ ignore = [
"Q003",
"W191",

# Disable some docstring rules that are too strict
# Disable rules that are too strict
"ANN401",
"ARG",
"BLE",
"D100",
"D104",
"D105",
"D106",
"D107",
"S104",
]

[lint.extend-per-file-ignores]
# Disable some rules in tests
"tests/**" = [
# Disable irrelevant rules
"S",
]

[lint.isort]
known-first-party = [
# Treat tests as a first-party module
"tests",
]
21 changes: 14 additions & 7 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ runtimes:
enabled:
# Needed for gitleaks, shfmt
- go@1.25.0
# Needed for markdownlint, prettier
# Needed for markdownlint, prettier, pyright
- node@22.20.0
# Needed for ruff, yamllint
- python@3.13.3
Expand Down Expand Up @@ -57,11 +57,13 @@ lint:
check
path:${target}
success_codes: [0, 1]
# Enable Ruff formatter
- name: ruff
commands:
- name: format
enabled: true
# Modify existing pyright definition
- name: pyright
environment:
- name: PATH
list:
# Add Python to Path
- ${env.PYRIGHT_PYTHON}/bin
enabled:
# GitHub Actions linting
- actionlint@1.7.8
Expand All @@ -80,8 +82,13 @@ lint:
packages:
# JSON sorting
- prettier-plugin-sort-json@4.1.1
# Python type checking
- pyright@1.1.407
# Python formatting and linting
- ruff@0.14.5
- ruff@0.14.5:
commands:
- lint
- format
# Shell linting
- shellcheck@0.11.0
# Shell formatting
Expand Down
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
"files.associations": {
"**/src/**": "plaintext"
},
"git.autoRepositoryDetection": false
"git.autoRepositoryDetection": false,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.diagnosticsSource": "Pyright",
"python.analysis.pyrightVersion": "1.1.407",
"python.testing.pytestEnabled": true
}
10 changes: 7 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
task = pkgs.go-task;
coreutils = pkgs.coreutils;
trunk = pkgs.trunk-io;
pytest = pkgs.python313.withPackages (ps: [ps.copier ps.plumbum ps.pytest]);
copier = pkgs.python313.withPackages (ps: [ps.copier]);
pytest = pkgs.python313.withPackages (ps: [ps.copier ps.pytest ps.plumbum]);
in {
# Override pkgs argument
_module.args.pkgs = import inputs.nixpkgs {
Expand Down Expand Up @@ -70,10 +70,12 @@
task
coreutils
trunk
copier
pytest
copier
];

PYRIGHT_PYTHON = pytest;

shellHook = ''
export TMPDIR=/tmp
'';
Expand Down Expand Up @@ -102,8 +104,11 @@
task
coreutils
trunk
pytest
];

PYRIGHT_PYTHON = pytest;

shellHook = ''
export TMPDIR=/tmp
'';
Expand All @@ -116,7 +121,6 @@
nix
task
coreutils
copier
pytest
];

Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[tool.pyright]
# Analyze code only in these directories
include = ["tests"]

# Python version and platform to target
pythonPlatform = "All"
pythonVersion = "3.13"

# Disable parsing dependencies for type information
useLibraryCodeForTypes = false
Loading