Skip to content

Commit 8e94251

Browse files
committed
Fix CI pipeline
1 parent 9e66837 commit 8e94251

File tree

6 files changed

+92
-21
lines changed

6 files changed

+92
-21
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ formatting: codestyle
2727
#* Linting
2828
.PHONY: test
2929
test:
30-
PYTHONPATH=$(PYTHONPATH) uv run pytest -c pyproject.toml
30+
uv run pytest -c pyproject.toml --cov=lighter --cov-report=term-missing
3131

3232
.PHONY: check-codestyle
3333
check-codestyle:
3434
uvx isort --diff --check-only --settings-path pyproject.toml ./
3535
uvx black --diff --check --config pyproject.toml ./
36-
uvx pylint lighter
36+
uv run pylint lighter
3737

3838
.PHONY: mypy
3939
mypy:

lighter/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
Lighter is a framework for streamlining deep learning experiments with configuration files.
33
"""
44

5+
from .system import LighterSystem
6+
57
__version__ = "0.0.3a11"
68

79
from .utils.logging import _setup_logging
810

911
_setup_logging()
10-
11-
from .system import LighterSystem

pyproject.toml

+5-7
Original file line numberDiff line numberDiff line change
@@ -49,24 +49,22 @@ Homepage = "https://github.com/lighter/lighter"
4949
Repository = "https://github.com/lighter/lighter"
5050

5151
[project.scripts]
52-
lighter = "lighter.utils.runner:cli"
52+
lighter = "lighter.engine.runner:cli"
5353

5454
[dependency-groups]
55-
tests = [
55+
dev = [
56+
"typing-extensions>=4.4.0,<5",
57+
"aiohttp>=3.8.3,<4",
5658
"pytest>=7.4.0,<8",
5759
"pytest-html>=3.2.0,<4",
5860
"pytest-cov>=4.0.0,<5",
5961
"coverage>=7.0.5,<8",
6062
"coverage-badge>=1.1.0,<2",
61-
]
62-
dev = [
63-
"typing-extensions>=4.4.0,<5",
64-
"aiohttp>=3.8.3,<4",
63+
"pylint>=3.3.3",
6564
]
6665

6766
[tool.uv]
6867
default-groups = [
69-
"tests",
7068
"dev",
7169
]
7270

tests/unit/test_callbacks_writer_table.py

-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
from unittest import mock
33

44
import pandas as pd
5-
import pytest
65
import torch
76
from pytorch_lightning import Trainer
87

98
from lighter.callbacks.writer.table import LighterTableWriter
10-
from lighter.system import LighterSystem
119

1210

1311
def custom_writer(tensor):

tests/unit/test_system.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from unittest.mock import Mock, patch
1+
from unittest.mock import Mock
22

33
import pytest
44
import torch

uv.lock

+82-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)