Skip to content

Commit f4037f3

Browse files
Merge pull request #261 from daniel-montanari/upgrade-formatter
Upgrade formatters
2 parents 52a625a + 03c6f85 commit f4037f3

29 files changed

Lines changed: 40 additions & 32 deletions

.git-blame-ignore-revs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
1025e183b346ddbff343e608cb1b688098bb7c40
1+
1025e183b346ddbff343e608cb1b688098bb7c40
2+
dee1f81b51e64591cff3b0cffea4f56975b9c91d

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
- name: Run tests with tox
3333
run: |
3434
tox -e py
35-
- name: Check formatting
35+
- name: Check formatting with pre-commit
3636
run: |
37-
tox -e black
37+
tox -e pre-commit
3838
- name: Run mypy with tox
3939
run: |
4040
tox -e mypy

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ repos:
44
hooks:
55
- id: check-yaml
66
- repo: https://github.com/psf/black
7-
rev: 22.3.0
7+
rev: 26.5.1
88
hooks:
99
- id: black

examples/function_generator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Examples on how to use the function generator driver
33
"""
4+
45
import time
56

67
from fixate.core.common import TestClass, TestList

examples/jig_driver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This file is just a test playground that shows how the update jig classes will
33
fit together.
44
"""
5+
56
from __future__ import annotations
67
from dataclasses import dataclass, field
78
from fixate import (

examples/programmable_power_supply.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Examples on how to use the programmable power supply driver works
33
"""
4+
45
import time
56

67
from fixate.core.common import TestClass, TestList

examples/test_script.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This is a test script that shows basic use case for the fixate library
33
"""
4+
45
from fixate.core.common import TestClass, TestList
56
from fixate.core.checks import *
67
from fixate.core.ui import *

src/fixate/config/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Drivers are hard coded into the config to prevent issues arising from auto discovery
55
Must ensure driver imports are infallible to prevent program crash on start
66
"""
7+
78
from fixate.config.helper import (
89
load_dict_config,
910
load_yaml_config,

src/fixate/core/checks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This module is used to allow for tests to test values against criteria.
33
It should implement necessary logging functions and report success or failure.
44
"""
5+
56
from dataclasses import dataclass, field
67
from typing import Any, Callable, Iterable, Optional
78
import logging

src/fixate/core/ui.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module details user input api
33
"""
4+
45
import time
56
from queue import Queue, Empty
67
from pubsub import pub

0 commit comments

Comments
 (0)