Skip to content

Commit 3a82892

Browse files
authored
Upgrade project & dependencies (#730)
* Updates actions/cache version Updates the `actions/cache` GitHub Action to version 4. This ensures compatibility with the latest features and improvements of the action. * Upgrades dependencies and tooling Updates project dependencies and development tools to their latest versions. This change ensures the project benefits from the newest features, security patches, and performance improvements in the dependency ecosystem. It also alignes the project with the latest standards and best practices for development workflows. * fix safety check * Upgrade MegaLinter * Remove unused GITHUB_TOKEN from Dockerfile * [MegaLinter] Apply linters fixes :) * Use python 3.12 for tests --------- Co-authored-by: nvuillam <17500430+nvuillam@users.noreply.github.com>
1 parent 69ce4e6 commit 3a82892

File tree

12 files changed

+386
-251
lines changed

12 files changed

+386
-251
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.9"]
10+
python-version: ["3.12"]
1111

1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
1414
- name: Set up Python ${{ matrix.python-version }}
1515
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
1616
with:
@@ -20,14 +20,14 @@ jobs:
2020
run: make poetry-download
2121

2222
- name: Set up cache
23-
uses: actions/cache@v4.0.1
23+
uses: actions/cache@v4
2424
with:
2525
path: .venv
2626
key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}
2727
- name: Install dependencies
2828
run: |
2929
poetry config virtualenvs.in-project true
30-
poetry install
30+
poetry install --with dev
3131
3232
- name: Run style checks
3333
run: |

.github/workflows/github-dependents-info.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
steps:
3030
# Git Checkout
3131
- name: Checkout Code
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@v6
3333
with:
3434
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
3535
fetch-depth: 0
@@ -54,7 +54,7 @@ jobs:
5454
# Create pull request
5555
- name: Create Pull Request
5656
id: cpr
57-
uses: peter-evans/create-pull-request@v6
57+
uses: peter-evans/create-pull-request@v7
5858
with:
5959
token: ${{ secrets.GITHUB_TOKEN }}
6060
branch: github-dependents-info-auto-update

.github/workflows/mega-linter.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
steps:
2727
# Git Checkout
2828
- name: Checkout Code
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v6
3030
with:
3131
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
3232
fetch-depth: 0 # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to improve performances
@@ -35,11 +35,11 @@ jobs:
3535
- name: MegaLinter
3636
id: ml
3737
# You can override MegaLinter flavor used to have faster performances
38-
# More info at https://megalinter.io/flavors/
38+
# More info at https://megalinter.io/latest/flavors/
3939
uses: oxsecurity/megalinter/flavors/python@beta
4040
env:
4141
# All available variables are described in documentation
42-
# https://megalinter.io/config-file/
42+
# https://megalinter.io/latest/config-file/
4343
VALIDATE_ALL_CODEBASE: true # Set ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} to validate only diff with main branch
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4545
# ADD YOUR CUSTOM ENV VARIABLES HERE TO OVERRIDE VALUES OF .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY
@@ -58,7 +58,7 @@ jobs:
5858
- name: Create Pull Request with applied fixes
5959
id: cpr
6060
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix')
61-
uses: peter-evans/create-pull-request@v6
61+
uses: peter-evans/create-pull-request@v7
6262
with:
6363
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
6464
commit-message: "[MegaLinter] Apply linters automatic fixes"
@@ -76,7 +76,7 @@ jobs:
7676
run: sudo chown -Rc $UID .git/
7777
- name: Commit and push applied linter fixes
7878
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix')
79-
uses: stefanzweifel/git-auto-commit-action@v5
79+
uses: stefanzweifel/git-auto-commit-action@v7
8080
with:
8181
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
8282
commit_message: "[MegaLinter] Apply linters fixes"

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
os: [ubuntu-latest]
1515
runs-on: ${{ matrix.os }}
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
1919
with:
2020
python-version: ${{ matrix.python-version }}
@@ -38,7 +38,7 @@ jobs:
3838
packages: write
3939
steps:
4040
- name: Check out the repo
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@v6
4242

4343
- name: Set up QEMU
4444
uses: docker/setup-qemu-action@v3

.mega-linter.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Configuration file for MegaLinter
2-
# See all available variables at https://megalinter.io/config-file/ and in linters documentation
2+
# See all available variables at https://megalinter.io/latest/config-file/ and in linters documentation
33

