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
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
interval: daily
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: CI
on:
pull_request:
paths:
- 'my_pkg/**'
- 'my_pkg/**' # todo: change to your package name
- 'tests/**'
- '.github/workflows/ci.yml'
- 'pyproject.toml'
- 'poetry.lock'
- 'uv.lock'
workflow_dispatch:
jobs:
tests:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ jobs:
- run: uv python install 3.11
- run: make
- run: make check
- run: make mypy
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v5.0.0
hooks:
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- id: no-commit-to-branch
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
rev: v0.8.4
hooks:
- id: ruff-format
args: [ --preview ]
args: [ --preview, --config=pyproject.toml ]
- id: ruff
args: [ --preview, --fix]
args: [ --preview, --fix,--unsafe-fixes, --config=pyproject.toml ]

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.5.4
rev: 0.5.13
hooks:
- id: uv-lock
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
.PHONY: help
.PHONY: default
default: install


install:
uv sync --all-extras --frozen
uv sync --all-extras --all-groups --frozen
uv tool install pre-commit --with pre-commit-uv --force-reinstall

.PHONY: default
default: install
update:
uv lock
uvx pre-commit autoupdate
$(MAKE) install

test:
uv run pytest
Expand All @@ -15,3 +20,6 @@ check:

coverage:
uv run pytest --cov=ml_orchestrator --cov-report=xml

mypy:
uv tool run mypy . --config-file pyproject.toml
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[project]
name = "my-pkg"
name = "my-pkg" # todo: change to your package name
dynamic = ["version"]
description = ""
authors = [
{name = "DanielAvdar", email = "66269169+DanielAvdar@users.noreply.github.com"},
{name = "DanielAvdar", email = "66269169+DanielAvdar@users.noreply.github.com"}, # todo: change to your name and email
]
license = {text = "MIT"}
readme = "README.md"
Expand All @@ -27,11 +27,11 @@ dev = [
]

[tool.hatch.build.targets.sdist]
only-include = ["my_pkg",]
only-include = ["my_pkg",] # todo: change to your package name
source = "."

[tool.hatch.build.targets.wheel]
only-include = ["my_pkg",]
only-include = ["my_pkg",] # todo: change to your package name
source = "."


Expand All @@ -56,7 +56,6 @@ fixable = ["ALL"]

[tool.ruff.lint.isort]
combine-as-imports = true
section-order = ["future", "standard-library", "first-party", "local-folder", "third-party"]
[tool.mypy]
python_version = "3.11"
disallow_untyped_defs = true
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

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

Loading