Skip to content

Commit

Permalink
Merge pull request #18 from molssi-seamm/catch_errors
Browse files Browse the repository at this point in the history
Handling errors within the steps in the loop
  • Loading branch information
seamm authored Dec 12, 2021
2 parents 847da7f + 048cbb5 commit 326ce49
Show file tree
Hide file tree
Showing 18 changed files with 541 additions and 460 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/BranchCI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
- name: Run linters
shell: bash -l {0}
run: |
black --extend-exclude '_version.py' --check --diff loop_step tests
flake8 loop_step tests
yapf --diff --recursive loop_step tests
- name: Run tests
shell: bash -l {0}
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
- name: Run linters
shell: bash -l {0}
run: |
black --extend-exclude '_version.py' --check --diff loop_step tests
flake8 loop_step tests
yapf --diff --recursive loop_step tests
test:
name: Test ${{ matrix.os }} Py${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
- name: Run linters
shell: bash -l {0}
run: |
black --extend-exclude '_version.py' --check --diff loop_step tests
flake8 loop_step tests
yapf --diff --recursive loop_step tests
test:
name: Test ${{ matrix.os }} Py${{ matrix.python-version }}
Expand Down
21 changes: 0 additions & 21 deletions .readthedocs.yml

This file was deleted.

99 changes: 0 additions & 99 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .yapfignore

This file was deleted.

6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ clean-test: ## remove test and coverage artifacts
rm -fr htmlcov/
find . -name '.pytype' -exec rm -fr {} +

lint: ## check style with flake8
lint: ## check style with black and flake8
black --extend-exclude '_version.py' --check --diff $(MODULE) tests
flake8 $(MODULE) tests
yapf --diff --recursive $(MODULE) tests

format: ## reformat with with yapf and isort
yapf --recursive --in-place $(MODULE) tests
black --extend-exclude '_version.py' $(MODULE) tests

typing: ## check typing
pytype $(MODULE)
Expand Down
5 changes: 2 additions & 3 deletions devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@ dependencies:
- pip

# Dependencies for this module
- psutil
- seamm

# Testing
- black
- codecov
- flake8
- pytest
- pytest-cov

# Pip-only installs
- pip:
# Testing
- yapf

# Documentation
- rinohtype
- pygments
Expand Down
6 changes: 3 additions & 3 deletions loop_step/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
from ._version import get_versions

__author__ = """Paul Saxe"""
__email__ = '[email protected]'
__email__ = "[email protected]"
versions = get_versions()
__version__ = versions['version']
__git_revision__ = versions['full-revisionid']
__version__ = versions["version"]
__git_revision__ = versions["full-revisionid"]
del get_versions, versions
Loading

0 comments on commit 326ce49

Please sign in to comment.