Skip to content

refactor: ruff formatting updates#197

Merged
tsutterley merged 4 commits intomainfrom
dev
Dec 31, 2025
Merged

refactor: ruff formatting updates#197
tsutterley merged 4 commits intomainfrom
dev

Conversation

@tsutterley
Copy link
Member

ci: add ruff formatting check
ci: add coverage comment to PRs

@github-actions
Copy link
Contributor

github-actions bot commented Dec 23, 2025

Coverage

Coverage for Python on windows-latest
FileStmtsMissCoverMissing
__init__.py21290%39, 58
eop.py1763381%75–77, 82–84, 87–89, 91, 94, 122–123, 184, 190–191, 196–198, 201–202, 204, 207, 259, 280, 302–303, 387–388, 412–414, 449
time.py70320770%218, 235–236, 353, 381–382, 489–490, 579, 593–594, 695, 701, 754, 764–765, 840, 843, 847, 852, 855, 859, 864, 905–910, 913, 927, 956–957, 963, 1024, 1101–1102, 1125, 1134, 1144, 1199–1200, 1206, 1226, 1230, 1234, 1254, 1259, 1264, 1268–1269, 1273, 1277–1279, 1283–1284, 1288–1292, 1294–1295, 1305–1306, 1313–1314, 1319, 1324, 1329, 1333–1334, 1338, 1342–1343, 1347–1348, 1352–1355, 1357–1358, 1470, 1514–1516, 1521–1523, 1531–1533, 1535, 1538–1540, 1548–1550, 1552, 1671, 1675–1676, 1680–1681, 1683–1686, 1688–1689, 1691–1693, 1695, 1697–1698, 1741–1744, 1750–1755, 1757–1758, 1761–1762, 1769–1772, 1774–1775, 1812–1813, 1815, 1817–1818, 1820, 1824, 1826–1828, 1832–1833, 1835–1836, 1840, 1842–1843, 1845, 1847, 1849, 1851, 1853, 1948, 1957–1958, 1960, 1962, 1964–1966, 1968, 1972, 1974, 1982, 1984–1985, 1989–1990, 1992–1993, 1997, 1999–2000, 2002, 2004, 2006, 2008, 2010, 2137–2138, 2141–2143, 2151–2153, 2155, 2218, 2227–2229, 2237–2239, 2241, 2257–2259
utilities.py48821955%73–75, 98–99, 113, 129–133, 135, 153–154, 156, 162, 169, 171, 187–189, 191–193, 195–196, 203–205, 207–209, 226, 241–244, 266–269, 271–273, 275, 277–279, 281–282, 332–333, 337–340, 342, 358–359, 441–444, 487–488, 490–493, 495, 497, 499, 501–502, 504–505, 507, 510, 512–513, 515–516, 518–519, 521–522, 524–525, 527, 529, 581, 650–653, 676–683, 685, 726–727, 729, 731–739, 742–743, 745, 750–751, 753–754, 756–757, 759–760, 762, 831, 833, 835–836, 838–840, 842, 939, 946, 948–949, 966–967, 971–972, 974, 1083, 1096–1101, 1139, 1152–1157, 1193, 1208–1213, 1227–1232, 1281–1282, 1284, 1286, 1288, 1290–1291, 1293–1294, 1296, 1298–1300, 1303–1304, 1308–1309, 1311, 1313, 1322–1323, 1325–1326, 1328–1329, 1331–1332, 1334, 1392, 1401, 1411–1412, 1478–1484, 1533, 1535–1536, 1538–1539, 1541, 1543–1544
version.py50100% 
TOTAL139346166% 

Tests Skipped Failures Errors Time
37 0 💤 0 ❌ 0 🔥 14m 15s ⏱️

@github-actions
Copy link
Contributor

github-actions bot commented Dec 23, 2025

Coverage

