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
4 changes: 2 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- name: Run pytest
run: just pytest

- name: Run ruff checks
run: just check
- name: Run ruff lint and checks
run: just lint

- name: Run mypy checks
run: just mypy
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ repos:
language: system
always_run: true
pass_filenames: false
- id: check
name: Formatting and linting
entry: just check
- id: lint
name: Linting and checking
entry: just lint
language: system
always_run: true
pass_filenames: false
13 changes: 5 additions & 8 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ pytest:
echo "> Running python tests..."
uv run --frozen pytest -v

# Run ruff checks
# Lint and check the codebase
[group("tests")]
check:
lint:
echo "> Running ruff code quality check..."
uv run --frozen ruff check
echo "> Running ruff format check..."
Expand All @@ -48,7 +48,7 @@ format:

# Run all tests
[group("tests")]
test: check mypy pytest
test: lint mypy pytest

# Build mkdocs site
[group("docs")]
Expand All @@ -60,7 +60,7 @@ build-docs:
[group("docs")]
serve-docs: build-docs
echo "> Serving docs..."
uv run mkdocs serve
uv run mkdocs serve --open -w docs -w python_ntfy

# Build the package
[group("release")]
Expand All @@ -72,10 +72,7 @@ build:
# Bump version, push and create draft release
[confirm("Are you sure you want to draft a release? [y/N]")]
[group("release")]
draft-release bump='patch':
@just _bump_version {{ bump }}
@just _push_version
@just _create_draft_release
draft-release bump='patch': (_bump_version bump) _push_version _create_draft_release

_bump_version bump:
git checkout main
Expand Down
26 changes: 13 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ module-root = ""

[dependency-groups]
dev = [
"mkdocstrings[python]>=0.26.2,<0.31.0",
"mypy>=1.12.0,<2.0.0",
"pytest>=7.4.1,<9.0.0",
"python-dotenv>=1.0.0,<2.0.0",
"pytest-asyncio>=0.21.1,<1.2.0",
"pytest-codecov>=0.5.1,<0.8.0",
"ruff>=0.7,<0.13",
"mkdocs-material>=9.5.41,<10.0.0",
"mkdocstrings-python>=1.12.1,<2.0.0",
"types-pygments>=2.18.0.20240506",
"types-colorama>=0.4.15.20240311",
"types-requests>=2.32.0.20241016",
"types-setuptools>=75.2.0.20241018,<81.0.0.0",
"mkdocstrings[python]>=0.26.2",
"mypy >=1.12.0",
"pytest >=7.4.1",
"python-dotenv >=1.0.0",
"pytest-asyncio >=0.21.1",
"pytest-codecov >=0.5.1",
"ruff >=0.7",
"mkdocs-material >=9.5.41",
"mkdocstrings-python >=1.12.1",
"types-pygments >=2.18.0.20240506",
"types-colorama >=0.4.15.20240311",
"types-requests >=2.32.0.20241016",
"types-setuptools >=75.2.0.20241018",
]

[tool.ruff.lint.isort]
Expand Down
20 changes: 10 additions & 10 deletions uv.lock

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