Skip to content

Commit 514d817

Browse files
authored
Merge pull request #196 from hugovk/config-update
2 parents 0ab8e76 + d8f70bb commit 514d817

6 files changed

Lines changed: 19 additions & 34 deletions

File tree

.github/workflows/labels.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@ jobs:
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 }}

.github/workflows/lint.yml

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,10 @@ name: Lint
33
on: [push, pull_request]
44

55
jobs:
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

.github/workflows/test.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Test
22

33
on: [push, pull_request]
44

5+
env:
6+
FORCE_COLOR: 1
7+
58
jobs:
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

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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]
3537
packages = find:

src/humanize/number.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ envlist =
33
py{py3, 39, 38, 37, 36}
44

55
[testenv]
6+
passenv =
7+
FORCE_COLOR
68
extras =
79
tests
810
commands =

0 commit comments

Comments
 (0)