forked from DataDog/pysigma-backend-datadog
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from frack113/Update_dependencies
Update poetry dependencies
- Loading branch information
Showing
9 changed files
with
726 additions
and
584 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# Prints code testing coverage as percentage for badge generation. | ||
import xml.etree.ElementTree as et | ||
|
||
tree = et.parse("cov.xml") | ||
root = tree.getroot() | ||
coverage = float(root.attrib["line-rate"]) * 100 | ||
print(f"COVERAGE={coverage:3.4}%") | ||
if coverage >= 95.0: | ||
print("COVERAGE_COLOR=green") | ||
elif coverage >= 90.0: | ||
print("COVERAGE_COLOR=yellow") | ||
elif coverage >= 85.0: | ||
print("COVERAGE_COLOR=orange") | ||
else: | ||
print("COVERAGE_COLOR=red") | ||
# Prints code testing coverage as percentage for badge generation. | ||
from defusedxml.ElementTree import parse | ||
|
||
tree = parse("cov.xml") | ||
root = tree.getroot() | ||
coverage = float(root.attrib["line-rate"]) * 100 | ||
print(f"COVERAGE={coverage:3.4}%") | ||
if coverage >= 95.0: | ||
print("COVERAGE_COLOR=green") | ||
elif coverage >= 90.0: | ||
print("COVERAGE_COLOR=yellow") | ||
elif coverage >= 85.0: | ||
print("COVERAGE_COLOR=orange") | ||
else: | ||
print("COVERAGE_COLOR=red") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "pySigma-backend-datadog" | ||
version = "0.1.0" | ||
version = "0.1.1" | ||
description = "pySigma Datadog backend" | ||
readme = "README.md" | ||
authors = ["Datadog Cloud SIEM <[email protected]>"] | ||
|
@@ -12,16 +12,18 @@ packages = [ | |
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
pysigma = "^0.10.3" | ||
pysigma = "^0.11" | ||
|
||
[tool.poetry.dev-dependencies] | ||
black = "^24.1" | ||
defusedxml = "^0.7" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = "^7.3.1" | ||
pytest-cov = "^4.0.0" | ||
coverage = "^7.2.5" | ||
coverage = "^7.4" | ||
pytest = "^8.0" | ||
pytest-cov = "^4.1" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
requires = ["poetry-core>=1.8.1"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from .datadog import DatadogBackend | ||
from .datadog import DatadogBackend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from .datadog import datadog_pipeline | ||
from .datadog import datadog_pipeline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters