File tree Expand file tree Collapse file tree 8 files changed +32
-15
lines changed
Expand file tree Collapse file tree 8 files changed +32
-15
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,13 @@ repos:
2020 files : \.(cmake|CMakeLists\.txt)$
2121 exclude : ^(3rdparty/|build.*/|install/)
2222
23+ # Python import sorting
24+ - repo : https://github.com/pycqa/isort
25+ rev : 5.13.2
26+ hooks :
27+ - id : isort
28+ args : [--settings-path, setup.cfg]
29+
2330 # Ruff Python linter
2431 - repo : https://github.com/charliermarsh/ruff-pre-commit
2532 rev : v0.14.9
Original file line number Diff line number Diff line change 1- from pathlib import Path
2- from collections import defaultdict
3- from datetime import datetime
4- import csv
51import argparse
6- import subprocess
7- import yaml
8- import shutil
2+ import csv
93import json
10- from jinja2 import Environment , FileSystemLoader
114import logging
5+ import shutil
6+ import subprocess
127import sys
8+ from collections import defaultdict
9+ from datetime import datetime
10+ from pathlib import Path
1311from zoneinfo import ZoneInfo # type: ignore
1412
13+ import yaml
14+ from jinja2 import Environment , FileSystemLoader
15+
1516logging .basicConfig (level = logging .INFO , format = "%(levelname)s: %(message)s" )
1617logger = logging .getLogger (__name__ )
1718
@@ -699,8 +700,8 @@ def main():
699700 pass
700701
701702 # Helper: compute evenly spaced dates for current semester (MSK)
702- from datetime import date , timedelta
703703 import calendar
704+ from datetime import date , timedelta
704705
705706 def _abbr (day : date ) -> str :
706707 return f"{ day .day } { calendar .month_abbr [day .month ]} "
Original file line number Diff line number Diff line change 22Pytest configuration and shared fixtures for scoreboard tests.
33"""
44
5- import pytest
6- import tempfile
5+ import csv
76import shutil
7+ import tempfile
88from pathlib import Path
9+
10+ import pytest
911import yaml
10- import csv
1112
1213
1314@pytest .fixture
Original file line number Diff line number Diff line change 33"""
44
55import csv
6+
67from main import load_performance_data
78
89
Original file line number Diff line number Diff line change 11import argparse
2+ import csv
23import os
34import re
5+
46import xlsxwriter
5- import csv
67
78# -------------------------------
89# Helpers and configuration
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22
33import os
4+ import platform
45import shlex
56import subprocess
6- import platform
77from pathlib import Path
88
99
Original file line number Diff line number Diff line change 11import csv
2+ from pathlib import Path
3+
24import numpy as np
35from xlsxwriter .workbook import Workbook
4- from pathlib import Path
56
67
78def get_project_path ():
Original file line number Diff line number Diff line change @@ -4,3 +4,8 @@ exclude =
44 3rdparty
55 venv
66 .git
7+
8+ [tool:isort]
9+ skip =
10+ venv
11+ multi_line_output = 3
You can’t perform that action at this time.
0 commit comments