Skip to content

Commit 19e32f4

Browse files
committed
Format with Prettier
1 parent 067a70f commit 19e32f4

File tree

8 files changed

+35
-23
lines changed

8 files changed

+35
-23
lines changed

.github/CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ pre-commit run --all-files # to run on all files now
1313

1414
## Docstrings
1515

16-
Follow [Google style](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings)
16+
Follow
17+
[Google style](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings)
1718
for docstrings.
1819

1920
## Localization

.github/ISSUE_TEMPLATE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212

1313
Please include **code** that reproduces the issue.
1414

15-
The [best reproductions](https://stackoverflow.com/help/minimal-reproducible-example) are [self-contained scripts](https://ericlippert.com/2014/03/05/how-to-debug-small-programs/) with minimal dependencies.
15+
The [best reproductions](https://stackoverflow.com/help/minimal-reproducible-example)
16+
are
17+
[self-contained scripts](https://ericlippert.com/2014/03/05/how-to-debug-small-programs/)
18+
with minimal dependencies.
1619

1720
```python
1821
code goes here

.github/SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Security policy
22

3-
Security reports can be made via [Tidelift](https://tidelift.com/security).
4-
Tidelift will coordinate the fix and disclosure.
3+
Security reports can be made via [Tidelift](https://tidelift.com/security). Tidelift
4+
will coordinate the fix and disclosure.

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
allow-prereleases: true
2525
cache: pip
2626

27-
2827
- name: Install Linux dependencies
2928
if: startsWith(matrix.os, 'ubuntu')
3029
run: |

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ repos:
5353
hooks:
5454
- id: tox-ini-fmt
5555

56+
- repo: https://github.com/pre-commit/mirrors-prettier
57+
rev: v3.1.0
58+
hooks:
59+
- id: prettier
60+
args: [--prose-wrap=always, --print-width=88]
61+
exclude: \.github/ISSUE_TEMPLATE\.md|\.github/PULL_REQUEST_TEMPLATE\.md
62+
5663
- repo: meta
5764
hooks:
5865
- id: check-hooks-apply

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
[![MIT License](https://img.shields.io/github/license/python-humanize/humanize.svg)](LICENCE)
1010
[![Tidelift](https://tidelift.com/badges/package/pypi/humanize)](https://tidelift.com/subscription/pkg/pypi-humanize?utm_source=pypi-humanize&utm_medium=badge)
1111

12-
This modest package contains various common humanization utilities, like turning
13-
a number into a fuzzy human-readable duration ("3 minutes ago") or into a
14-
human-readable size or throughput. It is localized to:
12+
This modest package contains various common humanization utilities, like turning a
13+
number into a fuzzy human-readable duration ("3 minutes ago") or into a human-readable
14+
size or throughput. It is localized to:
1515

1616
- Arabic
1717
- Basque

RELEASING.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Release Checklist
22

33
- [ ] Get `main` to the appropriate code release state.
4-
[GitHub Actions](https://github.com/python-humanize/humanize/actions) should be running
5-
cleanly for all merges to `main`.
4+
[GitHub Actions](https://github.com/python-humanize/humanize/actions) should be
5+
running cleanly for all merges to `main`.
66
[![GitHub Actions status](https://github.com/python-humanize/humanize/workflows/Test/badge.svg)](https://github.com/python-humanize/humanize/actions)
77

88
* [ ] Start from a freshly cloned repo:
@@ -16,7 +16,7 @@ cd humanize
1616
scripts/generate-translation-binaries.sh
1717
```
1818

19-
* [ ] (Optional) Create a distribution and release on **TestPyPI**:
19+
- [ ] (Optional) Create a distribution and release on **TestPyPI**:
2020

2121
```bash
2222
pip install -U pip build keyring twine
@@ -33,13 +33,13 @@ pip3 install -U -i https://test.pypi.org/simple/ humanize --pre
3333
python3 -c "import humanize; print(humanize.__version__)"
3434
```
3535

36-
* [ ] Tag with the version number:
36+
- [ ] Tag with the version number:
3737

3838
```bash
3939
git tag -a 2.1.0 -m "Release 2.1.0"
4040
```
4141

42-
* [ ] Create a distribution and release on **live PyPI**:
42+
- [ ] Create a distribution and release on **live PyPI**:
4343

4444
```bash
4545
pip install -U pip build keyring twine
@@ -48,21 +48,23 @@ python -m build
4848
twine check --strict dist/* && twine upload --repository pypi dist/*
4949
```
5050

51-
* [ ] Check installation:
51+
- [ ] Check installation:
5252

5353
```bash
5454
pip uninstall -y humanize
5555
pip install -U humanize
5656
python3 -c "import humanize; print(humanize.__version__)"
5757
```
5858

59-
* [ ] Push tag:
60-
```bash
59+
- [ ] Push tag:
60+
61+
```bash
6162
git push --tags
6263
```
6364

64-
* [ ] Edit release draft, adjust text if needed: https://github.com/python-humanize/humanize/releases
65+
- [ ] Edit release draft, adjust text if needed:
66+
https://github.com/python-humanize/humanize/releases
6567

66-
* [ ] Check next tag is correct, amend if needed
68+
- [ ] Check next tag is correct, amend if needed
6769

68-
* [ ] Publish release
70+
- [ ] Publish release

docs/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
Welcome to the humanize API reference.
44

5-
* [Number](number.md)
6-
* [Time](time.md)
7-
* [Filesize](filesize.md)
8-
* [I18n](i18n.md)
5+
- [Number](number.md)
6+
- [Time](time.md)
7+
- [Filesize](filesize.md)
8+
- [I18n](i18n.md)
99

1010
{%
1111
include-markdown "../README.md"

0 commit comments

Comments
 (0)