File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 steps :
1212 - uses : actions/checkout@v2
1313 - uses : micnncim/action-label-syncer@v1
14+ with :
15+ prune : false
1416 env :
1517 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -3,33 +3,10 @@ name: Lint
33on : [push, pull_request]
44
55jobs :
6- build :
6+ lint :
77 runs-on : ubuntu-20.04
88
99 steps :
1010 - uses : actions/checkout@v2
11-
12- - name : Cache
13- uses : actions/cache@v2
14- with :
15- path : |
16- ~/.cache/pip
17- ~/.cache/pre-commit
18- key : lint-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/.pre-commit-config.yaml') }}
19- restore-keys : |
20- lint-
21-
22- - name : Set up Python
23- uses : actions/setup-python@v2
24- with :
25- python-version : 3.8
26-
27- - name : Install dependencies
28- run : |
29- python -m pip install -U pip
30- python -m pip install -U tox
31-
32- - name : Lint
33- run : tox -e lint
34- env :
35- PRE_COMMIT_COLOR : always
11+ - uses : actions/setup-python@v2
12+ - uses : pre-commit/action@v2.0.2
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: Test
22
33on : [push, pull_request]
44
5+ env :
6+ FORCE_COLOR : 1
7+
58jobs :
69 build :
710 runs-on : ${{ matrix.os }}
@@ -29,24 +32,23 @@ jobs:
2932 run : |
3033 echo "::set-output name=dir::$(pip cache dir)"
3134
32- - name : pip cache
35+ - name : Cache
3336 uses : actions/cache@v2
3437 with :
3538 path : ${{ steps.pip-cache.outputs.dir }}
3639 key :
37- ${{ matrix.os }}-${{ matrix.python-version }}-v2 -${{
40+ ${{ matrix.os }}-${{ matrix.python-version }}-v1 -${{
3841 hashFiles('**/setup.py') }}
3942 restore-keys : |
40- ${{ matrix.os }}-${{ matrix.python-version }}-v2 -
43+ ${{ matrix.os }}-${{ matrix.python-version }}-v1 -
4144
4245 - name : Install dependencies
4346 run : |
44- python -m pip install --upgrade pip
45- python -m pip install --upgrade wheel
46- python -m pip install --upgrade tox
47+ python -m pip install -U pip
48+ python -m pip install -U wheel
49+ python -m pip install -U tox
4750
4851 - name : Tox tests
49- shell : bash
5052 run : |
5153 tox -e py
5254
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ project_urls =
3030 Source =https://github.com/jmoiron/humanize
3131 Issue tracker =https://github.com/jmoiron/humanize/issues
3232 Funding =https://tidelift.com/subscription/pkg/pypi-humanize?utm_source =pypi-humanize&utm_medium =pypi
33+ Documentation =https://python-humanize.readthedocs.io/
34+ Release notes =https://github.com/jmoiron/humanize/releases
3335
3436[options]
3537packages = find:
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def intcomma(value, ndigits=None):
7474 compatibility with Django's `intcomma`, this function also accepts floats.
7575
7676 Examples:
77- ``pycon
77+ ``` pycon
7878 >>> intcomma(100)
7979 '100'
8080 >>> intcomma("1000")
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ envlist =
33 py{py3, 39, 38, 37, 36}
44
55[testenv]
6+ passenv =
7+ FORCE_COLOR
68extras =
79 tests
810commands =
You can’t perform that action at this time.
0 commit comments