Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1373 commits
Select commit Hold shift + click to select a range
d0bdb41
..
sorenwacker Feb 9, 2023
30386c6
Merge branch 'main' into develop
sorenwacker Feb 9, 2023
eed3398
Merge pull request #65 from LewisResearchGroup/develop
sorenwacker Feb 10, 2023
f950e4d
Merge branch 'develop' of github.com:LewisResearchGroup/ms-mint into …
sorenwacker Feb 24, 2023
9cd4c42
Plot chromatograms updated
sorenwacker Feb 28, 2023
f6aad44
fixed pairplot
sorenwacker Mar 1, 2023
7bfe032
Merge pull request #67 from LewisResearchGroup/develop
sorenwacker Mar 2, 2023
11269da
problem with peak projection
sorenwacker Mar 6, 2023
6fca129
issue with peak projections
sorenwacker Mar 6, 2023
4c0c0f0
updated requirements for interactive plotting
sorenwacker Mar 9, 2023
a799402
fixed QC plots bugs
sorenwacker Mar 9, 2023
d771480
test running
sorenwacker Mar 9, 2023
97df0c9
faster mzML parser
sorenwacker Apr 12, 2023
07e726b
Merge branch 'develop' of github.com:LewisResearchGroup/ms-mint into …
sorenwacker Apr 12, 2023
8b723d4
codestyle
sorenwacker Apr 13, 2023
57bf169
mzxml_to_df improved
sorenwacker Apr 13, 2023
72f0c30
test pass with pandas 2.0
sorenwacker Apr 13, 2023
5814c80
test pass with pandas 2.0
sorenwacker Apr 13, 2023
218aef3
codestyle
sorenwacker Apr 13, 2023
524f3cc
codestyle
sorenwacker Apr 13, 2023
7b7cabf
pylint
sorenwacker Apr 13, 2023
00f5626
fixed
sorenwacker Apr 14, 2023
dc51e92
set_dtypes optimized
sorenwacker Apr 17, 2023
0f66873
Update README.md
sorenwacker Apr 17, 2023
a10889e
readme style
sorenwacker Apr 17, 2023
b5e2027
fixed before assignment warning
sorenwacker Apr 17, 2023
71c4965
removed unnecessary f-string
sorenwacker Apr 17, 2023
29ddf76
removed assignment of unused variable
sorenwacker Apr 17, 2023
a491e85
simplified rt_min_max
sorenwacker Apr 17, 2023
b625f89
removed assignment of unused variable
sorenwacker Apr 17, 2023
f9ab581
removed unused keys
sorenwacker Apr 17, 2023
daf49c0
removed assignment of unused variable
sorenwacker Apr 17, 2023
4d4c6a7
removed unnecessary lambda fnkt
sorenwacker Apr 17, 2023
936a76d
use Agg backend for tests
sorenwacker Apr 17, 2023
8fc2e06
removed list in function declaration
sorenwacker Apr 17, 2023
ba89d7c
removed unused imports
sorenwacker Apr 17, 2023
7417df0
removed assignment of unused variable
sorenwacker Apr 17, 2023
d66d6be
removed assignment of unused variable
sorenwacker Apr 17, 2023
8868fcf
markdown style
sorenwacker Apr 17, 2023
4b699cc
check if TimeoutError is in globals
sorenwacker Apr 17, 2023
3546b23
removed assignment of unused variable
sorenwacker Apr 17, 2023
d40f993
removed assbackwards compatibility with unsupported pythn versions < 3.3
sorenwacker Apr 17, 2023
6ace2a0
rfixed return value
sorenwacker Apr 17, 2023
cecead5
avoid redefining build in function
sorenwacker Apr 17, 2023
7e03f4d
fixed wrong variable used
sorenwacker Apr 17, 2023
0e52a1a
adjusted tests
sorenwacker Apr 17, 2023
78001aa
Merge branch 'develop' of github.com:LewisResearchGroup/ms-mint into …
sorenwacker Apr 19, 2023
3cc6bc8
Check time unit in mzML files and convert to second
sorenwacker Apr 26, 2023
004c7d3
Update setup.py
sorenwacker Apr 27, 2023
0913e04
removed debugging print statements
sorenwacker May 2, 2023
cb069ee
Create ms-mint-convert.py
sorenwacker May 2, 2023
9026733
added script
sorenwacker May 2, 2023
77dd27f
Update ms-mint-convert.py
sorenwacker May 2, 2023
21afc41
Update ms-mint-convert.py
sorenwacker May 2, 2023
9d9a363
Show error message in logs
sorenwacker May 5, 2023
db9b739
Merge branch 'develop' of github.com:LewisResearchGroup/ms-mint into …
sorenwacker May 5, 2023
a11c860
?
sorenwacker May 5, 2023
9e5a037
Extract polarity from mzMLb
sorenwacker May 5, 2023
a764ac6
extract polarity from mzMLb
sorenwacker May 5, 2023
f7d4ec2
..
sorenwacker May 9, 2023
ddcb2f0
Merge pull request #68 from LewisResearchGroup/develop
sorenwacker May 9, 2023
5453173
Merge pull request #69 from LewisResearchGroup/main
sorenwacker May 9, 2023
d3672fe
metadata functionality
sorenwacker May 9, 2023
42f3fbe
Merge branch 'develop' of github.com:LewisResearchGroup/ms-mint into …
sorenwacker May 9, 2023
2a91533
plotting adjusted to using metadata
sorenwacker May 9, 2023
7195a12
..
sorenwacker May 9, 2023
22d4e86
mint.plot.chromatogram works with ms_file_label
sorenwacker May 9, 2023
7e4a56d
Update README.md
sorenwacker Jun 12, 2023
e59484e
..
sorenwacker Jun 13, 2023
d10e6d7
Merge branch 'develop' of github.com:LewisResearchGroup/ms-mint into …
sorenwacker Jun 13, 2023
7850f7c
docs
sorenwacker Jun 13, 2023
9a67d15
..
sorenwacker Jun 13, 2023
49d7f61
..
sorenwacker Jun 13, 2023
416ea0d
sphinx-materialdesign-theme
sorenwacker Jun 13, 2023
20f9bf8
gtags to header
sorenwacker Jun 13, 2023
6d12928
gtags to head
sorenwacker Jun 13, 2023
3a20398
sphinx_rtd_theme
sorenwacker Jun 13, 2023
44eaef1
..
sorenwacker Jun 13, 2023
bf215d8
..
sorenwacker Jun 13, 2023
30999ad
..
sorenwacker Jun 13, 2023
50e91b7
gtag
sorenwacker Jun 13, 2023
4302b66
gtag
sorenwacker Jun 13, 2023
781a5e5
gtag
sorenwacker Jun 13, 2023
b732ed4
gtag
sorenwacker Jun 13, 2023
8a1bd52
gtag
sorenwacker Jun 13, 2023
96f2921
gtag
sorenwacker Jun 13, 2023
17cdb9b
gtag
sorenwacker Jun 13, 2023
dd3aace
..
sorenwacker Jun 13, 2023
e113228
Update README.md
sorenwacker Jun 16, 2023
ef94fc4
split scan_id using = since suffix may change between programs
sorenwacker Jul 10, 2023
1cc4dab
Merge branch 'develop' of github.com:LewisResearchGroup/ms-mint into …
sorenwacker Jul 10, 2023
6c76e4f
coverage badge
sorenwacker Jul 10, 2023
b719be0
coverage
sorenwacker Jul 10, 2023
9b1b236
Update README.md
sorenwacker Jul 10, 2023
e7ae62d
Update README.md
sorenwacker Jul 10, 2023
1e38c52
Merge pull request #71 from LewisResearchGroup/develop
sorenwacker Jul 10, 2023
48b8c42
Update README.md
sorenwacker Jul 10, 2023
dc21e2b
Chromatograms optimized
sorenwacker Jul 10, 2023
41a96c7
Merge branch 'develop' of github.com:LewisResearchGroup/ms-mint into …
sorenwacker Jul 10, 2023
250e135
Chromatograms optimized
sorenwacker Jul 10, 2023
75cb316
Checked
sorenwacker Jul 10, 2023
40582df
fix issue with file name
sorenwacker Jul 11, 2023
f261381
fix issue with file name
sorenwacker Jul 11, 2023
08d4f14
Merge pull request #72 from LewisResearchGroup/develop
sorenwacker Jul 11, 2023
061f578
Plugins updated for new metadata column names
sorenwacker Jul 12, 2023
48e1c8b
Update codeql-analysis.yml
sorenwacker Jul 12, 2023
46b911d
Delete pyinstaller.yaml
sorenwacker Jul 12, 2023
3af139a
deprecate on and target_var for var_name
sorenwacker Jul 12, 2023
438558f
groupby, apply arguments added to PCA
sorenwacker Jul 12, 2023
e8823fb
groupby, apply arguments added to PCA
sorenwacker Jul 12, 2023
4f76bd8
Merge branch 'develop' of github.com:LewisResearchGroup/ms-mint into …
sorenwacker Jul 12, 2023
339dc39
updated normalization and transformation logic
sorenwacker Jul 14, 2023
b782285
test adjusted
sorenwacker Jul 14, 2023
69b3384
..
sorenwacker Aug 15, 2023
13b2046
Update README.md
sorenwacker Aug 17, 2023
ac977b6
new doc structure
sorenwacker Aug 17, 2023
90c1eaa
Update README.md
sorenwacker Aug 17, 2023
d10488b
Merge branch 'develop' of github.com:LewisResearchGroup/ms-mint into …
sorenwacker Aug 17, 2023
ec213e3
standardized metadata columns at init
sorenwacker Aug 18, 2023
fd4216a
standardized metadata columns at init
sorenwacker Aug 18, 2023
a22397b
use metadata in peak-shapes plot
sorenwacker Aug 18, 2023
f520627
use metadata in peak-shapes plot
sorenwacker Aug 18, 2023
98865b6
use metadata in peak-shapes plot
sorenwacker Aug 18, 2023
8ef56b0
use metadata in peak-shapes plot
sorenwacker Aug 18, 2023
d499272
oder in peak_shapes plot
sorenwacker Aug 18, 2023
fd8c041
order in peak_shapes plot
sorenwacker Aug 18, 2023
39e53b1
ax argument for MintPlotter.chomatogram()
sorenwacker Aug 22, 2023
fe1a21f
fix issue with peak_rt_of_max
sorenwacker Aug 22, 2023
86aa9ef
fix issue with peak_rt_of_max
sorenwacker Aug 22, 2023
df43247
Update README.md
sorenwacker Aug 22, 2023
ef005d7
fix issue with peak_rt_of_max
sorenwacker Aug 22, 2023
9ad3225
Merge branch 'develop' of github.com:LewisResearchGroup/ms-mint into …
sorenwacker Aug 22, 2023
c47e3ee
added MinMaxScaler
sorenwacker Aug 22, 2023
3dde630
..
sorenwacker Sep 24, 2023
37d30cb
Update README.md
sorenwacker Jul 12, 2024
0e8f620
tests fixed
sorenwacker Jul 12, 2024
1f2058f
Update pythonpackage.yml
sorenwacker Jul 12, 2024
b7e5255
Updated installation system
sorenwacker Jul 12, 2024
a48dc10
Switched to toml and setuptools_scm
sorenwacker Jul 12, 2024
d0b3215
Merge branch 'develop' of github.com:LewisResearchGroup/ms-mint into …
sorenwacker Jul 12, 2024
5d1f7cb
Switched to toml and setuptools_scm
sorenwacker Jul 12, 2024
de77e4e
Switched to toml and setuptools_scm
sorenwacker Jul 12, 2024
eb1578e
Switched to toml and setuptools_scm
sorenwacker Jul 12, 2024
71d3d9d
pytest 8.2.2
sorenwacker Jul 12, 2024
bb2d235
create documentation only when main changes
sorenwacker Jul 12, 2024
0b741eb
unsupport 3.8
sorenwacker Jul 12, 2024
e6d415a
new repository file structure for toml based installation
sorenwacker Jul 29, 2024
be9e076
.gitignore
sorenwacker Jul 29, 2024
ac8bcaa
Update README.md
sorenwacker Jul 29, 2024
bdc0fb2
Merge pull request #73 from LewisResearchGroup/develop
sorenwacker Jul 29, 2024
3671d15
Update pythonpublish.yml
sorenwacker Jul 29, 2024
724f978
Update pythonpublish.yml
sorenwacker Jul 29, 2024
881e72d
Update pythonpublish.yml
sorenwacker Jul 29, 2024
684ef71
Merge branch 'develop' of github.com:LewisResearchGroup/ms-mint into …
sorenwacker Jul 29, 2024
b9951cd
Update README.md
sorenwacker Jul 30, 2024
f84bd52
Changed description
sorenwacker Jul 30, 2024
65b1a27
Merge branch 'develop' of github.com:LewisResearchGroup/ms-mint into …
sorenwacker Jul 30, 2024
1ea5596
Merge pull request #75 from LewisResearchGroup/develop
sorenwacker Oct 22, 2024
da60250
Merge pull request #77 from LewisResearchGroup/main
sorenwacker Oct 22, 2024
e71a2dc
Update documentation.yml
sorenwacker Oct 22, 2024
3075158
Update documentation.yml
sorenwacker Oct 22, 2024
699bd86
Update documentation.yml
sorenwacker Oct 22, 2024
6b61183
trying to fix the docs in CI
Oct 22, 2024
bd8028b
trying to fix the docs in CI
Oct 22, 2024
6281520
trying to fix the docs in CI
Oct 22, 2024
16c91de
trying to fix the docs in CI
Oct 22, 2024
f52feca
Update README.md
sorenwacker Dec 7, 2024
83796f7
Update README.md
sorenwacker Dec 7, 2024
d5f1efc
Update README.md
sorenwacker Dec 7, 2024
8a7df60
Update README.md
sorenwacker Dec 7, 2024
33b467e
Update README.md
sorenwacker Dec 7, 2024
f401c0b
Update requirements.txt
sorenwacker Mar 14, 2025
de6c066
Update requirements.txt
sorenwacker Mar 15, 2025
a973774
updated chromatogram and target optimizer
sorenwacker Apr 16, 2025
4729247
new documentation
sorenwacker Apr 17, 2025
f4493bf
new documentation
sorenwacker Apr 17, 2025
4677aba
new documentation
sorenwacker Apr 17, 2025
1c66baa
new documentation
sorenwacker Apr 17, 2025
8231b50
new documentation
sorenwacker Apr 17, 2025
e7408a7
new documentation
sorenwacker Apr 17, 2025
76920f2
new documentation
sorenwacker Apr 17, 2025
656393c
new documentation
sorenwacker Apr 17, 2025
19a9ec0
new documentation
sorenwacker Apr 17, 2025
3683f9d
new documentation
sorenwacker Apr 17, 2025
284666e
new documentation
sorenwacker Apr 17, 2025
2d64640
removed requirements.txt
sorenwacker Apr 17, 2025
9b58e6b
new documentation
sorenwacker Apr 17, 2025
9ce645a
new documentation
sorenwacker Apr 17, 2025
fcb07a0
new documentation
sorenwacker Apr 17, 2025
7d172bd
new documentation
sorenwacker Apr 17, 2025
20bf0d4
new documentation
sorenwacker Apr 17, 2025
6b2786c
new documentation
sorenwacker Apr 17, 2025
663159b
new documentation
sorenwacker Apr 17, 2025
3465f39
new documentation
sorenwacker Apr 17, 2025
344c6b2
new documentation
sorenwacker Apr 17, 2025
28f5451
new documentation
sorenwacker Apr 17, 2025
7818751
new documentation
sorenwacker Apr 17, 2025
3fc95f0
new documentation
sorenwacker Apr 17, 2025
9d2fa07
new documentation
sorenwacker Apr 17, 2025
7969527
new documentation
sorenwacker Apr 18, 2025
0c34acd
new documentation
sorenwacker Apr 18, 2025
77b2e58
drop python 3.8 add 3.13
sorenwacker Apr 18, 2025
765b734
Update README.md
sorenwacker Apr 25, 2025
b50bca4
new documentation
sorenwacker Apr 25, 2025
dcfa1d0
new docs
sorenwacker Apr 26, 2025
1a05932
new docs
sorenwacker Apr 26, 2025
f3f388e
new docs
sorenwacker Apr 26, 2025
ca09921
Merge pull request #79 from LewisResearchGroup/docs/mkdocs
sorenwacker Apr 26, 2025
355dfc9
add repo info and unified overview to develop branch
sorenwacker Nov 3, 2025
06ac1fd
add solara GUI with visualization, PCA, distribution plots, session m…
sorenwacker Nov 25, 2025
84a34c2
add target sorting, activation, crosstab panel, distribution faceting…
sorenwacker Nov 26, 2025
2e79262
add save targets button to persist changes
sorenwacker Nov 26, 2025
4358ad2
filter inactive targets from all visualization plots
sorenwacker Nov 26, 2025
c9dca0c
move messages to sidebar
sorenwacker Nov 26, 2025
2ca1995
add configurable image format for figure export
sorenwacker Nov 26, 2025
248e038
add Colab notebook for interactive GUI demo
sorenwacker Nov 26, 2025
ffc1763
install from feature branch in colab notebook
sorenwacker Nov 26, 2025
e815e4d
fix colab badge to point to feature branch
sorenwacker Nov 26, 2025
89d5c39
add notebook module for backward compatibility
sorenwacker Nov 26, 2025
07e07d6
update colab notebook with correct demo data paths
sorenwacker Nov 26, 2025
516c654
download to cwd and create session config for auto-load
sorenwacker Nov 26, 2025
a90b68e
download test data from github instead of google drive
sorenwacker Nov 26, 2025
8995d0e
use gdrive demo data with fallback instructions
sorenwacker Nov 26, 2025
6cd76f1
add manual download note
sorenwacker Nov 26, 2025
accdc3a
add demo data to repo for reliable colab downloads
sorenwacker Nov 26, 2025
edfc727
add all 12 demo MS files
sorenwacker Nov 26, 2025
f82f091
use zenodo for demo data download
sorenwacker Nov 26, 2025
2ba11e2
update demo data links to zenodo
sorenwacker Nov 26, 2025
2bbd8a3
fix zenodo download url
sorenwacker Nov 26, 2025
e69a8a5
fix zenodo record id to 17727891
sorenwacker Nov 26, 2025
ae96174
show downloaded file paths in colab notebook
sorenwacker Nov 26, 2025
bdbf6e7
fix gui display syntax and expand output height for colab
sorenwacker Nov 26, 2025
c70df51
convert colab notebook to programmatic-only demo
sorenwacker Nov 26, 2025
131b583
color pca pairplot by label
sorenwacker Nov 26, 2025
84bc1e6
fix pca hue to lowercase label
sorenwacker Nov 26, 2025
1e545b2
show metadata table after loading
sorenwacker Nov 26, 2025
37e7342
suppress duplicate plot output
sorenwacker Nov 26, 2025
f496b87
add explanations, chromatogram and peak optimization to demo notebook
sorenwacker Nov 26, 2025
5cde341
fix metadata attribute name to mint.meta
sorenwacker Nov 26, 2025
72cf71e
move peak optimization before mint.run
sorenwacker Nov 26, 2025
0a724d3
sort targets by peak_label, simplify chromatogram call
sorenwacker Nov 26, 2025
8fd7d1e
use interactive plotly versions for peak shapes, chromatogram, pca
sorenwacker Nov 26, 2025
b6c29d3
set higher dpi for hierarchical clustering
sorenwacker Nov 26, 2025
dd1b668
add both static and interactive versions of plots
sorenwacker Nov 26, 2025
2def4af
add experimental gui section with colab warning
sorenwacker Nov 26, 2025
20f910d
make gui dependencies optional with [gui] extra
sorenwacker Nov 27, 2025
29a64c9
document optional gui installation
sorenwacker Nov 27, 2025
4b47e9e
set default paths: ./ms-files/*, ./targets.csv, ./metadata.csv
sorenwacker Nov 27, 2025
c3dc2db
fix undefined refresh_counter references
sorenwacker Nov 27, 2025
ac9b770
skip gui tests when solara not installed
sorenwacker Nov 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[run]
source =
ms_mint
omit =
*/_version.py
*/__init__.py
ms_mint/filelock.py
tests/*
6 changes: 6 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[flake8]
per-file-ignores =
**/MintPlotter.py:F821
**/TargetOptimizer.py:F821
**/io.py:F821
**/pca.py:F821
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
notebooks/* linguist-documentation=false
*.py linguist-language=python
ms_mint/_version.py export-subst
69 changes: 69 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ develop ]
paths-ignore:
- '**/*.md'
- '**/*.txt'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
35 changes: 35 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Create Documentation
on:
push:
branches:
- develop
- docs/mkdocs
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: 3.12
- uses: actions/checkout@v4
with:
fetch-depth: 0

# Install your package to ensure autodoc works
- name: Upgrade pip
run: python -m pip install --upgrade pip

- name: Install package with docs dependencies
run: python -m pip install -e ".[docs]"

# Build the MkDocs documentation
- name: Build Documentation
run: |
mkdocs build --clean

# Deploy the built documentation to the gh-pages branch
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: site # MkDocs builds to the 'site' directory by default
33 changes: 33 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Python package

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install package with docs dependencies
run: python -m pip install -e ".[dev]"
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
PYTHONPATH=. pytest
33 changes: 33 additions & 0 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Python Package to PyPI

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine

- name: Build package
run: |
python -m build
ls -l dist # List files in dist directory for debugging

- name: Publish package
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/*
25 changes: 23 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
.localhistory
*.csv

.ipynb_checkpoints
.*.ipynb
.pytest_cache
*egg-info*
__pycache__
.*
devel
output
build
dist
site
htmlcov
Untitled*.ipynb
"nohup.out"
nohup.out
InnoSetup/Output
*lock
ChEBI.tsv
data.sqlite
app.db
docs/_*
HILICNeg15_StdH1.feather
*_version.py
Loading