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

General updates #1

Merged
merged 2 commits into from
Oct 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 5 additions & 5 deletions .github/workflows/main.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.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand All @@ -39,7 +39,7 @@ jobs:
- name: Install dependencies
run: |
poetry run pip install -U pip
poetry install
poetry install --with=dev
- name: Run tests
run: poetry run pytest

Expand All @@ -53,7 +53,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.7"
python-version: "3.8"
- name: Set Poetry cache
uses: actions/cache@v2
id: poetry-cache
Expand All @@ -67,7 +67,7 @@ jobs:
- name: Install dependencies
run: |
poetry run pip install -U pip
poetry install
poetry install --with=dev
- name: Run linters
run: poetry run invoke lint

Expand All @@ -87,7 +87,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.7"
python-version: "3.8"
- name: Check release
id: check_release
run: |
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See https://pre-commit.com/hooks.html for info on hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -13,18 +13,18 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 22.10.0
rev: 23.10.1
hooks:
- id: black

- repo: https://github.com/pycqa/flake8
rev: 5.0.4
rev: 6.1.0
hooks:
- id: flake8
args: [--max-line-length=88]
language_version: python3.9
language_version: python3.11

- repo: https://github.com/timothycrosley/isort
rev: 5.6.4
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
2 changes: 1 addition & 1 deletion pelican/plugins/social_cards/cards_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _compute_values(self):
max_height = 0

for line in self._text:
font_width, font_height = self._font.getsize(line)
_, _, font_width, font_height = self._font.getbbox(line)
self._line_dimensions[line] = {
"width": font_width,
"height": font_height,
Expand Down
Loading
Loading