Coverage for Python on macos-latest
FileStmtsMissCoverMissing
__init__.py21290%39, 58
eop.py1763381%75–77, 82–84, 87–89, 91, 94, 122–123, 184, 190–191, 196–198, 201–202, 204, 207, 259, 280, 302–303, 387–388, 412–414, 449
time.py70320770%218, 235–236, 353, 381–382, 489–490, 579, 593–594, 695, 701, 754, 764–765, 840, 843, 847, 852, 855, 859, 864, 905–910, 913, 927, 956–957, 963, 1024, 1101–1102, 1125, 1134, 1144, 1199–1200, 1206, 1226, 1230, 1234, 1254, 1259, 1264, 1268–1269, 1273, 1277–1279, 1283–1284, 1288–1292, 1294–1295, 1305–1306, 1313–1314, 1319, 1324, 1329, 1333–1334, 1338, 1342–1343, 1347–1348, 1352–1355, 1357–1358, 1470, 1514–1516, 1521–1523, 1531–1533, 1535, 1538–1540, 1548–1550, 1552, 1671, 1675–1676, 1680–1681, 1683–1686, 1688–1689, 1691–1693, 1695, 1697–1698, 1741–1744, 1750–1755, 1757–1758, 1761–1762, 1769–1772, 1774–1775, 1812–1813, 1815, 1817–1818, 1820, 1824, 1826–1828, 1832–1833, 1835–1836, 1840, 1842–1843, 1845, 1847, 1849, 1851, 1853, 1948, 1957–1958, 1960, 1962, 1964–1966, 1968, 1972, 1974, 1982, 1984–1985, 1989–1990, 1992–1993, 1997, 1999–2000, 2002, 2004, 2006, 2008, 2010, 2137–2138, 2141–2143, 2151–2153, 2155, 2218, 2227–2229, 2237–2239, 2241, 2257–2259
utilities.py48821955%73–75, 98–99, 113, 129–133, 135, 153–154, 156, 162, 169, 171, 187–189, 191–193, 195–196, 203–205, 207–209, 226, 241–244, 266–269, 271–273, 275, 277–279, 281–282, 332–333, 337–340, 342, 358–359, 441–444, 487–488, 490–493, 495, 497, 499, 501–502, 504–505, 507, 510, 512–513, 515–516, 518–519, 521–522, 524–525, 527, 529, 581, 650–653, 676–683, 685, 726–727, 729, 731–739, 742–743, 745, 750–751, 753–754, 756–757, 759–760, 762, 831, 833, 835–836, 838–840, 842, 939, 946, 948–949, 966–967, 971–972, 974, 1083, 1096–1101, 1139, 1152–1157, 1193, 1208–1213, 1227–1232, 1281–1282, 1284, 1286, 1288, 1290–1291, 1293–1294, 1296, 1298–1300, 1303–1304, 1308–1309, 1311, 1313, 1322–1323, 1325–1326, 1328–1329, 1331–1332, 1334, 1392, 1401, 1411–1412, 1478–1484, 1533, 1535–1536, 1538–1539, 1541, 1543–1544
version.py50100% 
TOTAL139346166% 

Tests Skipped Failures Errors Time
37 0 💤 0 ❌ 0 🔥 19m 56s ⏱️

@github-actions
Copy link
Contributor

github-actions bot commented Dec 23, 2025

Coverage