44
APPLY_FIXES: all # all, none, or list of linter keys
55
# ENABLE: # If you use ENABLE variable, all other languages/formats/tooling-formats will be disabled by default
@@ -16,6 +16,7 @@ DISABLE_ERRORS_LINTERS:
1616
- PYTHON_MYPY
1717
- PYTHON_PYRIGHT
1818
- REPOSITORY_GRYPE
19+
- SPELL_LYCHEE
1920
FILTER_REGEX_EXCLUDE: (assets)
2021
SHOW_ELAPSED_TIME: true
2122
FILEIO_REPORTER: false

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## Beta
88

9-
- Add your updates here :)
9+
- Upgrade project
10+
- Upgrade dependencies
11+
- CI: Upgrade MegaLinter
1012

1113
## [1.6.3] 2023-03-03
1214

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
FROM python:3.12.2-alpine3.18
22
WORKDIR /
33
ARG GITHUB_DEPENDENTS_INFO_VERSION=latest
4-
ARG GITHUB_TOKEN
54

65
RUN pip install --no-cache-dir github-dependents-info
76

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ poetry-remove:
2020
.PHONY: install
2121
install:
2222
poetry lock -n && poetry export --without-hashes > requirements.txt
23-
poetry install -n
23+
poetry install -n --with dev
2424
-poetry run mypy --install-types --non-interactive ./
2525

2626
.PHONY: pre-commit-install

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/inst
1919

2020
# Allow installing dev dependencies to run tests
2121
ARG INSTALL_DEV=false
22-
RUN bash -c "if [ $INSTALL_DEV == 'true' ] ; then poetry install --no-root ; else poetry install --no-root --no-dev ; fi"
22+
RUN bash -c "if [ $INSTALL_DEV == 'true' ] ; then poetry install --with dev --no-root ; else poetry install --no-root --without dev ; fi"
2323

2424
CMD mkdir -p /workspace
2525
WORKDIR /workspace

