Skip to content

Commit 85bc639

Browse files
authored
fix: Trunk's mypy incremental cache issue (#34)
* chore: Trunk configs * fix: Trunk's mypy environment missing deps * chore: Add comment * chore: Utilize system linters for some * chore: Fix workflow permissions * refactor: Move trunk check to separate job * chore: Add .vale.ini config * feat: Cache Trunk * feat: Update trunk workflows * feat: Enable workflow_dispatch for cache-trunk * feat: Trunk check_mode all for daily check * debug: Test cron * debug: Remove test cron * debug: Remove test cron * fix: Trunk's mypy incremental cache issue
1 parent be54be0 commit 85bc639

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ poetry.toml
404404
.ruff_cache/
405405

406406
# LSP config files
407-
pyrightconfig.json
407+
# pyrightconfig.json
408408

409409
### VisualStudioCode ###
410410
.vscode/*

.trunk/trunk.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ cli:
44
plugins:
55
sources:
66
- id: trunk
7-
ref: v1.6.7
8-
uri: https://github.com/trunk-io/plugins
7+
ref: 38234efbcb43bd30fa4d48b206f8fb6686925595
8+
uri: https://github.com/NextGenContributions/plugins
99
runtimes:
1010
enabled:
1111
- python@3.10.8
@@ -15,6 +15,13 @@ runtimes:
1515
- type: python
1616
system_version: allowed
1717
lint:
18+
definitions:
19+
- name: mypy
20+
commands:
21+
- name: lint
22+
run:
23+
mypy --no-incremental --ignore-missing-imports --follow-imports=silent --show-error-codes
24+
--show-column-numbers ${target}
1825
enabled:
1926
- actionlint@1.7.7
2027
- bandit@1.8.3
@@ -34,6 +41,7 @@ lint:
3441
- prettier@3.5.3
3542
- pylint
3643
- pyright
44+
- basedpyright
3745
- renovate@39.187.0
3846
- ruff
3947
- shellcheck@0.10.0

0 commit comments

Comments
 (0)