Chores to modernise python package

Open
#102 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
testing-qa

Research direction

Start by locating the existing unittest suite and running it to establish a baseline; the issue does not name test files. Then assess the remaining checklist items—migrate tests to pytest, split them into multiple files, and address byte/string typing—and confirm the suite passes with the tests organized and typing issues fixed.

Written by the indexing model from the issue text.

Description

There are still a few old styles in the code from the Python 2 era. As I do not have time to go through them all, I am documenting them:

  • drop py3.10, add py3.15
  • move tox config into pyproject.toml
  • migrate to dependency-groups
  • replace black with ruff as formatter
  • migrate tests from unittest to pytest
  • split tests into multiple files for better overview
  • add and fix typing (byte and str mixed)
Dominant language
JavaScript
Stars
36
Forks
26
Avg merge
15m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from web-push-libs/encrypted-content-encoding

All issues in web-push-libs/encrypted-content-encoding

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.