Skip to content

Commit

Permalink
Migration to PDM (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
sid-maddy committed Oct 19, 2024
2 parents 3b17a10 + 6ca0dc8 commit a427dbb
Show file tree
Hide file tree
Showing 32 changed files with 1,552 additions and 647 deletions.
32 changes: 17 additions & 15 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
---
version: 2

updates:
- package-ecosystem: "devcontainers"
directory: "/"
- package-ecosystem: devcontainers
directory: /
schedule:
interval: "monthly"
interval: monthly

- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: github-actions
directory: /
schedule:
interval: "monthly"
interval: monthly
groups:
ci-dependencies:
patterns:
- "*"
- '*'

- package-ecosystem: "pip"
directory: "/"
- package-ecosystem: pip
directory: /
schedule:
interval: "monthly"
interval: monthly
groups:
python-dependencies:
patterns:
- "*"
- '*'

- package-ecosystem: "docker"
directory: "/"
- package-ecosystem: docker
directory: /
schedule:
interval: "monthly"
interval: monthly
groups:
docker-dependencies:
patterns:
- "*"
- '*'
2 changes: 1 addition & 1 deletion .github/workflows/container-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- name: Install cosign
uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/dependency-review.yaml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Lint & Test

on:
push:
branches:
- main
tags:
- v*
pull_request:

defaults:
run:
shell: bash

jobs:
lint_test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- name: Setup PDM
uses: pdm-project/setup-pdm@568ddd69406b30de1774ec0044b73ae06e716aa4 # v4.1
with:
python-version: '3.12'
cache: true

- name: Install dependencies
run: pdm install --no-self

- name: Run pre-commit
run: pdm pre-commit

- name: Run tests
run: pdm test
42 changes: 0 additions & 42 deletions .github/workflows/python-ci.yaml

This file was deleted.

15 changes: 7 additions & 8 deletions .github/workflows/sentry-release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: "Sentry release"
---
name: Sentry release

on:
push:
Expand All @@ -7,17 +8,15 @@ on:

jobs:
sentry-release:
runs-on: ubuntu-latest

runs-on: ubuntu-24.04
steps:
- name: "Checkout repository"
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- name: "Create Sentry release"
uses: getsentry/action-release@e769183448303de84c5a06aaaddf9da7be26d6c7 # v1.7.0
- name: Create Sentry release
uses: getsentry/action-release@e769183448303de84c5a06aaaddf9da7be26d6c7 # v1.7.0
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}
with:
version_prefix: "${{ vars.SENTRY_PROJECT }}@"
version_prefix: ${{ vars.SENTRY_PROJECT }}@
67 changes: 22 additions & 45 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,12 @@ parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt
Expand All @@ -50,30 +43,15 @@ coverage.xml
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

Expand All @@ -82,25 +60,23 @@ profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
.pdm.toml
.pdm-python
.pdm-build/

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
Expand All @@ -125,8 +101,9 @@ venv.bak/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# JetBrains IDEs
/.idea
# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/
5 changes: 5 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
MD013:
line_length: 120

MD024: false
Loading

0 comments on commit a427dbb

Please sign in to comment.