-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ruff fix all auto * fix: incorrect import * lint: add param import * switch linting workflow to ruff * workflow name * fix: update ruff check cmd * restore missing import, add __all__
- Loading branch information
Showing
6 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
name: Linting | ||
on: [push] | ||
name: Lint | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.9" | ||
- run: python -m pip install black[jupyter] | ||
- run: | | ||
black . --check | ||
- run: python -m pip install ruff | ||
- run: ruff check . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
from pyhdx.__version__ import __version__ | ||
from pyhdx.datasets import read_dynamx | ||
from pyhdx.fitting_torch import TorchFitResult, TorchFitResultSet | ||
from pyhdx.models import ( | ||
HDXTimepoint, | ||
HDXMeasurement, | ||
Coverage, | ||
HDXMeasurement, | ||
HDXMeasurementSet, | ||
HDXTimepoint, | ||
) | ||
from pyhdx.datasets import read_dynamx | ||
from pyhdx.fitting_torch import TorchFitResult, TorchFitResultSet | ||
from pyhdx.__version__ import __version__ | ||
|
||
VERSION_STRING = f"PyHDX {__version__}" | ||
|
||
try: | ||
from pyhdx.output import FitReport | ||
except ModuleNotFoundError: | ||
pass | ||
|
||
|
||
__all__ = [ | ||
"HDXTimepoint", | ||
"HDXMeasurement", | ||
"Coverage", | ||
"HDXMeasurementSet", | ||
"read_dynamx", | ||
"TorchFitResult", | ||
"TorchFitResultSet", | ||
"FitReport", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
from bokeh.models.tools import * | ||
|
||
|
||
supported_tools = { | ||
"pan": PanTool, | ||
"wheel_pan": WheelPanTool, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters