Skip to content

Commit

Permalink
Major rework to modernize it
Browse files Browse the repository at this point in the history
- use Poetry
- use pre-commit
- use pytest
- use reuse
- bring coverage to 100%

Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Mar 19, 2024
1 parent e377ebe commit c809fbb
Show file tree
Hide file tree
Showing 39 changed files with 4,353 additions and 2,533 deletions.
1 change: 0 additions & 1 deletion .cico.pipeline

This file was deleted.

21 changes: 0 additions & 21 deletions .coveragerc

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/__pycache__
*.swp
*.pyc
*.egg*
Expand Down
29 changes: 29 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks

repos:
# Generic hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

# https://black.readthedocs.io/en/stable/integrations/source_version_control.html
- repo: https://github.com/psf/black
rev: 23.10.1
hooks:
- id: black

# Ruff
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.3
hooks:
- id: ruff
# License headers
- repo: https://github.com/fsfe/reuse-tool
rev: v2.1.0
hooks:
- id: reuse
22 changes: 22 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: mailman3-fedmsg-plugin
Upstream-Contact: Fedora Infrastructure <[email protected]>
Source: https:////github.com/fedora-infra/mailman3-fedmsg-plugin

# Sample paragraph, commented out:
#
# Files: src/*
# Copyright: $YEAR $NAME <$CONTACT>
# License: ...

Files: *.yaml *.md *.rst *.toml .gitignore *.ini .github/*
Copyright: Contributors to the Fedora Project
License: LGPL-3.0-or-later

Files: mailman_schema/*.toml mailman_schema/.gitignore
Copyright: Contributors to the Fedora Project
License: LGPL-3.0-or-later

Files: poetry.lock mailman_schema/poetry.lock
Copyright: None, autogenerated
License: LGPL-3.0-or-later
674 changes: 0 additions & 674 deletions COPYING

This file was deleted.

165 changes: 0 additions & 165 deletions COPYING.LESSER

This file was deleted.

Loading

0 comments on commit c809fbb

Please sign in to comment.