Skip to content

Commit

Permalink
dev: update the Dockerfile and pre-commit configuration
Browse files Browse the repository at this point in the history
Also,
* Reverted whitespace changes for files under the `.github/` directory,
* Rebase `.gitignore` to GitHub's `Python.gitignore`,
* Remove VS Code-specific configuration, and
* Update the `pyproject.toml` to use PEP 521 names.
  • Loading branch information
sid-maddy committed Oct 6, 2024
1 parent 7008ac1 commit f3ec968
Show file tree
Hide file tree
Showing 16 changed files with 662 additions and 737 deletions.
58 changes: 30 additions & 28 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: "/"
schedule:
interval: "monthly"
- package-ecosystem: devcontainers
directory: /
schedule:
interval: monthly

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

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

- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "monthly"
groups:
docker-dependencies:
patterns:
- "*"
- package-ecosystem: docker
directory: /
schedule:
interval: monthly
groups:
docker-dependencies:
patterns:
- '*'
4 changes: 2 additions & 2 deletions .github/workflows/container-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: Container Build and Push
on:
push:
branches:
- main
- main
tags:
- v*
- v*
pull_request:

defaults:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/dependency-review.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: "Dependency Review"
---
name: Dependency Review

on:
pull_request:
Expand All @@ -11,10 +12,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: "Checkout Repository"
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: "Dependency Review"
uses: actions/dependency-review-action@9129d7d40b8c12c1ed0f60400d00c92d437adcce # v4.1.3
with:
config-file: darbiadev/.github/.github/dependency-review-config.yaml@f185cc076161b47921c6fb6da4c1fd5e40b50bff # v3.0.0
- name: Dependency Review
uses: actions/dependency-review-action@9129d7d40b8c12c1ed0f60400d00c92d437adcce # v4.1.3
with:
config-file: darbiadev/.github/.github/dependency-review-config.yaml@f185cc076161b47921c6fb6da4c1fd5e40b50bff # v3.0.0

Check failure on line 20 in .github/workflows/dependency-review.yaml

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

20:121 [line-length] line too long (129 > 120 characters)
25 changes: 14 additions & 11 deletions .github/workflows/python-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
name: "Python CI"
---
name: Python CI

on:
push:
branches:
- main
- main
pull_request:

jobs:
pre-commit:
uses: darbiadev/.github/.github/workflows/generic-precommit.yaml@ea97d99e1520c46080c4c9032a69552e491474ac # v13.0.0
uses: darbiadev/.github/.github/workflows/generic-precommit.yaml@ea97d99e1520c46080c4c9032a69552e491474ac # v13.0.0
with:
python-version: "3.11"
python-version: '3.11'

lint:
needs: pre-commit
uses: darbiadev/.github/.github/workflows/python-lint.yaml@6a6eb74ae11149881c29adf5a5f7af23349c8762 # v9.0.0
uses: darbiadev/.github/.github/workflows/python-lint.yaml@6a6eb74ae11149881c29adf5a5f7af23349c8762 # v9.0.0
with:
python-version: "3.11"
python-version: '3.11'

test:
needs: lint
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.11"]
os:
- ubuntu-latest
python-version:
- '3.11'

uses: darbiadev/.github/.github/workflows/python-test.yaml@ea97d99e1520c46080c4c9032a69552e491474ac # v13.0.0
uses: darbiadev/.github/.github/workflows/python-test.yaml@ea97d99e1520c46080c4c9032a69552e491474ac # v13.0.0
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
Expand All @@ -37,6 +40,6 @@ jobs:
pages: write
id-token: write

uses: darbiadev/.github/.github/workflows/github-pages-python-sphinx.yaml@ea97d99e1520c46080c4c9032a69552e491474ac # v13.0.0
uses: darbiadev/.github/.github/workflows/github-pages-python-sphinx.yaml@ea97d99e1520c46080c4c9032a69552e491474ac # v13.0.0

Check failure on line 43 in .github/workflows/python-ci.yaml

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

43:121 [line-length] line too long (129 > 120 characters)
with:
python-version: "3.11"
python-version: '3.11'
24 changes: 12 additions & 12 deletions .github/workflows/sentry-release.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: "Sentry release"
---
name: Sentry release

on:
push:
branches:
- main
- main

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

steps:
- name: "Checkout repository"
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- 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 }}@"
- 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 }}@
67 changes: 21 additions & 46 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
# 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
# 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,10 +101,9 @@ venv.bak/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# JetBrains IDEs
/.idea

.pdm-python
# 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 f3ec968

Please sign in to comment.