Skip to content

Commit cd6adc4

Browse files
committed
Refactored the uv actions, eliminated black
1 parent 1b946f4 commit cd6adc4

58 files changed

Lines changed: 51 additions & 108 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/black.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/ci_cov.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030
enable-cache: true
31+
cache-dependency-glob: "**/pyproject.toml"
3132

3233
- name: Create virtual environment
3334
run: |

.github/workflows/docs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
with:
2929
python-version: '3.10'
3030
enable-cache: true
31+
cache-dependency-glob: "**/pyproject.toml"
3132

3233
- name: Create virtual environment
3334
run: |

.github/workflows/links.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
with:
2525
python-version: '3.12'
2626
enable-cache: true
27+
cache-dependency-glob: "**/pyproject.toml"
2728

2829
- name: Create virtual environment
2930
run: |

.github/workflows/mdformat.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828

2929
- name: Run mdformat (check only)
3030
run: |
31-
run: uvx --with "mdformat-myst>=0.1.5" mdformat --check --wrap no --number docs/ *.md
31+
run: uvx mdformat --check --wrap no --number docs/ *.md

.github/workflows/notebook_tests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
with:
3838
python-version: ${{ matrix.python-version }}
3939
enable-cache: true
40+
cache-dependency-glob: "**/pyproject.toml"
4041

4142
- name: Create virtual environment
4243
run: |

.github/workflows/spec_tests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828
enable-cache: true
29+
cache-dependency-glob: "**/pyproject.toml"
2930

3031
- name: Create virtual environment
3132
run: |

.github/workflows/test_installer.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
enable-cache: true
22+
cache-dependency-glob: "**/pyproject.toml"
2223

2324
- name: Create work directory
2425
run: mkdir workdir

hed/errors/error_messages.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def val_error_extra_column(column_name):
197197

198198
@hed_error(ValidationErrors.SIDECAR_AND_OTHER_COLUMNS)
199199
def val_error_sidecar_with_column(column_names):
200-
return f"You cannot use a column name in curly braces and to designate a tag column. " f"Found {column_names}."
200+
return f"You cannot use a column name in curly braces and to designate a tag column. Found {column_names}."
201201

202202

203203
@hed_error(ValidationErrors.DUPLICATE_COLUMN_IN_LIST)
@@ -216,7 +216,7 @@ def val_error_duplicate_column_between_sources(column_number, column_name, list_
216216
f"Each entry must be unique."
217217
)
218218
else:
219-
return f"Found column number {column_number} in the following inputs: {list_names}. " f"Each entry must be unique."
219+
return f"Found column number {column_number} in the following inputs: {list_names}. Each entry must be unique."
220220

221221

222222
@hed_error(ValidationErrors.HED_BLANK_COLUMN, default_severity=ErrorSeverity.WARNING)
@@ -360,8 +360,7 @@ def sidecar_na_used(column_name):
360360
@hed_tag_error(DefinitionErrors.DEF_TAG_IN_DEFINITION, actual_code=ValidationErrors.DEFINITION_INVALID)
361361
def def_error_def_tag_in_definition(tag, def_name):
362362
return (
363-
f"Invalid tag {tag} found in definition for {def_name}. "
364-
f"Def, Def-expand, and Definition tags cannot be in definitions."
363+
f"Invalid tag {tag} found in definition for {def_name}. Def, Def-expand, and Definition tags cannot be in definitions."
365364
)
366365

367366

hed/errors/schema_error_messages.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def schema_error_SCHEMA_IN_LIBRARY_INVALID(tag, bad_library):
190190

191191
@hed_error(SchemaAttributeErrors.SCHEMA_MISSING_EXTRA_VALUE, default_severity=ErrorSeverity.WARNING)
192192
def schema_error_SCHEMA_MISSING_EXTRA_VALUE(section_name, column_name, row_index):
193-
return f"Extras section '{section_name}' has an empty value in column '{column_name}' " f"at row {row_index}."
193+
return f"Extras section '{section_name}' has an empty value in column '{column_name}' at row {row_index}."
194194

195195

196196
@hed_error(
@@ -199,8 +199,7 @@ def schema_error_SCHEMA_MISSING_EXTRA_VALUE(section_name, column_name, row_index
199199
)
200200
def schema_error_annotation_prefix_missing(tag, annotation_value, prefix):
201201
return (
202-
f"Tag '{tag}' has annotation '{annotation_value}' with prefix '{prefix}' "
203-
f"that is not defined in the Prefixes section."
202+
f"Tag '{tag}' has annotation '{annotation_value}' with prefix '{prefix}' that is not defined in the Prefixes section."
204203
)
205204

206205

0 commit comments

Comments
 (0)