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
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Migrate to ruff formatter (replaces black)
fdf3066e3346c925faaf8fdc3746698588d77dad

# Reformatted imports after switching ruff isort to one-per-line
1e54be6ea46787429cd7a060bfa17187dbb6510a
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,7 @@ max-complexity = 10

[tool.ruff.lint.isort]
known-first-party = ["le_utils"]
combine-as-imports = true
# Match the prior reorder-python-imports style: one import per line,
# sorted case-insensitively rather than grouped by type.
force-single-line = true
order-by-type = false
4 changes: 3 additions & 1 deletion scripts/add_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
import logging
import os
import sys
from typing import Any, Dict, Optional
from typing import Any
from typing import Dict
from typing import Optional

try:
import langcodes
Expand Down
3 changes: 2 additions & 1 deletion scripts/generate_from_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
from glob import glob
from hashlib import md5
from importlib.metadata import version as get_version
from uuid import UUID, uuid3
from uuid import UUID
from uuid import uuid3

try:
FileNotFoundError
Expand Down
6 changes: 5 additions & 1 deletion tests/test_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@

import pytest

from le_utils.constants import completion_criteria, embed_content_request, embed_topics_request, learning_objectives, mastery_criteria
from le_utils.constants import completion_criteria
from le_utils.constants import embed_content_request
from le_utils.constants import embed_topics_request
from le_utils.constants import learning_objectives
from le_utils.constants import mastery_criteria

try:
# the jsonschema package for python 3.4 is too old, so if not present, we'll just skip
Expand Down
Loading