Skip to content
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
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{yml,yaml}]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
10 changes: 9 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: c60c980e561ed3e73101667fe8365c609d19a438 # v0.15.9
rev: b831c3dc5d27d9da294ae4e915773b99aa24a7c5 # v0.15.10
hooks:
- id: ruff-check
args: [ --fix ]
- id: ruff-format
- repo: local
hooks:
- id: pyright
name: pyright
entry: uv run pyright
language: system
types: [python]
pass_filenames: false
54 changes: 47 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,67 @@ description = "A pytest-native safety testing framework for agentic AI applicati
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [
{ name = "Microsoft AI Red Team", email = "airedteam@microsoft.com" },
]
keywords = ["ai", "red-teaming", "safety", "security", "testing", "pytest", "agentic"]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: Pytest",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Security",
"Topic :: Software Development :: Testing",
]
dependencies = [
"azure-identity>=1.25.3",
"azure-kusto-data>=6.0.3",
"azure-kusto-ingest>=6.0.3",
"jsonschema>=4.26.0",
"msgraph-sdk>=1.55.0",
"playwright>=1.58.0",
"pyrit",
"pyrit==0.12.1",
"pytest>=9.0.3",
"pytest-asyncio>=1.3.0",
"pytest-xdist[psutil]>=3.8.0",
"pyyaml>=6.0.3",
]

[dependency-groups]
dev = [
"pre-commit>=4.5.1",
"pyright>=1.1.390",
"pytest-cov>=6.1.0",
"pytest-xdist[psutil]>=3.8.0",
"ruff>=0.15.10",
]

[project.urls]
Homepage = "https://github.com/microsoft/RAMPART"
Repository = "https://github.com/microsoft/RAMPART"
Issues = "https://github.com/microsoft/RAMPART/issues"

[project.entry-points.pytest11]
rampart = "rampart.pytest_plugin.plugin"

[tool.coverage.run]
source = ["rampart"]
omit = ["tests/*"]

[tool.coverage.report]
fail_under = 80
show_missing = true
skip_empty = true

[tool.pyright]
pythonVersion = "3.11"
typeCheckingMode = "strict"
include = ["rampart"]

[tool.pytest.ini_options]
asyncio_mode = "auto"
markers = [
Expand Down Expand Up @@ -63,9 +108,4 @@ known-first-party = ["rampart"]
convention = "google"

[tool.uv.sources]
pyrit = { git = "https://github.com/microsoft/PyRIT.git", rev = "main" }

[dependency-groups]
dev = [
"pre-commit>=4.5.1",
]
pyrit = { git = "https://github.com/microsoft/PyRIT", rev = "3873c7762c42febcf844c468e1eb4adee6cf2e30" } # v0.12.1
Loading
Loading