Skip to content

Commit c34bd5b

Browse files
authored
Upgrade black formatter dependency (#278)
1 parent 0f20049 commit c34bd5b

File tree

15 files changed

+19
-11
lines changed

15 files changed

+19
-11
lines changed

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ jobs:
1313
python-version: 3.9
1414
- name: Check formatting
1515
run: |
16-
pip install click==8.0.4 black==21.6b0
16+
pip install black==25.1.0
1717
black --check --diff ./

src/fprime/common/error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Error and exception definitions for fprime """
1+
"""Error and exception definitions for fprime"""
22

33

44
class FprimeException(Exception):

src/fprime/fbuild/builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Supplies high-level build functions to the greater fprime helper CLI. This maps from user command space to the specific
33
build system handler underneath.
44
"""
5+
56
import copy
67
import os
78
import re

src/fprime/fbuild/check.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
""" fprime.fbuild.check: check target implementation
1+
"""fprime.fbuild.check: check target implementation
22
33
The 'check' target is designed to call CTest executable(s) to run tests. It is a composite target used to build and run
44
the test targets.
55
"""
6+
67
import shutil
78
import subprocess
89
import sys

src/fprime/fbuild/enumerator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" fprime.fbuild.enumerator: build module enumeration strategies
1+
"""fprime.fbuild.enumerator: build module enumeration strategies
22
33
This file contains the necessary enumeration strategies for build system targets. Enumeration is used to determine
44
what targets are available in the given contextual path (working directory). The results of the enumeration are then
@@ -7,6 +7,7 @@
77
Note: this file was created with the help of generative AI.
88
99
"""
10+
1011
from abc import ABC, abstractmethod
1112
from argparse import Action
1213
from pathlib import Path

src/fprime/fbuild/gcovr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" fprime.fbuild.gcovr: coverage target implementations """
1+
"""fprime.fbuild.gcovr: coverage target implementations"""
22

33
import itertools
44
import shutil

src/fprime/fbuild/target.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" fprime.fbuild.target: build target support
1+
"""fprime.fbuild.target: build target support
22
33
Contains the supporting definitions for build targets. These targets are used to run various parts of the build and may
44
contain build system targets (e.g. CMake target invokers), and miscellaneous targets that perform other actions.

src/fprime/fbuild/target_definitions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
""" fprime.fbuild.target_definitions: targets definitions for fprime-util
1+
"""fprime.fbuild.target_definitions: targets definitions for fprime-util
22
33
Defines all the targets for fprime-util. Each target is a singleton that is registered into the list of all targets and
44
as such, each target need only be instantiated but need not be assigned to anything.
55
66
"""
7+
78
from .gcovr import GcovrTarget
89
from .check import CheckTarget
910
from fprime.fbuild.check import CheckTarget

src/fprime/fpp/utils/fpp_to_json/node_structs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
2-
This file defines the structures for the annotatable elements in the fpp AST. These
3-
are separate from the converters itself such that it may be possible to write
2+
This file defines the structures for the annotatable elements in the fpp AST. These
3+
are separate from the converters itself such that it may be possible to write
44
converters from other languages to these Python data structures.
55
66
If extending this utility, the first step would be to add a new class for the data

src/fprime/fpp/visualize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" fprime.fpp.visualize: Command line targets for fprime-util visualize
1+
"""fprime.fpp.visualize: Command line targets for fprime-util visualize
22
33
@author thomas-bc
44
"""

0 commit comments

Comments
 (0)