Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
220 commits
Select commit Hold shift + click to select a range
2c96e36
A few optimizations
raidensakura May 9, 2023
3d5bd91
Pull modmail-dev/modmail#3281
raidensakura May 9, 2023
7fb3f7a
Pull modmail-dev/modmail#3279
raidensakura May 9, 2023
68c44c3
Pull modmail-dev/modmail#3278
raidensakura May 9, 2023
9e9317c
Pull modmail-dev/modmail#3277 & proper indentation
raidensakura May 9, 2023
0e99fe8
Squashed commit of the following:
raidensakura May 9, 2023
53b66c7
Pull modmail-dev/modmail##3271
raidensakura May 9, 2023
c1df103
Squashed commit of the following:
raidensakura May 9, 2023
49f9dfd
Format with black
raidensakura May 9, 2023
b2780fc
Pull modmail-dev/modmail##3233
raidensakura May 9, 2023
c999004
Squashed commit of the following:
raidensakura May 9, 2023
b84bbf2
Update changelog, workflow & remove bandit
raidensakura May 9, 2023
7936080
Pull modmail-dev#3272 + lock dependencies
raidensakura May 9, 2023
ed849d4
Add docs boilerplate + bumppython version
raidensakura May 9, 2023
ad33aac
Dpy bump, add versions for ?about
raidensakura May 9, 2023
29190bd
Format with black
raidensakura May 9, 2023
3f525ec
Update README.md
raidensakura May 9, 2023
fce12b7
Fix permission error when installing plugin
raidensakura May 20, 2023
13ae200
Add new mention_message config, black + ruff
raidensakura May 22, 2023
2cba222
Switch from root to app user for Docker
raidensakura May 23, 2023
884c845
Add support for trailing space in prefix
raidensakura May 28, 2023
a637ef4
Add logviewer as built-in plugin
raidensakura Jun 2, 2023
762c1ff
logviewer plugin enhancements
raidensakura Jun 3, 2023
0e7b5a5
Minor logviewer changes
raidensakura Jun 3, 2023
7e88d20
Update changelog + logviewer pomelo change
raidensakura Jun 3, 2023
8323e8f
add pomelo for logbase
raidensakura Jun 3, 2023
4dd624d
Change logviewer favicon
raidensakura Jun 3, 2023
cc08e56
Refactor loglist object with proper serialization
raidensakura Jun 3, 2023
7a5dc01
Remove favicon to untrack later
raidensakura Jun 4, 2023
566c5dc
fix log entry key error
raidensakura Jun 4, 2023
a0130d6
Replace local favicon with remote avatar
raidensakura Jun 4, 2023
bdc4550
Add markdown header support
raidensakura Jun 4, 2023
afb0319
Switch repo link and branch
raidensakura Jun 4, 2023
173c394
Change more repo links
raidensakura Jun 4, 2023
2a25beb
Handle properly when loglist is the index page
raidensakura Jun 4, 2023
5773577
toggle off internal message checkbox on load
raidensakura Jun 4, 2023
cba479e
Remove trailing slash, fix broken log url on index
raidensakura Jun 4, 2023
e82c954
Fix broken default avatar url
raidensakura Jun 5, 2023
10e6840
Fix pathing issue on displaying log list in index
raidensakura Jun 5, 2023
c3fcb3b
Add placeholder for not logged in user
raidensakura Jun 5, 2023
bd1c6f8
Fix blockquote parsing emote ending
raidensakura Jun 5, 2023
48fcbac
Whoops, remove comment
raidensakura Jun 5, 2023
561e093
Fix blockquote parsing + oauth navbar indicator
raidensakura Jun 5, 2023
50748fd
Update docs
raidensakura Jun 5, 2023
0fdcbfa
config and docs change
raidensakura Jun 5, 2023
7655e86
Update FUNDING.yml
raidensakura Jun 6, 2023
20f2045
Update docs
raidensakura Jun 6, 2023
1ac907e
Update ignores + workflow
raidensakura Jun 6, 2023
36f386b
Tweak loadcheck
raidensakura Jun 6, 2023
a3e1c10
tweak loadcheck (2)
raidensakura Jun 6, 2023
13b0f24
blegh
raidensakura Jun 6, 2023
1b1d046
raidensakura Jun 6, 2023
ca60f0f
Attempt to fix invalid guild_id on test
raidensakura Jun 6, 2023
f2d6915
Docs update
raidensakura Jun 6, 2023
04fe9cc
Terminate process more gracefully
raidensakura Jun 6, 2023
033076c
Update dependencies for Python 3.11
raidensakura Jun 8, 2023
beaa661
Refactor logviewer pomelo changes
raidensakura Jun 8, 2023
d6ec5b0
Minify docker image size
raidensakura Jun 8, 2023
54d9aee
Remove unused files
raidensakura Jun 8, 2023
bfbf291
bump black to fix checks
raidensakura Jun 8, 2023
cafd223
Update dev requirements
raidensakura Jun 9, 2023
34d68bc
Update workflow
raidensakura Jun 9, 2023
ff97b9a
More pomelo changes
raidensakura Jun 9, 2023
18007cd
Replace avatar with local asset
raidensakura Jun 9, 2023
62f9e6b
Fix broken author avatar on `logs` command
raidensakura Jun 9, 2023
0d8157e
Implement pomelo on channel name
raidensakura Jun 9, 2023
baeff97
Format with black
raidensakura Jun 9, 2023
119eb3c
Add pre-commit hook
raidensakura Jun 9, 2023
7fba67e
Update requirements
raidensakura Jun 9, 2023
d8f79df
Overhaul block functionality
raidensakura Jun 11, 2023
cb634df
Add plugin uninstall alias
raidensakura Jun 11, 2023
018b18e
Update python badge
raidensakura Jun 11, 2023
41a878b
Update README.md
raidensakura Jun 11, 2023
216eeeb
Update README.md
raidensakura Jun 11, 2023
8a586c0
Fix block datetime not being timezone aware
raidensakura Jun 12, 2023
534a3d6
Remove cairosvg
raidensakura Jun 12, 2023
321196d
Fix copy paste mistake
raidensakura Jun 13, 2023
9fd425c
Another copy paste issue sigh
raidensakura Jun 13, 2023
e3d1a48
Fix NoneType on parse
raidensakura Jun 13, 2023
6bf8521
Improve block check and add message cooldown
raidensakura Jun 13, 2023
063f739
bump dpy
raidensakura Jun 13, 2023
2a4615c
Update internal dpy version
raidensakura Jun 13, 2023
a823517
Update ?info command for pomelo
raidensakura Jun 15, 2023
6af93d8
Bump version
raidensakura Jun 17, 2023
a43184c
Merge branch 'stable' into develop
raidensakura Jun 17, 2023
b101b25
Fix missing package error
raidensakura Jun 17, 2023
66a6269
Fix index compile error
raidensakura Jun 17, 2023
0707c55
Merge branch 'develop' into temp
raidensakura Jun 17, 2023
bce8dad
Merge pull request #7 from raidensakura/temp
raidensakura Jun 17, 2023
15a84cf
Fix space in filepath failing to load local plugin
raidensakura Jun 27, 2023
5692500
Escape codeblock language in class name
raidensakura Jul 6, 2023
f2804ca
Fix genesis message retrieval failure
raidensakura Jul 9, 2023
a38e6a5
Update docs
raidensakura Jul 13, 2023
73774de
Don't build image on PR
raidensakura Jul 18, 2023
c9a9d00
Blocklist rewrite (#11)
khakers Jul 18, 2023
e7635f1
fix note code
khakers Jul 21, 2023
e1a7af7
Fix failing tests and docker build
raidensakura Jul 23, 2023
3234c93
fix blocklist bugs (#13)
khakers Jul 23, 2023
ed10c02
oops
raidensakura Jul 23, 2023
8de9c38
Fix object is not subscriptable for 3.8
raidensakura Jul 23, 2023
b2c083f
Pull 2 changes from upstream (#14)
raidensakura Jul 23, 2023
b1cd3cd
Format with black
raidensakura Jul 23, 2023
9bf357d
More blocklist fixes (#15)
khakers Jul 25, 2023
cf4e377
Add index for channel_id
khakers Jul 25, 2023
4cb5b5a
Update CHANGELOG.md
khakers Jul 28, 2023
9a9afb4
Remove CairoSVG dependencies from Dockerfile
khakers Jul 28, 2023
c6d3339
Improve is_image detection to actually detect images (excluding video…
khakers Aug 3, 2023
8f57bad
Fix logviewer positional arg error
raidensakura Aug 12, 2023
86400a0
Merge branch 'develop' of https://github.com/raidensakura/modmail int…
raidensakura Aug 12, 2023
2e9e07b
partially reverts 2f762025 which added lottie sticker support and upd…
khakers Aug 18, 2023
0e73de8
Synchronize thread NSFW status and title with the database (#18)
khakers Aug 18, 2023
7212ae7
Change dependency manager to PDM
khakers Nov 5, 2023
bfc8674
update README to reference PDM and python version requirements change
khakers Nov 6, 2023
0b5c71d
Add pdm sync-pre-commit-lock plugin
khakers Nov 6, 2023
c76d895
remove github workflow from gitignore and add .pdm-python
khakers Nov 6, 2023
36b7910
add basic devcontainer file
khakers Nov 6, 2023
33a387c
Merge pull request #1 from khakers/feature/dev-improvements
khakers Nov 11, 2023
2fa1310
README updates for openmodmail rebrand
khakers Nov 11, 2023
ba23738
add dev docker compose file and pin mongo image to major version
khakers Nov 11, 2023
afba718
Remove modmail telemetry and update PRIVACY.md
khakers Nov 11, 2023
f157d5f
bump discord-py 2.3.0 -> 2.3.2
khakers Nov 19, 2023
ecd7302
readme changes
khakers Nov 19, 2023
ba41b1a
Enable multiplatform builds for docker image
khakers Dec 9, 2023
4cd63d8
Remove logviewer plugin
khakers Dec 31, 2023
bbff93f
remove discord.py version check
khakers Dec 31, 2023
00f1d51
add setuptools to dependencies
khakers Dec 31, 2023
aabc364
refactor dockerfile to install dependencies with pdm and dockerfile t…
khakers Dec 31, 2023
252d0ae
remove /src from dockerignore allowlist
khakers Dec 31, 2023
0c174e5
Update plugins.py
khakers Mar 16, 2024
dfffdaf
Update README.md
khakers Mar 16, 2024
a0e43df
Update CHANGELOG.md
khakers Mar 18, 2024
268fc71
Fix code errors, improve logging, and disable strict plugin parsing
khakers Mar 23, 2024
a7bef2b
Update docker-image.yml build-push-action to v5
khakers Mar 23, 2024
5fef2e2
Update docker-image actions
khakers Mar 23, 2024
b5e5bf2
Update lint.yml
khakers Mar 23, 2024
26fa2e0
Update docker-image.yml
khakers Mar 23, 2024
c1fdd65
Update docker-image.yml
khakers Mar 23, 2024
7eec38a
Skip loading config plugin if it is a forced plugin
khakers Mar 23, 2024
ee9fba8
Update about command for OpenModmail
khakers Mar 25, 2024
c3352a6
Removes sponsor command
khakers Mar 25, 2024
76304f1
Short circuit update method if the bot is running in docker
khakers Mar 25, 2024
540f93b
Fix contact command reporting always blocked
khakers Apr 13, 2024
3930f47
Remove dockerignore exception for /plugins and *.py
khakers Jun 18, 2024
4efa3a8
Update ruff 0.1.4 -> 0.4.9
khakers Jun 18, 2024
88a41f9
Update black 23.10.1 -> 24.4.2
khakers Jun 18, 2024
5c0c53f
Remove modmail_guild_id from env examples (#3281)
lorenzo132 Jul 9, 2023
c1c3f30
Remove Heroku Reference from Debug Command (#3292)
StephenDaDev Jul 15, 2023
ea37687
Fix #3291: Resolve code scanning alert for URL sanitization
Taaku18 Jul 17, 2023
662f6b7
Implement #3187: Enhance bot join/leave logs across servers
Taaku18 Jul 17, 2023
6a203c7
Enable discord.py logger by default. (#3216)
Jerrie-Aries Jul 15, 2023
3b97d12
Add JSON logging support (#3305)
nullishamy Nov 19, 2023
d777ab2
`logs id` command (#3196)
Jul 15, 2023
e67f04c
Cleanup after unloading extension. (#3226)
Jerrie-Aries Jul 15, 2023
d904384
Fix rate limit issue on raw reaction add/remove events. (#3306)
Jerrie-Aries Jul 15, 2023
70e1a37
Fix bug with `?plugin update`. (#3295)
Jerrie-Aries Nov 19, 2023
cc436b7
Fixed compat with MissingRequiredArgument requiring additional param
Taaku18 Nov 20, 2023
3ee6041
Remove pkg_resources and replaced with packaging, updated requirement…
Taaku18 Nov 21, 2023
37d911f
Merge pull request #7 from khakers/feature/upstream-4.1.0-merge
khakers Jun 18, 2024
d2047cf
add change to CHANGELOG.md
khakers Jun 18, 2024
767345e
Merge branch 'develop' into feature/forced-plugins
khakers Jun 18, 2024
7e95ab9
Merge pull request #5 from khakers/feature/forced-plugins
khakers Jun 18, 2024
0058fca
Update guild not found error message
khakers Sep 4, 2024
ec651dd
Add support for custom activities (#3352)
sebkuip Oct 27, 2024
a9ad2a7
msglink command now scans all recipients (#3341)
sebkuip Oct 27, 2024
7d5f4a6
Update bot.py to load cogs.plugin after cogs.utility
khakers Mar 6, 2025
72d0e27
patch: truncate config get fields to 25 entries
khakers Mar 11, 2025
0b17cce
patch: add footer when config get field count is truncated
khakers Mar 11, 2025
0d2d7df
Changed version string and change ASCII load art
khakers Apr 4, 2025
2374642
Migrate image building to docker bake & add new image with supportuti…
khakers Apr 4, 2025
6c261dc
Docker build workflow adjustment
khakers Apr 4, 2025
743684a
add env file in hopes that it makes bake work
khakers Apr 4, 2025
d3c7d2d
disable docker bake sbom
khakers Apr 5, 2025
8fc7eb9
Remove env_file args from docker compose
khakers Apr 5, 2025
2242bf3
Add targets to docker bake action and enable sbom again
khakers Apr 5, 2025
01a1707
Use docker-metadata action for docker bake image utils input
khakers Apr 5, 2025
ab1ac24
add targets to docker image workflow bake action
khakers Apr 5, 2025
6aa98c7
remove .env from git
khakers Apr 5, 2025
782e620
Update dependencies for python 3.12+ and relock pdm lockfile for inhe…
khakers Apr 6, 2025
a012278
Remove autoupdate system and update command
khakers Apr 6, 2025
270aedc
Improve the log message for DMs received while modmail DMs are disabled
khakers Apr 6, 2025
00e0deb
remove autoupdate remnant
khakers Apr 6, 2025
59b9487
compose override to gitignore
khakers Apr 7, 2025
f94aad8
Improve guild member cache fetch logic and fix escaping in message im…
sebkuip Mar 12, 2025
f605cd0
fix utility cog loading
khakers Apr 7, 2025
d7889b7
bump discord-py to 2.5.2
khakers Apr 7, 2025
d83561b
Resolve DOS vulnerability in SafeFormatter
khakers Apr 7, 2025
6011971
Add silent_close and scheduled_close attributes to thread after closu…
khakers Apr 7, 2025
32062a6
convert thread close time to string before saving to mongodb
khakers May 5, 2025
8b6bf1e
Add mise config
khakers Jun 28, 2025
4d97f88
Add pip included image
khakers Jun 29, 2025
b276342
Fix docker image build ci
khakers Jun 29, 2025
21f3136
bump dependencies
khakers Jun 29, 2025
85b140e
Add debug logging to category and setup command code paths
khakers Nov 12, 2025
825f6a0
Merge development v4.2.0 (#3390)
Taaku18 Nov 11, 2025
5e52956
fix: Remove thread-only restriction from logs command (#3397)
lorenzo132 Nov 20, 2025
4ae7147
modmail update QOL (#3392)
lorenzo132 Nov 28, 2025
88b93f1
Feat: Renaming of snippets and aliases (#3383)
martinbndr Nov 30, 2025
59a2df0
Fix Plugin Help (#3322)
martinbndr Dec 7, 2025
63ebc1f
Added submenu functionality to threadmenu. Fixes #3403 (#3404)
sebkuip Dec 8, 2025
d8f25a3
Fix: Blackformatting, workflows. Add snooze/unsnooze events. (#3412)
lorenzo132 Dec 8, 2025
21d83a7
Add threadmenu toggle notice (#3411)
martinbndr Dec 13, 2025
555fb86
Improvements for alias creation/editing (#3422)
martinbndr Dec 20, 2025
d7c3543
Fixes thread_auto_close execution when disabled. (#3423)
martinbndr Dec 20, 2025
adba4f6
fix: plain replies deletion and edits (#3416)
lorenzo132 Jan 16, 2026
ceadd55
Fix immediate merge issues
khakers Feb 16, 2026
7cee872
minor logging changes
khakers Feb 16, 2026
bd51dfa
thread snooze refactors
khakers Mar 16, 2026
cddd001
organize imports
khakers Mar 16, 2026
3eb776c
feat: save message ref data to MongoDB
khakers Mar 16, 2026
90999ea
fix: delete telemetry and autoupdate functionality (again)
khakers Mar 22, 2026
1ae6579
fix: code cleanup, better typing, and minor refactors
khakers Apr 19, 2026
c30c9e9
refactor: use monotonic timer for auto unsooze task, add typing
khakers May 16, 2026
aefac23
Merge pull request #9 from khakers/feature/upstream-4.2-merge
khakers May 16, 2026
7a47e86
fix: genesis embed failure due to undefined log_url
khakers May 31, 2026
45bb880
chore: bump version
khakers May 31, 2026
1d611aa
feat: migrate thread create to async factory method
khakers Jun 14, 2026
cab32ba
fix: Remove debug log statement for channel log
khakers Jun 14, 2026
e98a540
feat: s3 attachment archival (#15)
khakers Jun 28, 2026
6412f13
Feature/ignore prefix (#2)
khakers Jun 28, 2026
c9e8861
Revise README for clarity and accuracy
khakers Jun 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bullseye",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers-contrib/features/pdm:2": {}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pdm install --dev && pdm install --plugins"

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
168 changes: 11 additions & 157 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,157 +1,11 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
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

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/
.ruff_cache/

# Translations
*.mo
*.pot

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

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
venv2/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# PyCharm
.idea/

# MacOS
.DS_Store

# VS Code
.vscode/

# Node
package-lock.json
node_modules/

# Modmail
config.json
plugins/
!plugins/registry.json
!plugins/@local/
temp/
test.py

# Other stuff
.env.example
.gitignore
.dockerignore
.github/
app.json
Procfile
pyproject.toml
*.md
.*.json
Dockerfile
docker-compose.yml
LICENSE
PRIVACY.md

# Docs
docs/
# Ignore everything
*
# Ignore the IDE, these are not duplicate and not having this makes the build context potentially *very* large
**
!/cogs
!/core
!bot.py
!LICENSE
!pdm.lock
!pyproject.toml
!README.md
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ LOG_URL=https://logviewername.herokuapp.com/
GUILD_ID=1234567890
OWNERS=Owner1ID,Owner2ID,Owner3ID
CONNECTION_URI=mongodb+srv://mongodburi
DISABLE_AUTOUPDATES=true
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
ko_fi: raidensakura
38 changes: 22 additions & 16 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
- 'develop'
tags:
- 'v*'
pull_request:
branches:
- 'develop'

env:
REGISTRY: ghcr.io
Expand All @@ -24,23 +21,25 @@ jobs:
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
# - name: Checkout repository
# uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to the Container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
- name: Extract metadata (tags, labels) for Docker main
id: docker-meta-base
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=schedule,pattern=nightly
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
Expand All @@ -49,11 +48,18 @@ jobs:
type=sha
# set latest tag for stable releases
type=raw,value=latest,enable=${{ github.event.release.prerelease == false }}
bake-target: docker-metadata-action

- name: Build and push Docker image
uses: docker/build-push-action@v3
- name: Build and push
uses: docker/bake-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# source: .
push: ${{ ! startsWith(github.ref, 'refs/pull/') && ! github.event.act }}
pull: true
sbom: true
files: |
./docker-bake.hcl
cwd://${{ steps.docker-meta-base.outputs.bake-file }}
targets: openmodmail


12 changes: 8 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
python-version: ["3.11"]
name: Python ${{ matrix.python-version }} on ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -21,12 +21,16 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
cache: true
- name: Install dependencies
run: |
python -m pip install black ruff
pdm install --group dev
- name: Ruff
run: ruff . --no-fix
run: pdm run ruff . --no-fix
continue-on-error: true
- name: Black
run: |
black . --diff --check
pdm run black . --diff --check
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,10 @@ config.json
temp/
test.py
stack.yml
.github/workflows/build_docker.yml

.pdm-python

compose.override.yml


s3-data/*
15 changes: 13 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
repos:
- repo: https://github.com/psf/black
rev: "22.12.0"
rev: "24.4.2"
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.261'
rev: 'v0.4.9'
hooks:
- id: ruff
- repo: https://github.com/pdm-project/pdm
rev: 2.10.0 # a PDM release exposing the hook
hooks:
- id: pdm-export
# command arguments, e.g.:
args: [ '-o', 'requirements.txt', '--without-hashes' ]
files: ^pdm.lock$
- repo: https://github.com/pdm-project/pdm
rev: 2.10.0 # a PDM release exposing the hook
hooks:
- id: pdm-lock-check
Loading
Loading