docs/github-dependents-info.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,29 @@
55
[![Generated by github-dependents-info](https://img.shields.io/static/v1?label=Used%20by%20(private)&message=-22&color=informational&logo=slickpic)](https://github.com/nvuillam/github-dependents-info/network/dependents)
66
[![Generated by github-dependents-info](https://img.shields.io/static/v1?label=Used%20by%20(stars)&message=1983&color=informational&logo=slickpic)](https://github.com/nvuillam/github-dependents-info/network/dependents)
77

8-
| Repository | Stars |
9-
| :-------- | -----: |
10-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/1512341?s=40&v=4" width="20" height="20" alt=""> &nbsp; [douglasjunior](https://github.com/douglasjunior) / [react-native-keyboard-manager](https://github.com/douglasjunior/react-native-keyboard-manager) | 944 |
11-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/1512341?s=40&v=4" width="20" height="20" alt=""> &nbsp; [douglasjunior](https://github.com/douglasjunior) / [react-native-simple-dialogs](https://github.com/douglasjunior/react-native-simple-dialogs) | 311 |
12-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/1512341?s=40&v=4" width="20" height="20" alt=""> &nbsp; [douglasjunior](https://github.com/douglasjunior) / [react-native-get-location](https://github.com/douglasjunior/react-native-get-location) | 196 |
13-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/1512341?s=40&v=4" width="20" height="20" alt=""> &nbsp; [douglasjunior](https://github.com/douglasjunior) / [react-native-recaptcha-that-works](https://github.com/douglasjunior/react-native-recaptcha-that-works) | 162 |
14-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/1512341?s=40&v=4" width="20" height="20" alt=""> &nbsp; [douglasjunior](https://github.com/douglasjunior) / [react-native-pdf-renderer](https://github.com/douglasjunior/react-native-pdf-renderer) | 123 |
15-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/17500430?s=40&v=4" width="20" height="20" alt=""> &nbsp; [nvuillam](https://github.com/nvuillam) / [github-dependents-info](https://github.com/nvuillam/github-dependents-info) | 100 |
16-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/1512341?s=40&v=4" width="20" height="20" alt=""> &nbsp; [douglasjunior](https://github.com/douglasjunior) / [react-native-gradient-shimmer](https://github.com/douglasjunior/react-native-gradient-shimmer) | 39 |
17-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/17500430?s=40&v=4" width="20" height="20" alt=""> &nbsp; [nvuillam](https://github.com/nvuillam) / [node-java-caller](https://github.com/nvuillam/node-java-caller) | 38 |
18-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/1512341?s=40&v=4" width="20" height="20" alt=""> &nbsp; [douglasjunior](https://github.com/douglasjunior) / [react-native-applifecycle](https://github.com/douglasjunior/react-native-applifecycle) | 22 |
19-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/17500430?s=40&v=4" width="20" height="20" alt=""> &nbsp; [nvuillam](https://github.com/nvuillam) / [markdown-table-formatter](https://github.com/nvuillam/markdown-table-formatter) | 21 |
20-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/17500430?s=40&v=4" width="20" height="20" alt=""> &nbsp; [nvuillam](https://github.com/nvuillam) / [njre](https://github.com/nvuillam/njre) | 11 |
21-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/17500430?s=40&v=4" width="20" height="20" alt=""> &nbsp; [nvuillam](https://github.com/nvuillam) / [node-sarif-builder](https://github.com/nvuillam/node-sarif-builder) | 11 |
22-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/19632501?s=40&v=4" width="20" height="20" alt=""> &nbsp; [elgohr](https://github.com/elgohr) / [github-globe](https://github.com/elgohr/github-globe) | 2 |
23-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/25952589?s=40&v=4" width="20" height="20" alt=""> &nbsp; [Lyn4ever29](https://github.com/Lyn4ever29) / [pipy_server](https://github.com/Lyn4ever29/pipy_server) | 1 |
24-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/88446464?s=40&v=4" width="20" height="20" alt=""> &nbsp; [WayScience](https://github.com/WayScience) / [software-landscape-analysis](https://github.com/WayScience/software-landscape-analysis) | 1 |
25-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/8592144?s=40&v=4" width="20" height="20" alt=""> &nbsp; [zhimin-z](https://github.com/zhimin-z) / [MSR-Asset-Management](https://github.com/zhimin-z/MSR-Asset-Management) | 1 |
26-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/85517829?s=40&v=4" width="20" height="20" alt=""> &nbsp; [CU-DBMI](https://github.com/CU-DBMI) / [set-effort-analysis](https://github.com/CU-DBMI/set-effort-analysis) | 0 |
27-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/7026066?s=40&v=4" width="20" height="20" alt=""> &nbsp; [dianjuar](https://github.com/dianjuar) / [ngx-deploy-npm-angular-dependant-script](https://github.com/dianjuar/ngx-deploy-npm-angular-dependant-script) | 0 |
28-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/6073215?s=40&v=4" width="20" height="20" alt=""> &nbsp; [bruno-fs](https://github.com/bruno-fs) / [python-rust-research](https://github.com/bruno-fs/python-rust-research) | 0 |
29-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/106377191?s=40&v=4" width="20" height="20" alt=""> &nbsp; [RolfMoleman](https://github.com/RolfMoleman) / [markdown-table-formatter](https://github.com/RolfMoleman/markdown-table-formatter) | 0 |
30-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/26076517?s=40&v=4" width="20" height="20" alt=""> &nbsp; [Superskyyy](https://github.com/Superskyyy) / [deps-graph-ray](https://github.com/Superskyyy/deps-graph-ray) | 0 |
31-
|<img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/17500430?s=40&v=4" width="20" height="20" alt=""> &nbsp; [nvuillam](https://github.com/nvuillam) / [mkdocs-material-github-dependents-info](https://github.com/nvuillam/mkdocs-material-github-dependents-info) | 0 |
8+
| Repository | Stars |
9+
|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------:|
10+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/1512341?s=40&v=4" width="20" height="20" alt=""> &nbsp; [douglasjunior](https://github.com/douglasjunior) / [react-native-keyboard-manager](https://github.com/douglasjunior/react-native-keyboard-manager) | 944 |
11+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/1512341?s=40&v=4" width="20" height="20" alt=""> &nbsp; [douglasjunior](https://github.com/douglasjunior) / [react-native-simple-dialogs](https://github.com/douglasjunior/react-native-simple-dialogs) | 311 |
12+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/1512341?s=40&v=4" width="20" height="20" alt=""> &nbsp; [douglasjunior](https://github.com/douglasjunior) / [react-native-get-location](https://github.com/douglasjunior/react-native-get-location) | 196 |
13+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/1512341?s=40&v=4" width="20" height="20" alt=""> &nbsp; [douglasjunior](https://github.com/douglasjunior) / [react-native-recaptcha-that-works](https://github.com/douglasjunior/react-native-recaptcha-that-works) | 162 |
14+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/1512341?s=40&v=4" width="20" height="20" alt=""> &nbsp; [douglasjunior](https://github.com/douglasjunior) / [react-native-pdf-renderer](https://github.com/douglasjunior/react-native-pdf-renderer) | 123 |
15+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/17500430?s=40&v=4" width="20" height="20" alt=""> &nbsp; [nvuillam](https://github.com/nvuillam) / [github-dependents-info](https://github.com/nvuillam/github-dependents-info) | 100 |
16+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/1512341?s=40&v=4" width="20" height="20" alt=""> &nbsp; [douglasjunior](https://github.com/douglasjunior) / [react-native-gradient-shimmer](https://github.com/douglasjunior/react-native-gradient-shimmer) | 39 |
17+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/17500430?s=40&v=4" width="20" height="20" alt=""> &nbsp; [nvuillam](https://github.com/nvuillam) / [node-java-caller](https://github.com/nvuillam/node-java-caller) | 38 |
18+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/1512341?s=40&v=4" width="20" height="20" alt=""> &nbsp; [douglasjunior](https://github.com/douglasjunior) / [react-native-applifecycle](https://github.com/douglasjunior/react-native-applifecycle) | 22 |
19+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/17500430?s=40&v=4" width="20" height="20" alt=""> &nbsp; [nvuillam](https://github.com/nvuillam) / [markdown-table-formatter](https://github.com/nvuillam/markdown-table-formatter) | 21 |
20+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/17500430?s=40&v=4" width="20" height="20" alt=""> &nbsp; [nvuillam](https://github.com/nvuillam) / [njre](https://github.com/nvuillam/njre) | 11 |
21+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/17500430?s=40&v=4" width="20" height="20" alt=""> &nbsp; [nvuillam](https://github.com/nvuillam) / [node-sarif-builder](https://github.com/nvuillam/node-sarif-builder) | 11 |
22+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/19632501?s=40&v=4" width="20" height="20" alt=""> &nbsp; [elgohr](https://github.com/elgohr) / [github-globe](https://github.com/elgohr/github-globe) | 2 |
23+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/25952589?s=40&v=4" width="20" height="20" alt=""> &nbsp; [Lyn4ever29](https://github.com/Lyn4ever29) / [pipy_server](https://github.com/Lyn4ever29/pipy_server) | 1 |
24+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/88446464?s=40&v=4" width="20" height="20" alt=""> &nbsp; [WayScience](https://github.com/WayScience) / [software-landscape-analysis](https://github.com/WayScience/software-landscape-analysis) | 1 |
25+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/8592144?s=40&v=4" width="20" height="20" alt=""> &nbsp; [zhimin-z](https://github.com/zhimin-z) / [MSR-Asset-Management](https://github.com/zhimin-z/MSR-Asset-Management) | 1 |
26+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/85517829?s=40&v=4" width="20" height="20" alt=""> &nbsp; [CU-DBMI](https://github.com/CU-DBMI) / [set-effort-analysis](https://github.com/CU-DBMI/set-effort-analysis) | 0 |
27+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/7026066?s=40&v=4" width="20" height="20" alt=""> &nbsp; [dianjuar](https://github.com/dianjuar) / [ngx-deploy-npm-angular-dependant-script](https://github.com/dianjuar/ngx-deploy-npm-angular-dependant-script) | 0 |
28+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/6073215?s=40&v=4" width="20" height="20" alt=""> &nbsp; [bruno-fs](https://github.com/bruno-fs) / [python-rust-research](https://github.com/bruno-fs/python-rust-research) | 0 |
29+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/106377191?s=40&v=4" width="20" height="20" alt=""> &nbsp; [RolfMoleman](https://github.com/RolfMoleman) / [markdown-table-formatter](https://github.com/RolfMoleman/markdown-table-formatter) | 0 |
30+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/26076517?s=40&v=4" width="20" height="20" alt=""> &nbsp; [Superskyyy](https://github.com/Superskyyy) / [deps-graph-ray](https://github.com/Superskyyy/deps-graph-ray) | 0 |
31+
| <img class="avatar mr-2" src="https://avatars.githubusercontent.com/u/17500430?s=40&v=4" width="20" height="20" alt=""> &nbsp; [nvuillam](https://github.com/nvuillam) / [mkdocs-material-github-dependents-info](https://github.com/nvuillam/mkdocs-material-github-dependents-info) | 0 |
3232

3333
_Generated using [github-dependents-info](https://github.com/nvuillam/github-dependents-info), by [Nicolas Vuillamy](https://github.com/nvuillam)_

0 commit comments

Comments
 (0)