Skip to content

Commit f341592

Browse files
Merge pull request #501 from pepkit/dev_claude
Release 0.50.0a1
2 parents ae7d597 + 847c964 commit f341592

File tree

258 files changed

+5152
-2455
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+5152
-2455
lines changed

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
exclude = .git,__pycache__,docs/source/conf.py,old,build,dist
3+
max-line-length = 120

.github/workflows/black.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Lint
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
branches: [ main ]
46

57
jobs:
68
lint:

.github/workflows/cli-coverage.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: test coverage
2+
3+
on:
4+
push:
5+
branches: [master, dev]
6+
7+
jobs:
8+
cli-coverage-report:
9+
strategy:
10+
matrix:
11+
python-version: [ "3.12" ]
12+
os: [ ubuntu-latest ]
13+
r: [ release ]
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v5
17+
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.12'
21+
22+
- name: Install test dependencies
23+
run: if [ -f requirements/requirements-test.txt ]; then pip install -r requirements/requirements-test.txt; fi
24+
25+
- run: pip install .
26+
27+
- name: Run tests
28+
run: coverage run -m pytest
29+
30+
- name: build coverage
31+
run: coverage html -i
32+
33+
- run: smokeshow upload htmlcov
34+
env:
35+
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage}
36+
SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 80
37+
SMOKESHOW_GITHUB_CONTEXT: coverage
38+
SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
40+
SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY }}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Run pytests windows
2+
3+
on:
4+
push:
5+
branches: [dev]
6+
pull_request:
7+
branches: [main, dev, peppy0_50]
8+
9+
jobs:
10+
pytest:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
python-version: ["3.11"]
15+
os: [windows-latest]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install all dependencies
26+
run: pip install -r requirements/requirements-all.txt
27+
28+
- name: Install test dependencies
29+
run: pip install -r requirements/requirements-test.txt
30+
31+
- name: Install package
32+
run: python -m pip install .
33+
34+
- name: Run pytest tests
35+
run: pytest tests -v
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [dev]
66
pull_request:
7-
branches: [master, dev]
7+
branches: [main, dev, peppy0_50]
88

99
jobs:
1010
pytest:
@@ -15,15 +15,15 @@ jobs:
1515
os: [ubuntu-latest]
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v5
1919

2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

25-
- name: Install dev dependencies
26-
run: if [ -f requirements/requirements-dev.txt ]; then pip install -r requirements/requirements-dev.txt; fi
25+
- name: Install all dependencies
26+
run: if [ -f requirements/requirements-all.txt ]; then pip install -r requirements/requirements-all.txt; fi
2727

2828
- name: Install test dependencies
2929
run: if [ -f requirements/requirements-test.txt ]; then pip install -r requirements/requirements-test.txt; fi
@@ -32,4 +32,4 @@ jobs:
3232
run: python -m pip install .
3333

3434
- name: Run pytest tests
35-
run: pytest tests -x -vv --cov=./ --cov-report=xml --remote-data
35+
run: pytest tests -v

.github/workflows/python-publish.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflows will upload a Python Package using Twine when a release is created
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3-
41
name: Upload Python Package
52

63
on:
@@ -14,9 +11,7 @@ jobs:
1411
permissions:
1512
id-token: write
1613
steps:
17-
- uses: actions/checkout@v4
1814
- name: Set up Python
19-
uses: actions/setup-python@v5
2015
with:
2116
python-version: '3.x'
2217
- name: Install dependencies
@@ -27,4 +22,4 @@ jobs:
2722
run: |
2823
python setup.py sdist bdist_wheel
2924
- name: Publish package distributions to PyPI
30-
uses: pypa/gh-action-pypi-publish@release/v1
25+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/run-codecov.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,9 @@
1-
# ignore test results
2-
tests/test/*
3-
4-
# toy/experimental files
5-
*.tsv
6-
*.pkl
7-
8-
# ignore eggs
9-
.eggs/
10-
11-
# generic ignore list:
12-
*.lst
13-
14-
# Compiled source
15-
*.com
16-
*.class
17-
*.dll
18-
*.exe
19-
*.o
201
*.so
21-
*.pyc
22-
23-
# Packages
24-
# it's better to unpack these files and commit the raw source
25-
# git has its own built in compression methods
26-
*.7z
27-
*.dmg
28-
*.gz
29-
*.iso
30-
*.jar
31-
*.rar
32-
*.tar
33-
*.zip
34-
35-
# Logs and databases
36-
*.log
37-
*.sql
38-
*.sqlite
39-
40-
# OS generated files
41-
.DS_Store
42-
.DS_Store?
43-
._*
44-
.Spotlight-V100
45-
.Trashes
46-
ehthumbs.db
47-
Thumbs.db
48-
49-
# Gedit temporary files
50-
*~
51-
52-
# libreoffice lock files:
53-
.~lock*
54-
55-
# Default-named test output
56-
microtest/
57-
open_pipelines/
58-
59-
# IDE-specific items
60-
.idea/
61-
.vscode/
62-
63-
# pytest-related
64-
.cache/
65-
.coverage
66-
.pytest_cache/
67-
68-
# Reserved files for comparison
69-
*RESERVE*
702

71-
# Build-related stuff
723
build/
734
dist/
74-
peppy.egg-info/
755

76-
.ipynb_checkpoints/
776

78-
# env stuff
79-
env/
807
.env
818
venv/
82-
.venv/
839

84-
# swap files
85-
.swp
86-
.swo
87-
.swn

.pre-commit-config.yaml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,2 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.0.1
42
hooks:
5-
- id: trailing-whitespace
6-
- id: check-yaml
7-
- id: end-of-file-fixer
8-
- id: requirements-txt-fixer
9-
- id: trailing-whitespace
10-
- id: check-ast
11-
12-
- repo: https://github.com/PyCQA/isort
13-
rev: 5.8.0
14-
hooks:
15-
- id: isort
16-
args: ["--profile", "black"]
17-
18-
- repo: https://github.com/psf/black
19-
rev: 21.5b2
20-
hooks:
21-
- id: black

.readthedocs.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)