File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8181
8282 # You can override MegaLinter flavor used to have faster performances
8383 # More info at https://megalinter.io/latest/flavors/
84- uses : oxsecurity/megalinter@v7
84+ uses : oxsecurity/megalinter@1fc052d03c7a43c78fe0fee19c9d648b749e0c01
8585
8686 id : ml
8787
@@ -120,7 +120,7 @@ jobs:
120120 # Create pull request if applicable
121121 # (for now works only on PR from same repository, not from forks)
122122 - name : Create Pull Request with applied fixes
123- uses : peter-evans/create-pull-request@v6
123+ uses : peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
124124 id : cpr
125125 if : >-
126126 steps.ml.outputs.has_updated_sources == 1 &&
@@ -176,7 +176,7 @@ jobs:
176176 run : sudo chown -Rc $UID .git/
177177
178178 - name : Commit and push applied linter fixes
179- uses : stefanzweifel/git-auto-commit-action@v5
179+ uses : stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842
180180 if : >-
181181 steps.ml.outputs.has_updated_sources == 1 &&
182182 (
Original file line number Diff line number Diff line change @@ -159,4 +159,12 @@ cython_debug/
159159# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
160160# and can be added to the global gitignore or merged into this file. For a more nuclear
161161# option (not recommended) you can uncomment the following to ignore the entire idea folder.
162- # .idea/
162+ .idea /
163+
164+ # Ruff
165+ .ruff_cache /
166+
167+ megalinter-reports /
168+
169+ # DS_Store files
170+ .DS_Store
Original file line number Diff line number Diff line change 1+ { "MD013": false }
Original file line number Diff line number Diff line change 11# GitHub Repository Archive Script
2- A Python utility used to archive old, unused GitHub repositories from an organisation.
2+
3+ A Python utility used to archive old, unused GitHub repositories from an organisation.
4+
5+ ## Makefile
6+
7+ This repository makes use of a Makefile to execute common commands. To view all commands, execute ` make all ` .
8+
9+ ``` bash
10+ make all
11+ ```
12+
13+ ## Linting and Testing
14+
15+ ### GitHub Actions
16+
17+ This file contains 2 GitHub Actions to automatically lint and test code on pull request creation and pushing to the main branch.
18+
19+ - [ ` ci.yml ` ] ( ./.github/workflows/ci.yml )
20+ - [ ` mega-linter.yml ` ] ( ./.github/workflows/mega-linter.yml )
21+
22+ ### Running Tests Locally
23+
24+ To lint and test locally, you need to:
25+
26+ 1 . Install dev dependencies
27+
28+ ``` bash
29+ make install-dev
30+ ```
31+
32+ 2. Run all the linters
33+
34+ ` ` ` bash
35+ make lint
36+ ` ` `
37+
38+ 3. Run all the tests
39+
40+ ` ` ` bash
41+ make test
42+ ` ` `
43+
44+ 4. Run Megalinter
45+
46+ ` ` ` bash
47+ make megalint
48+ ` ` `
49+
50+ ** Please Note:** This requires a docker daemon to be running. We recommend using [Colima](https://github.com/abiosoft/colima) if using MacOS or Linux. A docker daemon is required because Megalinter is ran from a docker image.
You can’t perform that action at this time.
0 commit comments