Skip to content

Commit 30c64b2

Browse files
authored
Merge pull request #64 from handwerkerd/fixing-style-errors
Updating style and python versions
2 parents e91e16f + 043a9d2 commit 30c64b2

10 files changed

Lines changed: 194 additions & 143 deletions

File tree

.circleci/config.yml

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,74 @@ jobs:
9595
paths:
9696
- src/coverage/.coverage.py310
9797

98+
unittest_311:
99+
docker:
100+
- image: continuumio/miniconda3
101+
working_directory: /tmp/src/mapca
102+
steps:
103+
- checkout
104+
- restore_cache:
105+
key: conda-py311-v1-{{ checksum "pyproject.toml" }}
106+
- run:
107+
name: Generate environment
108+
command: |
109+
apt-get update
110+
apt-get install -yqq make
111+
if [ ! -d /opt/conda/envs/mapca_py311 ]; then
112+
conda create -yq -n mapca_py311 python=3.11
113+
source activate mapca_py311
114+
pip install .[tests]
115+
fi
116+
- run:
117+
name: Running unit tests
118+
command: |
119+
source activate mapca_py311
120+
py.test --ignore mapca/tests/test_integration.py --cov-append --cov-report term-missing --cov=mapca mapca/
121+
mkdir /tmp/src/coverage
122+
mv /tmp/src/mapca/.coverage /tmp/src/coverage/.coverage.py311
123+
- save_cache:
124+
key: conda-py311-v1-{{ checksum "pyproject.toml" }}
125+
paths:
126+
- /opt/conda/envs/mapca_py311
127+
- persist_to_workspace:
128+
root: /tmp
129+
paths:
130+
- src/coverage/.coverage.py311
131+
132+
unittest_312:
133+
docker:
134+
- image: continuumio/miniconda3
135+
working_directory: /tmp/src/mapca
136+
steps:
137+
- checkout
138+
- restore_cache:
139+
key: conda-py312-v1-{{ checksum "pyproject.toml" }}
140+
- run:
141+
name: Generate environment
142+
command: |
143+
apt-get update
144+
apt-get install -yqq make
145+
if [ ! -d /opt/conda/envs/mapca_py312 ]; then
146+
conda create -yq -n mapca_py312 python=3.12
147+
source activate mapca_py312
148+
pip install .[tests]
149+
fi
150+
- run:
151+
name: Running unit tests
152+
command: |
153+
source activate mapca_py312
154+
py.test --ignore mapca/tests/test_integration.py --cov-append --cov-report term-missing --cov=mapca mapca/
155+
mkdir /tmp/src/coverage
156+
mv /tmp/src/mapca/.coverage /tmp/src/coverage/.coverage.py312
157+
- save_cache:
158+
key: conda-py312-v1-{{ checksum "pyproject.toml" }}
159+
paths:
160+
- /opt/conda/envs/mapca_py312
161+
- persist_to_workspace:
162+
root: /tmp
163+
paths:
164+
- src/coverage/.coverage.py312
165+
98166
unittest_38:
99167
docker:
100168
- image: continuumio/miniconda3
@@ -202,12 +270,13 @@ jobs:
202270
twine upload dist/*
203271
204272
workflows:
205-
version: 2.1
206273
build_test:
207274
jobs:
208275
- makeenv_38
209276
- unittest_39
210277
- unittest_310
278+
- unittest_311
279+
- unittest_312
211280
- unittest_38:
212281
requires:
213282
- makeenv_38
@@ -222,6 +291,8 @@ workflows:
222291
- unittest_38
223292
- unittest_39
224293
- unittest_310
294+
- unittest_311
295+
- unittest_312
225296
- deploy:
226297
requires:
227298
- merge_coverage

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# version file autogenerated with pip install -e .'[all]'
2+
_version.py
3+
14
# Byte-compiled / optimized / DLL files
25
__pycache__/
36
*.py[cod]

mapca/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
"""
2-
mapca: A Python implementation of the moving average principal components analysis methods from
3-
GIFT.
4-
"""
1+
"""mapca: Python implementation of the moving average principal components analysis from GIFT."""
52

63
import warnings
74

85
from mapca.__about__ import __version__
9-
10-
from .mapca import MovingAveragePCA, ma_pca
6+
from mapca.mapca import MovingAveragePCA, ma_pca
117

128
# cmp is not used, so ignore nipype-generated warnings
139
warnings.filterwarnings("ignore", r"cmp not installed")

0 commit comments

Comments
 (0)