|
2 | 2 |
|
3 | 3 | [](https://github.com/ahcodedev/python-ds-algorithms/actions/workflows/python.yml) |
4 | 4 | [](https://github.com/ahcodedev/python-ds-algorithms/actions/workflows/security.yml) |
5 | | -[](https://github.com/gitleaks/gitleaks) |
| 5 | +[](https://github.com/betterleaks/betterleaks) |
| 6 | +[](https://zizmor.sh/) |
6 | 7 |
|
7 | 8 | Various Data Structures and Algorithm Solutions in Python (3.x). Succinct Python one-liners are avoided in most solutions |
8 | 9 | to prevent obscuring the function and logic of the algorithms / data-structures. |
@@ -52,24 +53,28 @@ manage project configuration and commands |
52 | 53 |
|
53 | 54 | * `just setup` - install Homebrew tools from the `Brewfile` and sync the project |
54 | 55 | * `just sync` - sync project dependencies (all groups) |
55 | | -* `just lint` - type check, lint, format, spellcheck, and lint workflows (actionlint) (applies fixes) |
56 | | -* `just ci-lint` - run the same checks without modifying files (used in CI) |
| 56 | +* `just lint` - type check, lint, format, spell check (typos), and lint workflows (actionlint), YAML (yamllint), |
| 57 | + and JSON (jq) (applies fixes) |
| 58 | +* `just ci-lint` - run the same checks without modifying files, except spell check (used in CI) |
| 59 | +* `just spellcheck` - check spelling with typos |
57 | 60 | * `just test` - run unit tests |
| 61 | +* `just coverage` - run unit tests with coverage (fails under 98%) |
58 | 62 | * `just audit` - check dependencies for known vulnerabilities with pip-audit |
59 | 63 | * `just markdownlint` - lint Markdown files with markdownlint-cli2 |
60 | 64 | * `just prek` - run pre-commit hooks via prek |
61 | | -* `just git-leaks` - scan staged changes for secrets with gitleaks |
| 65 | +* `just betterleaks` - scan staged changes for secrets with betterleaks |
62 | 66 | * `just zizmor` - audit GitHub Actions workflows for security issues |
| 67 | +* `just update-template` - pull in the latest changes from the Copier template |
63 | 68 | * `uv add {package}` - install a dependency |
64 | 69 |
|
65 | 70 | ## CI and Security |
66 | 71 |
|
67 | | -| Workflow | Runs on | Purpose | |
68 | | -| --------------------- | ----------------------- | -------------------------------------------- | |
69 | | -| `python.yml` | push / PR to `main` | lint, unit tests, markdownlint | |
70 | | -| `security.yml` | push to `main`, all PRs | zizmor, gitleaks, pip-audit dependency audit | |
| 72 | +| Workflow | Runs on | Purpose | |
| 73 | +| --------------------- | ----------------------- | ------------------------------------------------------- | |
| 74 | +| `python.yml` | push / PR to `main` | lint, spell check, unit tests, markdownlint | |
| 75 | +| `security.yml` | push to `main`, all PRs | zizmor, betterleaks, pip-audit dependency audit | |
71 | 76 |
|
72 | 77 | * GitHub Actions are pinned to full commit SHAs, with the version in a trailing comment |
73 | | -* Dependabot (`.github/dependabot.yml`) checks monthly for updates to GitHub Actions, Python |
| 78 | +* Dependabot (`.github/dependabot.yml`) checks weekly for updates to GitHub Actions, Python |
74 | 79 | dependencies, the dev container image, and dev container features. New releases wait 7 days |
75 | 80 | before an update is proposed. Dependabot PRs get the `dependencies` label |
0 commit comments