Skip to content

Commit

Permalink
Merge pull request #701 from hed-standard/master
Browse files Browse the repository at this point in the history
Prepare for release 0.3.0
  • Loading branch information
VisLab authored Jun 20, 2023
2 parents 6af6b24 + 2f01b91 commit b725048
Show file tree
Hide file tree
Showing 224 changed files with 61,058 additions and 5,702 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@ version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
target-branch: "develop"
schedule:
interval: "weekly"
- package-ecosystem: "pip"
directory: "/"
target-branch: "develop"
schedule:
interval: "weekly"

- package-ecosystem: gitsubmodule
schedule:
interval: "daily"
target-branch: "develop"
directory: /
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
with:
coverageCommand: coverage xml
debug: true
uses: paambaati/codeclimate-action@v3.2.0
uses: paambaati/codeclimate-action@v4.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

43 changes: 43 additions & 0 deletions .github/workflows/spec_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Spec_tests

on:
push:
branches: ["*"]
pull_request:
branches: ["*"]

jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest]
python-version: [3.9]

runs-on: ${{ matrix.platform }}

steps:
- name: Checkout hed-python
uses: actions/checkout@v3
with:
submodules: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade --upgrade-strategy eager pip
pip install -r requirements.txt
- name: Test with unittest
run: |
python -m unittest spec_tests/test_errors.py > test_results.txt
- name: Upload spec test results
uses: actions/upload-artifact@v3
with:
name: spec-test-results
path: test_results.txt

4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "spec_tests/hed-specification"]
path = spec_tests/hed-specification
url = https://github.com/hed-standard/hed-specification/
branch = develop
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 HED Standard Working Group
Copyright (c) 2020+ HED Standard Working Group

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8056010.svg)](https://doi.org/10.5281/zenodo.8056010)
[![Maintainability](https://api.codeclimate.com/v1/badges/11bf2329590e7b0164ba/maintainability)](https://codeclimate.com/github/hed-standard/hed-python/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/11bf2329590e7b0164ba/test_coverage)](https://codeclimate.com/github/hed-standard/hed-python/test_coverage)
![PyPI - Status](https://img.shields.io/pypi/v/hedtools)


# HEDTools - Python
HED (Hierarchical Event Descriptors) is a framework for systematically describing
both laboratory and real-world events as well as other experimental metadata.
Expand All @@ -11,11 +17,11 @@ Most people will simply annotate their events by creating a spreadsheet
or a BIDS JSON sidecar that associates HED tags with event codes or the events themselves.
If you have such a spreadsheet or a JSON,
you can use the HED Online Validator currently available at
[https://hedtools.ucsd.edu/hed](https://hedtools.ucsd.edu/hed) to validate or transform
[https://hedtools.org](https://hedtools.org) to validate or transform
your files without downloading any tools.

A version of the online tools corresponding to the `develop` branch can be found at:
[https://hedtools.ucsd.edu/hed_dev](https://hedtools.ucsd.edu/hed_dev).
[https://hedtools.org/hed_dev](https://hedtools.org/hed_dev).

### Installation
Use `pip` to install `hedtools` from PyPI:
Expand Down Expand Up @@ -95,7 +101,7 @@ Use `hed.schema.set_cache_directory` to change the location.
The HED cache can be shared across processes.

Starting with `hedtools 0.2.0` local copies of the most recent schema versions
are stored within the code modules for easy access.
are stored within the code modules for easy access.

### Other links of interest

Expand Down
12 changes: 5 additions & 7 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
defusedxml>=0.7.1
inflect>=5.5.1
inflect>=6.0.2
myst-parser>=0.18.1
openpyxl>=3.0.9
numpy>=1.21.6
openpyxl>=3.1.0
pandas>=1.3.5
portalocker>=2.4.0
semantic_version>=2.9.0
portalocker>=2.7.0
semantic_version>=2.10.0
Sphinx>=5.2.2
sphinx_rtd_theme>=1.0.0

# This is just needed for secure_filename and should probably be removed
Werkzeug>=2.1.2
2 changes: 1 addition & 1 deletion docs/source/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<li class="toctree-li"><a href="https://www.hed-resources.org/en/latest/">Main resource page</a></li>
<li class="toctree-li"><a href="https://www.hedtags.org">Project home page</a></li>
<li class="toctree-li"><a href="https://www.hedtags.org/display_hed.html">Schema viewer</a></li>
<li class="toctree-li"><a href="https://www.hedtags.org/display_hed_library.html">Library schema viewer</a></li>
<li class="toctree-li"><a href="https://www.hedtags.org/display_hed_prerelease.html">Prerelease schema viewer</a></li>
<li class="toctree-li"><a href="https://hed-specification.readthedocs.io/en/latest/index.html">Specification</a></li>
<li class="toctree-li"><a href="https://hed-examples.readthedocs.io/en/latest/">Examples and tutorials</a></li>
<li class="toctree-li"><a href="https://hedtools.ucsd.edu/hed">Online tools</a></li>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api2.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
HED API reference (Auto style)
========================
==============================

.. currentmodule:: hed

Expand Down
5 changes: 3 additions & 2 deletions hed/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
from hed.models.spreadsheet_input import SpreadsheetInput
from hed.models.tabular_input import TabularInput
from hed.models.sidecar import Sidecar
from hed.models.definition_dict import DefinitionDict


from hed.schema.hed_schema import HedSchema
from hed.schema.hed_schema_group import HedSchemaGroup
from hed.schema.hed_schema_io import get_schema, get_schema_versions, load_schema, load_schema_version
from hed.schema.hed_schema_io import get_schema, load_schema, load_schema_version

from hed.validator.hed_validator import HedValidator

# from hed import errors, models, schema, tools, validator

Expand Down
5 changes: 3 additions & 2 deletions hed/errors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .error_reporter import ErrorHandler, get_exception_issue_string, get_printable_issue_string
from .error_types import DefinitionErrors, OnsetErrors, SchemaErrors, SchemaWarnings, SidecarErrors, ValidationErrors
from .error_reporter import ErrorHandler, get_printable_issue_string, sort_issues
from .error_types import DefinitionErrors, OnsetErrors, SchemaErrors, SchemaWarnings, SidecarErrors, \
ValidationErrors, ColumnErrors
from .error_types import ErrorContext, ErrorSeverity
from .exceptions import HedExceptions, HedFileError
Loading

0 comments on commit b725048

Please sign in to comment.