Coverage for Python on ubuntu-latest
FileStmtsMissCoverMissing
__init__.py21290%39, 58
eop.py1763381%75–77, 82–84, 87–89, 91, 94, 122–123, 184, 190–191, 196–198, 201–202, 204, 207, 259, 280, 302–303, 387–388, 412–414, 449
time.py70320770%218, 235–236, 353, 381–382, 489–490, 579, 593–594, 695, 701, 754, 764–765, 840, 843, 847, 852, 855, 859, 864, 905–910, 913, 927, 956–957, 963, 1024, 1101–1102, 1125, 1134, 1144, 1199–1200, 1206, 1226, 1230, 1234, 1254, 1259, 1264, 1268–1269, 1273, 1277–1279, 1283–1284, 1288–1292, 1294–1295, 1305–1306, 1313–1314, 1319, 1324, 1329, 1333–1334, 1338, 1342–1343, 1347–1348, 1352–1355, 1357–1358, 1470, 1514–1516, 1521–1523, 1531–1533, 1535, 1538–1540, 1548–1550, 1552, 1671, 1675–1676, 1680–1681, 1683–1686, 1688–1689, 1691–1693, 1695, 1697–1698, 1741–1744, 1750–1755, 1757–1758, 1761–1762, 1769–1772, 1774–1775, 1812–1813, 1815, 1817–1818, 1820, 1824, 1826–1828, 1832–1833, 1835–1836, 1840, 1842–1843, 1845, 1847, 1849, 1851, 1853, 1948, 1957–1958, 1960, 1962, 1964–1966, 1968, 1972, 1974, 1982, 1984–1985, 1989–1990, 1992–1993, 1997, 1999–2000, 2002, 2004, 2006, 2008, 2010, 2137–2138, 2141–2143, 2151–2153, 2155, 2218, 2227–2229, 2237–2239, 2241, 2257–2259
utilities.py48821955%73–75, 98–99, 113, 129–133, 135, 153–154, 156, 162, 169, 171, 187–189, 191–193, 195–196, 203–205, 207–209, 226, 241–244, 266–269, 271–273, 275, 277–279, 281–282, 332–333, 337–340, 342, 358–359, 441–444, 487–488, 490–493, 495, 497, 499, 501–502, 504–505, 507, 510, 512–513, 515–516, 518–519, 521–522, 524–525, 527, 529, 581, 650–653, 676–683, 685, 726–727, 729, 731–739, 742–743, 745, 750–751, 753–754, 756–757, 759–760, 762, 831, 833, 835–836, 838–840, 842, 939, 946, 948–949, 966–967, 971–972, 974, 1083, 1096–1101, 1139, 1152–1157, 1193, 1208–1213, 1227–1232, 1281–1282, 1284, 1286, 1288, 1290–1291, 1293–1294, 1296, 1298–1300, 1303–1304, 1308–1309, 1311, 1313, 1322–1323, 1325–1326, 1328–1329, 1331–1332, 1334, 1392, 1401, 1411–1412, 1478–1484, 1533, 1535–1536, 1538–1539, 1541, 1543–1544
version.py50100% 
TOTAL139346166% 

Tests Skipped Failures Errors Time
37 0 💤 0 ❌ 0 🔥 16m 56s ⏱️

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request applies ruff formatting to the entire codebase and adds CI enhancements for formatting checks and coverage reporting. The changes involve standardizing code formatting, updating Python version requirements, and improving CI workflows.

Key changes:

  • Applied ruff formatting across all Python modules, converting from single to double quotes
  • Updated minimum Python version from 3.6 to 3.9 and added support declarations for Python 3.13-3.14
  • Added GitHub Actions workflow for ruff format checking on pull requests
  • Enhanced test workflow with coverage comment generation

Reviewed changes

Copilot reviewed 9 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
timescale/version.py Removed u prefix from docstring, added blank line after docstring
timescale/utilities.py Extensive formatting updates: quote style change, spacing, line breaks, added dateutil to dependencies doc
timescale/time.py Extensive formatting updates: quote style change, spacing, line breaks, dictionary and expression formatting
timescale/eop.py Quote style updates, spacing improvements, line breaks
timescale/__init__.py Docstring formatting, blank line additions
pyproject.toml Removed authors list, updated Python requirement to 3.9+, added ruff config, changed quote style, added Python 3.13-3.14 classifiers
pixi.lock Updated package hash and Python requirement
MANIFEST.in Changed exclusion pattern from *.cfg to *.cff, added new exclusions
.gitignore Added *.mat, pytest.xml, coverage.xml
.github/workflows/ruff-format.yml New workflow for ruff format checking
.github/workflows/python-request.yml Added coverage comment generation step

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tsutterley tsutterley merged commit dd0ada7 into main Dec 31, 2025
4 checks passed
@tsutterley tsutterley deleted the dev branch December 31, 2025 00:27
@tsutterley tsutterley restored the dev branch December 31, 2025 00:27
@tsutterley tsutterley deleted the dev branch December 31, 2025 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant