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
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ repos:
files: \.(cmake|CMakeLists\.txt)$
exclude: ^(3rdparty/|build.*/|install/)

# Python import sorting
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: [--settings-path, setup.cfg]

# Ruff Python linter
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.14.9
Expand Down
19 changes: 10 additions & 9 deletions scoreboard/main.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
from pathlib import Path
from collections import defaultdict
from datetime import datetime
import csv
import argparse
import subprocess
import yaml
import shutil
import csv
import json
from jinja2 import Environment, FileSystemLoader
import logging
import shutil
import subprocess
import sys
from collections import defaultdict
from datetime import datetime
from pathlib import Path
from zoneinfo import ZoneInfo # type: ignore

import yaml
from jinja2 import Environment, FileSystemLoader

logging.basicConfig(level=logging.INFO, format="%(levelname)s: %(message)s")
logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -699,8 +700,8 @@ def main():
pass

# Helper: compute evenly spaced dates for current semester (MSK)
from datetime import date, timedelta
import calendar
from datetime import date, timedelta

def _abbr(day: date) -> str:
return f"{day.day} {calendar.month_abbr[day.month]}"
Expand Down
7 changes: 4 additions & 3 deletions scoreboard/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
Pytest configuration and shared fixtures for scoreboard tests.
"""

import pytest
import tempfile
import csv
import shutil
import tempfile
from pathlib import Path

import pytest
import yaml
import csv


@pytest.fixture
Expand Down
1 change: 1 addition & 0 deletions scoreboard/tests/test_load_performance_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""

import csv

from main import load_performance_data


Expand Down
3 changes: 2 additions & 1 deletion scripts/create_perf_table.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import argparse
import csv
import os
import re

import xlsxwriter
import csv

# -------------------------------
# Helpers and configuration
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_tests.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env python3

import os
import platform
import shlex
import subprocess
import platform
from pathlib import Path


Expand Down
3 changes: 2 additions & 1 deletion scripts/variants_generation.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import csv
from pathlib import Path

import numpy as np
from xlsxwriter.workbook import Workbook
from pathlib import Path


def get_project_path():
Expand Down
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ exclude =
3rdparty
venv
.git

[tool:isort]
skip =
venv
multi_line_output = 3
Loading