Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): dependency-updates #886

Open
wants to merge 44 commits into
base: dev-2.2.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
722ff89
build(deps): bump the github-actions group with 1 update (#867)
dependabot[bot] Dec 9, 2023
df2581a
build: limit django version to less than 5
MyPyDavid Mar 7, 2024
7c3bacb
ci: dependabot ignore major releases for django and react-redux
MyPyDavid Mar 7, 2024
05e9cdd
build(deps): bump the prod-dependencies group with 5 updates
dependabot[bot] Mar 1, 2024
9426c79
build(deps-dev): update twine requirement from ~=4.0 to >=4,<6
dependabot[bot] Mar 1, 2024
db26caf
build(deps): bump the github-actions group with 3 updates (#925)
dependabot[bot] Mar 7, 2024
51ed7ce
build(deps): bump the react group with 2 updates (#934)
dependabot[bot] Mar 8, 2024
1bf852b
build(deps-dev): bump the optional group with 2 updates (#927)
dependabot[bot] Mar 8, 2024
4044d46
build(deps-dev): bump the dev-dependencies group with 9 updates (#933)
dependabot[bot] Mar 8, 2024
b49da88
chore: update eslint version in pre-commi config
afuetterer Mar 8, 2024
7abeb1c
chore: modernize ruff config
afuetterer Mar 7, 2024
7674600
chore: update ruff pre-commit hook
afuetterer Mar 7, 2024
8ab03a2
style: fix ruff issues by pre-commit
MyPyDavid Mar 8, 2024
525732c
chore: rename test module
afuetterer Mar 12, 2024
2cde4f9
ci: run test_package_json_and_pre_commit_versions_match first
afuetterer Mar 12, 2024
0872da6
build(deps-dev): add pytest-github-actions-annotate-failures
afuetterer Mar 12, 2024
2dd226a
build: keep django~=4.2
MyPyDavid Apr 4, 2024
1d4000d
build: use pytest~=8.0
MyPyDavid Apr 4, 2024
1434e9e
build: use twine~=5.0
MyPyDavid Apr 4, 2024
2e66fe7
build(deps-dev): bump the django group with 1 update
dependabot[bot] Apr 1, 2024
730afc0
build(deps): bump the github-actions group with 1 update
dependabot[bot] Apr 1, 2024
69340e5
build(deps-dev): bump the dev-dependencies group with 1 update
dependabot[bot] Apr 1, 2024
d2ecaa1
build(deps-dev): bump the webpack group with 1 update
dependabot[bot] Apr 1, 2024
7431e77
build(deps-dev): bump the babel group with 2 updates
dependabot[bot] Apr 1, 2024
a33aeb3
build: use django-allauth~=0.61.1 and set SOCIALACCOUNT_OPENID_CONNEC…
MyPyDavid Apr 4, 2024
0a6155e
ci: update versioning-strategy in dependabot config
afuetterer Apr 4, 2024
49ff596
build(deps-dev): bump the optional group with 1 update
dependabot[bot] Apr 4, 2024
570a2cb
ci: update label in pre-commit update job
afuetterer Apr 4, 2024
f29c17d
build(deps-dev): update wheel requirement from ~=0.42.0 to >=0.42,<0.44
dependabot[bot] Apr 4, 2024
b95a1b1
build(deps-dev): update packaging requirement
dependabot[bot] Apr 1, 2024
4494144
build: update pre-commit hooks
github-actions[bot] Apr 1, 2024
3909982
build: update node to v18.20.1
MyPyDavid Apr 4, 2024
94e655e
build: fix webpack fonts loader
MyPyDavid Apr 11, 2024
6180564
ci: let pre-commit-autoupdate create prs in draft mode
afuetterer Apr 16, 2024
986b9ef
build(deps): bump peter-evans/create-pull-request
dependabot[bot] May 1, 2024
2dd34c8
build(deps): bump the react group with 2 updates
dependabot[bot] May 1, 2024
31083ff
build(deps): bump @uiw/react-codemirror in the prod-dependencies group
dependabot[bot] May 1, 2024
3732173
build(deps-dev): bump the dev-dependencies group across 1 directory w…
dependabot[bot] May 15, 2024
057ab28
build(deps): bump the optional group across 1 directory with 4 updates
dependabot[bot] May 17, 2024
c546633
build: pin eslint to 8.56 minor version range and autoupdate pre-commit
MyPyDavid May 22, 2024
3b3bb84
build: fix pre-commit dependency and fix failing package status test
MyPyDavid May 22, 2024
f4b1de4
build(ruff lint): (temporarily) ignore UP031
MyPyDavid May 23, 2024
b953b2a
build(webpack): revert and add only type and esModule
MyPyDavid May 27, 2024
31fea34
Update setuptools requirement from ~=69.0 to >=69,<71
dependabot[bot] Jun 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ updates:
directory: /
schedule:
interval: monthly
versioning-strategy: increase-if-necessary
open-pull-requests-limit: 10
target-branch: dependency-updates
labels:
Expand All @@ -12,6 +13,8 @@ updates:
- type:maintenance
ignore:
- dependency-name: django-mptt # pinned, 0.15 requires Python >= 3.9
- dependency-name: django
update-types: [ "version-update:semver-major"] # ignore major for django
groups:
# create a single pull request containing all updates for the optional dependencies
optional:
Expand Down Expand Up @@ -58,6 +61,8 @@ updates:
- dependency-name: react-bootstrap # rdmo still uses bootstrap 3, which is not supported by react-bootstrap > 0.33.1
- dependency-name: "*"
update-types: ["version-update:semver-patch"] # ignore patch versions for all JavaScript dependencies
- dependency-name: react-redux
update-types: ["version-update:semver-major"] # ignore major for react-redux
groups:
react:
patterns:
Expand Down
26 changes: 18 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
- conftest.py
- package.json
- pyproject.toml
types:
- opened
- synchronize
- reopened
- ready_for_review # this is needed to trigger checks, when an auto-generated "draft" PR is set for "ready for review".

# Ref: https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
Expand All @@ -32,14 +37,14 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- run: python -m pip install --upgrade pip
- run: python -m pip install --editable .[dev]
- name: Set up pre-commit cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: lint-${{ hashFiles('.pre-commit-config.yaml') }}
Expand All @@ -57,7 +62,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
Expand All @@ -83,6 +88,11 @@ jobs:
run: |
cp -r testing/media testing/media_root
mkdir testing/log
- name: Run package status tests first
run: |
pytest rdmo/core/tests/test_package_status.py::test_package_json_and_pre_commit_versions_match \
--nomigrations --verbose
if: matrix.python-version == '3.12' && matrix.db-backend == 'postgres'
- name: Run Tests
run: |
pytest -p randomly -p no:cacheprovider --cov --reuse-db --numprocesses=auto --dist=loadscope
Expand Down Expand Up @@ -111,7 +121,7 @@ jobs:
env:
DJANGO_DEBUG: True
GITHUB_DB_BACKEND: ${{ matrix.db-backend }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: screenshots
path: screenshots/*.png
Expand Down Expand Up @@ -159,7 +169,7 @@ jobs:
cache: npm
- run: npm install
- run: npm run build:prod
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip
Expand All @@ -180,7 +190,7 @@ jobs:
python -m pip show rdmo >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
- name: Upload wheel as artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheel
path: dist/rdmo*.whl
Expand All @@ -196,7 +206,7 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
Expand All @@ -208,7 +218,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/pre-commit-autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
Expand All @@ -37,10 +37,11 @@ jobs:
sed -i -e 's/\]/>/g' updates.log
echo -e "## Proposed changes\n\nBumps the pre-commit config with the following updates:\n" > pr-body.md
cat updates.log >> pr-body.md
echo -e "\n---\nThis PR is auto-generated once a month." >> pr-body.md
echo -e "\nThis PR is auto-generated once a month.\n\n---" >> pr-body.md
echo -e "\n> [!NOTE]\n> Mark this PR as "ready for review" to trigger additional checks." >> pr-body.md
# Ref: https://github.com/peter-evans/create-pull-request
- name: Create pull request
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6.0.5
with:
branch: pre-commit-autoupdate
base: dependency-updates
Expand All @@ -53,8 +54,9 @@ jobs:
labels: |
dependencies
pre-commit
type: maintenance
type:maintenance
delete-branch: true
draft: true
- name: Write to job summary
run: |
cat updates.log >> $GITHUB_STEP_SUMMARY
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.1.0
18.20.1
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
hooks:
- id: check-hooks-apply
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-ast
- id: check-json
Expand All @@ -22,16 +22,16 @@ repos:
exclude: \.dot$
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.4.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.54.0
rev: v8.56.0
hooks:
- id: eslint
args: [--fix, --color]
additional_dependencies:
- eslint@8.54.0
- eslint-plugin-react@7.33.2
- react@18.2.0
- eslint@8.56.0
- eslint-plugin-react@7.34.0
- react@18.3.1