Skip to content

Commit c767c9b

Browse files
authored
Add parameter tmp_dir to persist trained classifiers (#109)
1 parent c7979b2 commit c767c9b

13 files changed

+296
-198
lines changed

.github/workflows/deploy-pypi.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
15+
python-version: ["3.8", "3.9", "3.10", "3.11"]
1616
os: [ubuntu-latest, macOS-latest, windows-latest]
1717
steps:
1818
- uses: actions/checkout@v2
@@ -23,15 +23,7 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
python -m pip install flake8==4.0.1
27-
python -m pip install pytest==7.1.2
28-
python -m pip install pytest-flake8==1.1.1
29-
python -m pip install pydocstyle==6.1.1
30-
python -m pip install pytest-pydocstyle==2.3.0
31-
python -m pip install pytest-cov==3.0.0
32-
python -m pip install ray
33-
python -m pip install 'importlib-metadata<4.3'
34-
python -m pip install .
26+
python -m pip install -e ".[dev]"
3527
- name: Test with pytest
3628
run: |
3729
pytest -v --flake8 --pydocstyle --cov=hiclass --cov-fail-under=90 --cov-report html

.github/workflows/test-pr.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,7 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27-
python -m pip install flake8==4.0.1
28-
python -m pip install pytest==7.1.2
29-
python -m pip install pytest-flake8==1.1.1
30-
python -m pip install pydocstyle==6.1.1
31-
python -m pip install pytest-pydocstyle==2.3.0
32-
python -m pip install pytest-cov==3.0.0
33-
python -m pip install ray
34-
python -m pip install .
27+
python -m pip install -e ".[dev]"
3528
- name: Test with pytest
3629
run: |
3730
pytest -v --flake8 --pydocstyle --cov=hiclass --cov-fail-under=90 --cov-report html

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ repos:
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- repo: https://github.com/psf/black
9-
rev: 22.10.0
9+
rev: 24.2.0
1010
hooks:
1111
- id: black

CONTRIBUTING.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,7 @@ Please make sure all tests pass before submitting a pull request. It is also goo
1313
To test the code locally you need to install the dependencies for the library in the current environment. Additionally, you need to install the dependencies for testing. All of those dependencies can be installed with:
1414

1515
```
16-
pip install flake8==4.0.1
17-
pip install pytest==7.1.2
18-
pip install pytest-flake8==1.1.1
19-
pip install pydocstyle==6.1.1
20-
pip install pytest-pydocstyle==2.3.0
21-
pip install pytest-cov==3.0.0
22-
pip install black==22.10.0
23-
pip install pre-commit==2.20.0
24-
pip install -e .
16+
pip install -e ".[dev]"
2517
```
2618

2719
To run the tests simply execute:

0 commit comments

Comments
 (0)