Skip to content

Commit b24f1bb

Browse files
committed
pre-commit: Add zizmor and replace prettier with rumdl
1 parent a6ca8ea commit b24f1bb

30 files changed

Lines changed: 319 additions & 226 deletions

File tree

.devcontainer/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ This is **Devcontainer** configuration to provide a consistent development envir
1313

1414
## Usage
1515

16-
1. Install [**Docker** ](https://www.docker.com/get-started/) and [**Visual Studio Code**](https://code.visualstudio.com/)
16+
1. Install [**Docker**](https://www.docker.com/get-started/) and [**Visual Studio Code**](https://code.visualstudio.com/)
1717
2. Install the **Remote - Containers** extension in VS Code
1818

1919
- Do `CTRL+P`, paste this command and press `Enter`
2020

2121
```shell
2222
ext install ms-vscode-remote.remote-containers
2323
```
24+
2425
3. Open this repository in VS Code
2526
4. When prompted, click **"Reopen in Container"**
2627
5. Wait for the environment to build and initialize

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ updates:
66
directory: "/"
77
schedule:
88
interval: "daily"
9+
cooldown:
10+
default-days: 7

.github/pull_request_template.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
### Describe your change:
2-
3-
1+
### Describe your change
42

53
* [ ] Add an algorithm?
64
* [ ] Fix a bug or typo in an existing algorithm?
75
* [ ] Add or change doctests? -- Note: Please avoid changing both code and tests in a single pull request.
86
* [ ] Documentation change?
97

10-
### Checklist:
8+
### Checklist
9+
1110
* [ ] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md).
1211
* [ ] This pull request is all my own work -- I have not plagiarized.
1312
* [ ] I know that pull requests will not be merged if they fail the automated tests.
14-
* [ ] This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
13+
* [ ] This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
1514
* [ ] All new Python files are placed inside an existing directory.
1615
* [ ] All filenames are in all lowercase characters with no spaces or dashes.
1716
* [ ] All functions and variable names follow Python naming conventions.

.github/skills/code-review/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ flagged. Also, paste the concrete command you ran.
6969

7070
Emit exactly these headings so reviews are comparable and easy to automate:
7171

72-
```
72+
```text
7373
### Is this an algorithm? — <yes/no + one-line why>
7474
### Duplicate / prior-art check — <#NNNN | none found>
7575
### Coding style — <pass | issues: …>

.github/skills/new-pull-request/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ clear, kind, tested, type-hinted, mergeable contribution.
1010
Make sure that the local `master` branch is synced with `upstream/master` before
1111
creating a new pull request.
1212

13-
Create a new clearly named branch for the pull request. Pull request changes must
13+
Create a new clearly named branch for the pull request. Pull request changes must
1414
not be made or submitted on the `master` branch.
1515

1616
Never hand-edit or revert the `uv.lock` file. If you add a legitimate
@@ -19,7 +19,7 @@ hand. A hand-modified `uv.lock` makes the `algorithms-keeper` bot close the pull
1919
request as invalid, and even a repo maintainer cannot undo that.
2020

2121
Always check at least one Markdown checkbox in the pull request description (the "Describe your change" section), or the
22-
`algorithms-keeper` bot will close the pull request as invalid. Any repo maintainer can undo this if you @mention them on the closed pull request.
22+
`algorithms-keeper` bot will close the pull request as invalid. Any repo maintainer can undo this if you @mention them on the closed pull request.
2323

2424
### 1. Before contributing / Is this an algorithm?
2525

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v7
13+
with:
14+
persist-credentials: false
1315
- uses: astral-sh/setup-uv@v7
1416
with:
1517
enable-cache: true

.github/workflows/devcontainer_ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v7
18+
with:
19+
persist-credentials: false
1820
- uses: devcontainers/ci@v0.3
1921
with:
2022
push: never

.github/workflows/directory_writer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
- uses: actions/checkout@v7
1010
with:
1111
fetch-depth: 0
12+
persist-credentials: false
1213
- uses: actions/setup-python@v7
1314
with:
1415
python-version-file: .python-version

.github/workflows/hacktoberfest_prep.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- uses: actions/checkout@v7
32+
with:
33+
persist-credentials: false
3234
- uses: actions/setup-python@v7
3335
with:
3436
python-version-file: .python-version
@@ -96,4 +98,6 @@ jobs:
9698
echo "Open tracker PR already exists; force-push updated it in place."
9799
fi
98100
- name: Propagate the script's exit code
99-
run: exit ${{ steps.update.outputs.exit_code }}
101+
env:
102+
UPDATE_EXIT_CODE: ${{ steps.update.outputs.exit_code }}
103+
run: exit ${UPDATE_EXIT_CODE}

.github/workflows/project_euler.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v7
18+
with:
19+
persist-credentials: false
1820
- uses: astral-sh/setup-uv@v7
1921
- uses: actions/setup-python@v7
2022
with:
@@ -26,6 +28,8 @@ jobs:
2628
runs-on: ubuntu-latest
2729
steps:
2830
- uses: actions/checkout@v7
31+
with:
32+
persist-credentials: false
2933
- uses: astral-sh/setup-uv@v7
3034
- uses: actions/setup-python@v7
3135
with:

0 commit comments

Comments
 (0)