Skip to content

Commit 52c6ada

Browse files
committed
misc framework updates
- closes #107
1 parent 216607a commit 52c6ada

File tree

8 files changed

+20
-22
lines changed

8 files changed

+20
-22
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

.meta/.git-fame.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% GIT-FAME(1) git-fame User Manuals
22
% Casper da Costa-Luis (https://github.com/casperdcl)
3-
% 2016-2023
3+
% 2016-2025
44

55
# NAME
66

.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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
prebuildclean
1818
clean
1919
toxclean
20+
install_build
2021
install_dev
2122
install
2223
build
2324
buildupload
2425
pypi
25-
snap
2626
docker
2727
help
2828
none
@@ -86,12 +86,12 @@ prebuildclean:
8686
coverclean:
8787
@+python -c "import os; os.remove('.coverage') if os.path.exists('.coverage') else None"
8888
@+python -c "import os, glob; [os.remove(i) for i in glob.glob('.coverage.*')]"
89-
@+python -c "import shutil; shutil.rmtree('tests/__pycache__', True)"
9089
@+python -c "import shutil; shutil.rmtree('gitfame/__pycache__', True)"
90+
@+python -c "import shutil; shutil.rmtree('tests/__pycache__', True)"
9191
clean:
9292
@+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]')]"
9493
@+python -c "import os, glob; [os.remove(i) for i in glob.glob('gitfame/*.py[co]')]"
94+
@+python -c "import os, glob; [os.remove(i) for i in glob.glob('tests/*.py[co]')]"
9595
toxclean:
9696
@+python -c "import shutil; shutil.rmtree('.tox', True)"
9797

gitfame/_gitfame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
except (ImportError, LookupError):
8080
__version__ = "UNKNOWN"
8181
__author__ = "Casper da Costa-Luis <[email protected]>"
82-
__date__ = "2016-2023"
82+
__date__ = "2016-2025"
8383
__licence__ = "[MPLv2.0](https://mozilla.org/MPL/2.0/)"
8484
__all__ = ["main"]
8585
__copyright__ = ' '.join(("Copyright (c)", __date__, __author__, __licence__))

gitfame/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
tqdm = partial(tqdm_std, lock_args=(False,))
1919

2020
__author__ = "Casper da Costa-Luis <[email protected]>"
21-
__date__ = "2016-2023"
21+
__date__ = "2016-2025"
2222
__licence__ = "[MPLv2.0](https://mozilla.org/MPL/2.0/)"
2323
__all__ = [
2424
"TERM_WIDTH", "int_cast_or_len", "Max", "fext", "tqdm", "tighten", "check_output",

gitfame/git-fame.1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.\" Automatically generated by Pandoc 3.5
1+
.\" Automatically generated by Pandoc 3.7.0.1
22
.\"
3-
.TH "GIT\-FAME" "1" "2016\-2023" "git\-fame User Manuals"
3+
.TH "GIT\-FAME" "1" "2016\-2025" "git\-fame User Manuals"
44
.SH NAME
55
git\-fame \- Pretty\-print \f[CR]git\f[R] repository collaborators
66
sorted by contributions.
@@ -12,15 +12,15 @@ See https://github.com/casperdcl/git\-fame.
1212
Probably not necessary on UNIX systems:
1313
.IP
1414
.EX
15-
git config \-\-global alias.fame \[dq]!python \-m gitfame\[dq]
15+
git config \-\-global alias.fame \(dq!python \-m gitfame\(dq
1616
.EE
1717
.PP
1818
For example, to print statistics regarding all source files in a
1919
C++/CUDA repository (\f[CR]*.c/h/t(pp), *.cu(h)\f[R]), carefully
2020
handling whitespace and line copies:
2121
.IP
2222
.EX
23-
git fame \-\-incl \[aq]\[rs].[cht][puh]{0,2}$\[aq] \-twMC
23+
git fame \-\-incl \(aq\(rs.[cht][puh]{0,2}$\(aq \-twMC
2424
.EE
2525
.SH OPTIONS
2626
.TP
@@ -49,7 +49,7 @@ defaults to `surviving' unless \f[CR]\-\-cost\f[R] is specified.
4949
\-\-excl=\f[I]f\f[R]
5050
Excluded files (default: None).
5151
In no\-regex mode, may be a comma\-separated list.
52-
Escape (\[rs],) for a literal comma (may require \[rs]\[rs], in shell).
52+
Escape (\(rs,) for a literal comma (may require \(rs\(rs, in shell).
5353
.TP
5454
\-\-incl=\f[I]f\f[R]
5555
Included files [default: .*].
@@ -83,7 +83,7 @@ NB: if regex is enabled `,' is equivalent to `|'.
8383
Suppress \f[CR]tqdm\f[R] [default: False].
8484
.TP
8585
\-\-warn\-binary
86-
Don\[cq]t silently skip files which appear to be binary data [default:
86+
Don\(cqt silently skip files which appear to be binary data [default:
8787
False].
8888
.TP
8989
\-\-show=\f[I]info\f[R]
@@ -100,8 +100,8 @@ Show row numbers [default: False].
100100
Show stats per file extension [default: False].
101101
.TP
102102
\-w, \-\-ignore\-whitespace
103-
Ignore whitespace when comparing the parent\[cq]s version and the
104-
child\[cq]s to find where the lines came from [default: False].
103+
Ignore whitespace when comparing the parent\(cqs version and the
104+
child\(cqs to find where the lines came from [default: False].
105105
\-M Detect intra\-file line moves and copies [default: False].
106106
\-C Detect inter\-file line moves and copies [default: False].
107107
.TP

0 commit comments

Comments
 (0)