File tree Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ ystdlib-cpp
2+ ===================================
3+ An open-source C++ library developed and used at YScope.
4+
5+ # Contributing
6+ Follow the steps below to develop and contribute to the project.
7+
8+ ## Requirements
9+ * Python 3.10 or higher
10+ * [ Task] 3.40.0 or higher
11+
12+ ## Set up
13+ Initialize and update submodules:
14+ ``` shell
15+ git submodule update --init --recursive
16+ ```
17+
18+ ## Linting
19+ Before submitting a pull request, ensure you’ve run the linting commands below and have fixed all
20+ violations and suppressed all warnings.
21+
22+ To run all linting checks:
23+ ``` shell
24+ task lint:check
25+ ```
26+
27+ To run all linting checks AND fix some violations:
28+ ``` shell
29+ task lint:fix
30+ ```
31+
32+ To see how to run a subset of linters for a specific file type:
33+ ``` shell
34+ task -a
35+ ```
36+ Look for all tasks under the ` lint ` namespace (identified by the ` lint: ` prefix).
37+
38+ [ Task ] : https://taskfile.dev
Original file line number Diff line number Diff line change 99
1010tasks :
1111 clean :
12+ desc : " Removes the project build directory."
1213 cmds :
1314 - " rm -rf '{{.G_BUILD_DIR}}'"
1415
Original file line number Diff line number Diff line change 55 aliases :
66 - " yaml-check"
77 - " yaml-fix"
8+ desc : " Runs the YAML linters. Only checks for warnings and violations."
89 deps :
910 - " venv"
1011 dir : " {{.ROOT_DIR}}"
Original file line number Diff line number Diff line change @@ -11,10 +11,12 @@ vars:
1111
1212tasks :
1313 check :
14+ desc : " Runs the full suite of linters to identify warnings and violations."
1415 cmds :
1516 - task : " yaml-check"
1617
1718 fix :
19+ desc : " Runs the full suite of linters and fixes some violations."
1820 cmds :
1921 - task : " yaml-fix"
2022
You can’t perform that action at this time.
0 commit comments