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
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI

on:
pull_request:
push:
branches: ["main"]

jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v1
- run: uv sync --dev
- run: uv run pre-commit run --all-files
- run: uv run pytest
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.11
hooks:
- id: ruff
- id: ruff-format
24 changes: 24 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "python-usajobsapi"
version = "0.1.0"
description = "A Python wrapper for the USA Jobs REST API."
readme = "README.md"
requires-python = ">=3.9"
license = {file = "LICENSE"}
dependencies = []

[tool.hatch.build.targets.wheel]
packages = ["usajobsapi"]

[dependency-groups]
dev = [
"pre-commit>=4.3.0",
"pytest>=8.4.1",
"ruff>=0.12.11",
]

[tool.ruff]
line-length = 88
target-version = "py39"

[tool.pytest.ini_options]
addopts = "-q"
testpaths = ["tests"]
6 changes: 6 additions & 0 deletions tests/test_placeholder.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"""Placeholder tests for USAJobs API package."""


def test_placeholder() -> None:
"""A trivial test to ensure the test suite runs."""
assert True
3 changes: 3 additions & 0 deletions usajobsapi/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""Top-level package for USAJobs API wrapper."""

__all__: list[str] = []
Loading
Loading