Skip to content

Commit 3858a53

Browse files
committed
misc framework updates
- closes #107
1 parent 6c3311c commit 3858a53

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ jobs:
3535
# coveralls needs explicit token
3636
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
finish:
39-
name: Coverage
38+
coverage:
4039
continue-on-error: ${{ github.event_name != 'push' }}
4140
needs: test
4241
runs-on: ubuntu-latest
@@ -51,7 +50,6 @@ jobs:
5150
env:
5251
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5352
deploy:
54-
name: Deploy
5553
needs: test
5654
runs-on: ubuntu-latest
5755
environment: pypi
@@ -78,10 +76,10 @@ jobs:
7876
if [[ $GITHUB_REF == refs/tags/v* ]]; then
7977
echo docker_tags=latest,${GITHUB_REF/refs\/tags\/v/} >> $GITHUB_OUTPUT
8078
echo snap_channel=stable,candidate,edge >> $GITHUB_OUTPUT
81-
elif [[ $GITHUB_REF == refs/heads/main ]]; then
79+
elif test "$GITHUB_REF" = refs/heads/main; then
8280
echo docker_tags=main >> $GITHUB_OUTPUT
8381
echo snap_channel=candidate,edge >> $GITHUB_OUTPUT
84-
elif [[ $GITHUB_REF == refs/heads/devel ]]; then
82+
elif test "$GITHUB_REF" = refs/heads/devel; then
8583
echo docker_tags=devel >> $GITHUB_OUTPUT
8684
echo snap_channel=edge >> $GITHUB_OUTPUT
8785
fi

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repos:
3939
- tabulate
4040
- tqdm
4141
- repo: https://github.com/PyCQA/flake8
42-
rev: 7.1.1
42+
rev: 7.2.0
4343
hooks:
4444
- id: flake8
4545
args: [-j8]
@@ -58,6 +58,6 @@ repos:
5858
args: [-i]
5959
additional_dependencies: [toml]
6060
- repo: https://github.com/PyCQA/isort
61-
rev: 6.0.0
61+
rev: 6.0.1
6262
hooks:
6363
- id: isort

LICENCE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
* files: *
2-
MPLv2.0 2016-2024 (c) Casper da Costa-Luis
2+
MPLv2.0 2016-2025 (c) Casper da Costa-Luis
33
[casperdcl](https://github.com/casperdcl).
44

55

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
prebuildclean
1818
clean
1919
toxclean
20+
install_build
2021
install_dev
2122
install
2223
build
@@ -86,12 +87,12 @@ prebuildclean:
8687
coverclean:
8788
@+python -c "import os; os.remove('.coverage') if os.path.exists('.coverage') else None"
8889
@+python -c "import os, glob; [os.remove(i) for i in glob.glob('.coverage.*')]"
89-
@+python -c "import shutil; shutil.rmtree('tests/__pycache__', True)"
9090
@+python -c "import shutil; shutil.rmtree('gitfame/__pycache__', True)"
91+
@+python -c "import shutil; shutil.rmtree('tests/__pycache__', True)"
9192
clean:
9293
@+python -c "import os, glob; [os.remove(i) for i in glob.glob('*.py[co]')]"
93-
@+python -c "import os, glob; [os.remove(i) for i in glob.glob('tests/*.py[co]')]"
9494
@+python -c "import os, glob; [os.remove(i) for i in glob.glob('gitfame/*.py[co]')]"
95+
@+python -c "import os, glob; [os.remove(i) for i in glob.glob('tests/*.py[co]')]"
9596
toxclean:
9697
@+python -c "import shutil; shutil.rmtree('.tox', True)"
9798

0 commit comments

Comments
 (0)