-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ufunc attribute error from numpy.log (#125)
* fix ufunc attribute error * format and test * reformat with newest black * change workflows * change format and lint workflow name
- Loading branch information
Showing
8 changed files
with
79 additions
and
46 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
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: format and lint | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
format-and-lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Pandoc | ||
uses: r-lib/actions/setup-pandoc@v2 | ||
|
||
- name: Install miniconda and create environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: gctree | ||
environment-file: environment.yml | ||
python-version: "3.10" | ||
auto-activate-base: false | ||
auto-update-conda: true | ||
|
||
- name: Lint | ||
# NOTE: must specify the shell so that conda init updates bashrc see: | ||
# https://github.com/conda-incubator/setup-miniconda#IMPORTANT | ||
shell: bash -l {0} | ||
run: make lint | ||
|
||
- name: Check format with black | ||
shell: bash -l {0} | ||
run: black --check gctree | ||
|
||
- name: Test docs build | ||
# NOTE: only run on ubuntu-latest to save on compute usage | ||
shell: bash -l {0} | ||
run: | | ||
make docs | ||
env: | ||
QT_QPA_PLATFORM: offscreen | ||
MPLBACKEND: agg |
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
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,4 +1,5 @@ | ||
r"""Utility functions.""" | ||
|
||
from functools import wraps, reduce | ||
import Bio.Data.IUPACData | ||
import operator | ||
|