Skip to content

Commit

Permalink
chore: update dependencies, add dependabot config (#119)
Browse files Browse the repository at this point in the history
* chore: update dependencies, add dependabot config
  • Loading branch information
valosnah authored Dec 19, 2023
1 parent bc186ea commit 9c06da5
Show file tree
Hide file tree
Showing 7 changed files with 423 additions and 365 deletions.
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ per-file-ignores =
*/__init__.py:F401,
*/classes/*:N815,
*/sparql/dataset_queries.py:E501
*/gunicorn_config.py:B026
application-import-names = fdk_organization_bff, tests
import-order-style = google
16 changes: 16 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"

# Maintain dependencies for pip, pipenv, poetry
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
6 changes: 3 additions & 3 deletions .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pip==23.3.1
pip==23.3.2
nox==2023.4.22
nox-poetry==1.0.3
poetry==1.7.0
virtualenv==20.24.6
poetry==1.7.1
virtualenv==20.25.0
9 changes: 8 additions & 1 deletion .github/workflows/deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build-and-deploy-staging:
name: Call reusable workflow when pull request is created
if: github.event.pull_request.draft == false
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false }}
uses: Informasjonsforvaltning/workflows/.github/workflows/build-deploy-nox.yaml@main
with:
app_name: fdk-organization-bff
Expand All @@ -24,3 +24,10 @@ jobs:
GCP_SA_DIGDIR_FDK_GCR_KEY: ${{ secrets.GCP_SA_DIGDIR_FDK_GCR_KEY }}
DIGDIR_FDK_AUTODEPLOY: ${{ secrets.DIGDIR_FDK_DEV_AUTODEPLOY }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

dependabot-build:
name: Build image on PR from dependabot
if: ${{ github.actor == 'dependabot[bot]' }}
uses: Informasjonsforvaltning/workflows/.github/workflows/build.yaml@main
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Backend-for-frontend service that provides content for fdk portal's organization

### Install software:
```
% pip install poetry==1.1.4
% pip install nox==2020.12.31
% pip install nox-poetry==0.8.4
% pip install poetry==1.7.1
% pip install nox==2023.4.22
% pip install nox-poetry==1.0.3
% poetry install
```

Expand Down
748 changes: 391 additions & 357 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ flake8-docstrings = "^1.7.0"
flake8-import-order = "^0.18.2"
pep8-naming = "^0.13.3"
safety = "^2.3.5"
mypy = "^1.6.1"
mypy = "1.6.1"
flake8-annotations = "^3.0.1"
codecov = "^2.1.13"
requests-mock = "^1.11.0"
Expand Down

0 comments on commit 9c06da5

Please sign in to comment.