Skip to content

Commit b2d9a56

Browse files
authored
docs: Add an initial README outlining instructions for project setup and linting tasks. (#10)
1 parent 775d614 commit b2d9a56

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

taskfile.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ vars:
99

1010
tasks:
1111
clean:
12+
desc: "Removes the project build directory."
1213
cmds:
1314
- "rm -rf '{{.G_BUILD_DIR}}'"
1415

taskfiles/lint-yaml.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ tasks:
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}}"

taskfiles/lint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ vars:
1111

1212
tasks:
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

0 commit comments

Comments
 (0)