Fix trunk checker fail#145
Conversation
✅ Deploy Preview for bemanproject ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
433ecf5 to
9245f2f
Compare
9245f2f to
900095f
Compare
Also deleted package-lock.json which was leftover from a npm run
900095f to
3ee8f5d
Compare
And upgrade of two packages
3ee8f5d to
e34834c
Compare
|
We have victory, finally, the website checks are green! |
Accidental; were supposed for bemanproject#145
Thanks @AndreiDurlea ! This is a good direction and initiative. Thanks! However, some pieces of this PR cannot be merged. We need to distinguish between manual generated files and autogenerated files. I'm working on docs import automation from TLDR: I will tag some files that should be excluded from the checker, not fixed. They are imported from other repos, and we should keep it as it is, otherwise automation cannot be achieved. Basically we need to first solved #126, and then update your PR to only fix files that are not imported. |
There was a problem hiding this comment.
Did a full pass- thanks @AndreiDurlea - lots of good things here, and a few which can be improved. Please check the large comment here: https://github.com/bemanproject/website/pull/145/changes#r3012387061. Let's first check if we can resolve this comment as proposed. Successful path will simplify this PR!
There was a problem hiding this comment.
We should keep your changes in .github / .trunk directories.
There was a problem hiding this comment.
Changes in this files are also OK to keep.
There was a problem hiding this comment.
This file is manually created only in website! We can do changes here, ofc.
| slug: libraries | ||
| --- | ||
|
|
||
| # Beman Libraries |
There was a problem hiding this comment.
Why do we remove the title? We must keep it.
There was a problem hiding this comment.
Can we remove this file? I think it's a leftover from used template.
There was a problem hiding this comment.
P1: First of all, we should not manually change images in docs/images and images/ and static/ directories for 2 reasons.
- We want to be an identical copy of what we have in
beman/& other repos. If we need to fix them, we should first fix them in a new PR, and then import them here. That's the flow! The website content is always a mirror of the latest status of the beman libraries/beman repo. - If you do this change here, and do not do 1 first, it's pointless to sync the next run of
sync-docs.py(manual or soon automated on CI), which will import the images from other repos.
============================================================================
P2: Similar to all md files in https://github.com/bemanproject/website/tree/main/docs, which are automatically imported by the script.
============================================================================
My request here is to exclude from linter files in docs/*.md, docs/images/, images/, static/docs/images, static/images/, static/img/.
Then we can drop the changes into the current PR across all the mentioned directories and still get the CI trunk check green. This would be the desired solution for both #126 and #118.
We can then discuss and update docs and images outside this repo, and here just re-import them.
There was a problem hiding this comment.
Alright, makes sense, will be doing this
29b6a88 to
28fefd8
Compare
82116f8 to
b310687
Compare
b310687 to
9c4c88a
Compare
Also added explainers
fa91977 to
5f73d66
Compare
|
@neatudarius I finished applying the requested changes. Turns out running
|
neatudarius
left a comment
There was a problem hiding this comment.
LGTM!
Good to see this lint job passing
| @@ -17,6 +17,17 @@ runtimes: | |||
| - python@3.10.8 | |||
| # This is the section where you manage your linters. (https://docs.trunk.io/check/configuration) | |||
| lint: | |||


#118
TL;DR
Resolved a plethora of warnings and errors while also upgrading trunk to its latest version in the process.
Summary
check-mode: allas that has been deprecated