Skip to content

Commit

Permalink
Add optional Sentry support
Browse files Browse the repository at this point in the history
  • Loading branch information
barthalion committed Nov 6, 2023
1 parent fdae27b commit 01d4699
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 3 deletions.
4 changes: 4 additions & 0 deletions flatpak_builder_lint/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@
from typing import Optional, Union

import requests
import sentry_sdk

from . import __version__, builddir, checks, manifest, ostree, staticfiles

if sentry_dsn := os.getenv("SENTRY_DSN"):
sentry_sdk.init(sentry_dsn)

for plugin_info in pkgutil.iter_modules(checks.__path__):
importlib.import_module(f".{plugin_info.name}", package=checks.__name__)

Expand Down
49 changes: 47 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "flatpak_builder_lint"
version = "2.0.13"
version = "2.0.14"
description = "A linter for flatpak-builder manifests"
authors = ["Bartłomiej Piotrowski <[email protected]>"]
license = "MIT"
Expand All @@ -10,6 +10,7 @@ python = "^3.10"
jsonschema = "^4.16.0"
requests = "^2.28.1"
lxml = "^4.9.3"
sentry-sdk = "^1.34.0"

[tool.poetry.dev-dependencies]
pytest = "^7.1.2"
Expand Down

0 comments on commit 01d4699

Please sign in to comment.