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
76 changes: 76 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Bug report
description: Report an issue with the triggerdev Python library
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for reporting a bug. Please fill out the sections below.
- type: checkboxes
id: confirm
attributes:
label: Confirmation
options:
- label: I searched existing issues and found no duplicate.
required: true
- label: This is an issue with the triggerdev Python library, not the Trigger.dev API or platform.
required: true
- type: textarea
id: description
attributes:
label: Describe the bug
description: A clear description of what the bug is.
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: Steps to reproduce
description: Steps to reproduce the behavior.
value: |
1.
2.
3.
validations:
required: true
- type: textarea
id: code
attributes:
label: Code snippet
description: If applicable, a minimal code example that reproduces the issue.
render: python
- type: textarea
id: expected
attributes:
label: Expected behavior
description: What you expected to happen.
validations:
required: true
- type: textarea
id: actual
attributes:
label: Actual behavior
description: What actually happened. Include the full traceback if applicable.
validations:
required: true
- type: input
id: os
attributes:
label: Operating system
placeholder: e.g., Ubuntu 24.04, macOS 15, Windows 11
validations:
required: true
- type: input
id: python-version
attributes:
label: Python version
placeholder: e.g., 3.12.0
validations:
required: true
- type: input
id: library-version
attributes:
label: Library version
placeholder: e.g., 0.1.0
validations:
required: true
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Trigger.dev documentation
url: https://trigger.dev/docs
about: For questions about the Trigger.dev platform or API, check the official documentation.
41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Feature request
description: Suggest an improvement to the triggerdev Python library
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
Thanks for suggesting a feature. Please describe what you'd like.
- type: checkboxes
id: confirm
attributes:
label: Confirmation
options:
- label: I searched existing issues and found no duplicate.
required: true
- label: This is a feature request for the triggerdev Python library, not the Trigger.dev API or platform.
required: true
- type: textarea
id: use-case
attributes:
label: Use case
description: Describe the problem you are trying to solve or the workflow you want to improve.
validations:
required: true
- type: textarea
id: feature
attributes:
label: Proposed solution
description: A clear description of the feature or improvement you are requesting.
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives considered
description: Any alternative solutions or workarounds you have considered.
- type: textarea
id: context
attributes:
label: Additional context
description: Any additional context, screenshots, or examples.
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Summary

<!-- What does this PR do and why? -->

## Checklist

- [ ] All CI checks pass locally (`ruff check`, `ruff format --check`, `mypy`, `pyright`, `pytest`)
- [ ] New/changed code has type annotations
- [ ] Tests added or updated for the change
- [ ] Commit messages follow [Conventional Commits](https://www.conventionalcommits.org/)

## Test plan

<!-- How did you verify your changes? -->
58 changes: 58 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Contributing

Thanks for your interest in contributing to triggerdev-python.

## Bug reports and feature requests

Use the [issue templates](https://github.com/mehmetkr/triggerdev-python/issues/new/choose) to file bug reports or feature requests. Please search existing issues first to avoid duplicates.

For security vulnerabilities, see [SECURITY.md](SECURITY.md).

## Development setup

This project requires Python 3.10 or later and uses [uv](https://docs.astral.sh/uv/) for dependency management.

```bash
git clone https://github.com/mehmetkr/triggerdev-python.git
cd triggerdev-python
uv sync --frozen --all-extras
```

## Running checks

The CI pipeline runs these checks. Run them locally before opening a PR:

```bash
uv run ruff check src/ tests/ # lint
uv run ruff format --check src/ tests/ # format
uv run mypy src/ # type check (mypy strict)
uv run pyright --pythonpath .venv/bin/python src/ # type check (pyright strict)
uv run pytest -q # tests
```

To auto-fix lint and format issues:

```bash
uv run ruff check --fix src/ tests/
uv run ruff format src/ tests/
```

## Code style

- **Type annotations** on all functions and variables. The project enforces pyright strict and mypy strict with zero errors.
- **Ruff** handles linting and formatting. No additional configuration needed.
- **American English** in all documentation and comments.

## Pull requests

1. Fork the repository and create a branch from `main`.
2. Make your changes, ensuring all checks pass locally.
3. Write or update tests for your changes.
4. Use [Conventional Commits](https://www.conventionalcommits.org/) for your commit messages (e.g., `feat: add batch cancel`, `fix: handle empty response`).
5. Open a pull request using the provided template.

Pull requests require all CI checks to pass before merging.

## License

By contributing, you agree that your contributions will be licensed under the [MIT License](LICENSE).
21 changes: 21 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

## Supported versions

| Version | Supported |
|---------|-----------|
| Latest | Yes |

Only the latest published version receives security fixes.

## Reporting a vulnerability

**Do not open a public issue for security vulnerabilities.**

To report a vulnerability, use [GitHub's private vulnerability reporting](https://github.com/mehmetkr/triggerdev-python/security/advisories/new).

You will receive a response within 72 hours. If the report is accepted, a fix will be developed privately and released as a patch version.

## Scope

This policy covers the `triggerdev` Python package. For vulnerabilities in the Trigger.dev platform itself, report directly to [Trigger.dev](https://trigger.dev).