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
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
ystdlib-cpp
===================================
An open-source C++ library developed and used at YScope.

# Contributing
Follow the steps below to develop and contribute to the project.

## Requirements
* Python 3.10 or higher
* [Task] 3.40.0 or higher

## Set up
Initialize and update submodules:
```shell
git submodule update --init --recursive
```

## Linting
Before submitting a pull request, ensure you’ve run the linting commands below and have fixed all
violations and suppressed all warnings.

To run all linting checks:
```shell
task lint:check
```

To run all linting checks AND fix some violations:
```shell
task lint:fix
```

To see how to run a subset of linters for a specific file type:
```shell
task -a
```
Look for all tasks under the `lint` namespace (identified by the `lint:` prefix).

[Task]: https://taskfile.dev
1 change: 1 addition & 0 deletions taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ vars:

tasks:
clean:
desc: "Removes the project build directory."
cmds:
- "rm -rf '{{.G_BUILD_DIR}}'"

Expand Down
1 change: 1 addition & 0 deletions taskfiles/lint-yaml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ tasks:
aliases:
- "yaml-check"
- "yaml-fix"
desc: "Runs the YAML linters. Only checks for warnings and violations."
deps:
- "venv"
dir: "{{.ROOT_DIR}}"
Expand Down
2 changes: 2 additions & 0 deletions taskfiles/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ vars:

tasks:
check:
desc: "Runs the full suite of linters to identify warnings and violations."
cmds:
- task: "yaml-check"

fix:
desc: "Runs the full suite of linters and fixes some violations."
cmds:
- task: "yaml-fix"

Expand Down
Loading