Skip to content

Commit e84a9ef

Browse files
committed
Apply linter
1 parent da3e97f commit e84a9ef

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- run: pip install -r requirements_github.txt
2727
- name: Lint with Ruff
2828
run: |
29-
ruff check --select I --output-format=github .
29+
ruff check --output-format=github .
3030
- name: Test with pytest
3131
run: |
3232
python -m pytest tests

dataset.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import jax
55
import tensorflow as tf
66

7-
87
AUTOTUNE = tf.data.AUTOTUNE
98

109

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[project]
2+
name = "naraim"
3+
requires-python = "==3.11"
4+
5+
[tool.ruff]
6+
line-length = 120
7+
8+
[tool.ruff.lint]
9+
select = ["E", "F", "I"]

trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
from torch.utils.tensorboard import SummaryWriter
1717
from tqdm import tqdm, trange
1818

19-
from exponential_scheduler import warmup_exponential_decay_cooldown_scheduler
2019
from dataset import prefetch
20+
from exponential_scheduler import warmup_exponential_decay_cooldown_scheduler
2121
from model import ClassificationModel, PretrainingModel
2222
from model.classification import NoTransformerClassificationModel
2323

0 commit comments

Comments
 (0)