Skip to content

Commit 3d3ffb0

Browse files
committed
docs: Run prettier
npx prettier *.md */**/*.md -w
1 parent 3e1429c commit 3d3ffb0

File tree

4 files changed

+57
-78
lines changed

4 files changed

+57
-78
lines changed

CHANGES

Lines changed: 38 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
# Changelog
22

33
## Current
4+
45
- _Add your latest changes from PRs here_
56

67
### Development
8+
79
- Run pyupgrade formatting (#305)
8-
- Tests: Move from pytest `tmp_dir` (`py.path.local`) to `tmp_path`
9-
(`pathlib.Path`)
10+
- Tests: Move from pytest `tmp_dir` (`py.path.local`) to `tmp_path` (`pathlib.Path`)
1011

1112
### Documentation
13+
1214
- Move to furo theme
1315
- Root: `make start_docs`, `make design_docs`
1416
- docs/: `make start`, `make design`
1517

1618
## libvcs 0.11.0, "Phebe" (2022-01-08)
1719

1820
### Compatibility
21+
1922
- Add python 3.10 (#300)
2023
- Drop python 3.6 (#300)
2124

2225
### Development
26+
2327
- Poetry: 1.1.7 -> 1.1.12 (#300)
2428
- Add `.pre-commit-config.yaml`
2529

@@ -37,9 +41,8 @@
3741

3842
## libvcs 0.9 (2021-06-14)
3943

40-
Generally speaking, refactor / magic is in the process of being stripped
41-
out in the next few releases. The API is subject to change significantly
42-
in pre-1.0 builds.
44+
Generally speaking, refactor / magic is in the process of being stripped out in the next few
45+
releases. The API is subject to change significantly in pre-1.0 builds.
4346

4447
[#271]:
4548

@@ -59,11 +62,11 @@ in pre-1.0 builds.
5962
- Move sphinx api format to Numpy-style
6063

6164
- Move from reStructuredText to Markdown (via recommonmark). The master plan is to eliminate
62-
docutils and sphinx as a bottleneck completely in favor of something else (e.g. gatsby with
63-
a source that inspects our modules and can source intersphinx)
65+
docutils and sphinx as a bottleneck completely in favor of something else (e.g. gatsby with a
66+
source that inspects our modules and can source intersphinx)
6467

65-
- Move from RTD to GitHub Action, full support of poetry extras packages, deploys straight to
66-
S3 and CloudFront
68+
- Move from RTD to GitHub Action, full support of poetry extras packages, deploys straight to S3
69+
and CloudFront
6770

6871
- [#270] Build and publish packages via poetry
6972
- [#270] Overhaul development docs
@@ -81,16 +84,13 @@ in pre-1.0 builds.
8184

8285
## libvcs 0.4.3 (2020-08-01)
8386

84-
- \[bug\] `libvcs.git.extract_status()` Fix issue capturing branch
85-
names with special characters
87+
- \[bug\] `libvcs.git.extract_status()` Fix issue capturing branch names with special characters
8688

8789
## libvcs 0.4.2 (2020-08-01)
8890

89-
- \[bug\] `libvcs.git.GitRepo.get_current_remote_name()` Handle case
90-
where upstream is unpushed
91+
- \[bug\] `libvcs.git.GitRepo.get_current_remote_name()` Handle case where upstream is unpushed
9192
- \[feature\] `libvcs.git.GitRepo.status()` - Retrieve status of repo
92-
- \[feature\] `libvcs.git.extract_status()` - Return structured info
93-
from `git status`
93+
- \[feature\] `libvcs.git.extract_status()` - Return structured info from `git status`
9494

9595
## libvcs 0.4.1 (2020-08-01)
9696

@@ -100,45 +100,37 @@ in pre-1.0 builds.
100100

101101
**Breaking changes**
102102

103-
Internal functionality relating to remotes have been reorganized to
104-
avoid implicit behavior.
103+
Internal functionality relating to remotes have been reorganized to avoid implicit behavior.
105104

106-
- `~libvcs.git.GitRepo` methods have been renamed, they will be
107-
deprecated in 0.5:
105+
- `~libvcs.git.GitRepo` methods have been renamed, they will be deprecated in 0.5:
108106

109107
- `GitRepo.remotes_get` renamed to `libvcs.git.GitRepo.remotes()`
110108
- `GitRepo.remote_get` renamed to `libvcs.git.GitRepo.remote()`
111-
- `GitRepo.remote_set` renamed to
112-
`libvcs.git.GitRepo.set_remote()`
109+
- `GitRepo.remote_set` renamed to `libvcs.git.GitRepo.set_remote()`
113110

114-
- `~libvcs.git.GitRepo` the `remotes` argument is deprecated and no
115-
longer used. Use `libvcs.git.GitRepo.set_remote` after repo is
116-
instantiated.
111+
- `~libvcs.git.GitRepo` the `remotes` argument is deprecated and no longer used. Use
112+
`libvcs.git.GitRepo.set_remote` after repo is instantiated.
117113

118-
- `libvcs.git.GitRepo.obtain` no longer set remotes based on a `dict`
119-
passed to `~libvcs.git.GitRepo`. This was deemed to specialized /
120-
implicit.
114+
- `libvcs.git.GitRepo.obtain` no longer set remotes based on a `dict` passed to
115+
`~libvcs.git.GitRepo`. This was deemed to specialized / implicit.
121116

122117
- `libvcs.git.GitRepo.set_remote()` (formerly `remote_set`)
123118

124-
The new method accepts `name` and `url` (in that order). `name` no
125-
longer has a default value (was `origin`).
119+
The new method accepts `name` and `url` (in that order). `name` no longer has a default value (was
120+
`origin`).
126121

127122
- `libvcs.git.GitRepo.remote()` (formerly `remote_get`):
128123

129124
- `remote` argument renamed to `name`. It will be removed in 0.5.0
130125

131126
The default value of `'origin'` has been removed
132127

133-
- Now returns `~libvcs.git.GitRemote` (a
134-
:py`collections.namedtuple` object)
128+
- Now returns `~libvcs.git.GitRemote` (a :py`collections.namedtuple` object)
135129

136-
The tuple is similar to the old output, except there is an
137-
additional value at the beginning, the name of the remote, e.g.
138-
`('origin', '<fetch_url>', '<push_url>')`
130+
The tuple is similar to the old output, except there is an additional value at the beginning,
131+
the name of the remote, e.g. `('origin', '<fetch_url>', '<push_url>')`
139132

140-
- `libvcs.git.GitRepo.remotes()` (formerly `remotes_get`) are now
141-
methods instead of properties.
133+
- `libvcs.git.GitRepo.remotes()` (formerly `remotes_get`) are now methods instead of properties.
142134

143135
Passing `flat=True` to return a `dict` of `tuple` instead of `dict`
144136

@@ -155,8 +147,7 @@ avoid implicit behavior.
155147

156148
- `258` `libvcs.git.GitRepo.remote_set`
157149
- Fix updating of remote URLs
158-
- Add new param: `overwrite`, usage:
159-
`repo.remote_set(url, 'origin', overwrite=True)`
150+
- Add new param: `overwrite`, usage: `repo.remote_set(url, 'origin', overwrite=True)`
160151

161152
## libvcs 0.3.1post1 (2020-07-26)
162153

@@ -168,8 +159,7 @@ avoid implicit behavior.
168159
- Fix issue with subprocess.Popen loud warning on Python 3.8
169160
- [#296] - Move from Pipfile to poetry
170161
- Sort imports
171-
- Add isort package, isort configuration in setup.cfg, and
172-
`make isort` task to Makefile.
162+
- Add isort package, isort configuration in setup.cfg, and `make isort` task to Makefile.
173163
- Add `project_urls` to setup.py
174164

175165
[#296] https://github.com/vcs-python/libvcs/pull/296
@@ -199,16 +189,14 @@ avoid implicit behavior.
199189

200190
## libvcs 0.2.1 (2016-09-13)
201191

202-
- Update pytest to 3.0.2, remove unused pytest-raisesregexp
203-
dependency.
204-
- Fix bug in `which` when executable is not found. Allow specifying
205-
search paths manually.
192+
- Update pytest to 3.0.2, remove unused pytest-raisesregexp dependency.
193+
- Fix bug in `which` when executable is not found. Allow specifying search paths manually.
206194
- Better support for missing VCS when testing on git and subversion.
207195

208196
## libvcs 0.2.0 (2016-06-24)
209197

210-
- [#9] Support for `progress_callback` to use realtime output from
211-
commands in progress (such as `git fetch`).
198+
- [#9] Support for `progress_callback` to use realtime output from commands in progress (such as
199+
`git fetch`).
212200
- [#9] More tests, internal factoring and documentation, thanks @jcfr
213201
- [#9] Official support for pypy, pypy3
214202
- [#11] : Fix unbound local when updating git repos
@@ -227,8 +215,8 @@ avoid implicit behavior.
227215

228216
- `6` Remove log module. Logging defaults.
229217

230-
The library user can still use formatters and set log levels, for an
231-
example, see the vcspull logging setup.
218+
The library user can still use formatters and set log levels, for an example, see the vcspull
219+
logging setup.
232220

233221
An example:
234222

@@ -244,8 +232,7 @@ avoid implicit behavior.
244232
vcslogger.addHandler(logging.StreamHandler())
245233
vcslogger.setLevel(level)
246234

247-
You can also use `logging.Formatter` variables `repo_name` and
248-
`repo_vcs` with repos:
235+
You can also use `logging.Formatter` variables `repo_name` and `repo_vcs` with repos:
249236

250237
repo_channel = logging.StreamHandler()
251238
repo_formatter = logging.Formatter(
@@ -272,8 +259,7 @@ avoid implicit behavior.
272259

273260
## libvcs 0.1.2 (2016-06-20)
274261

275-
- change signature on `create_repo_from_pip_url` to accept `pip_url`
276-
insetad of `url`.
262+
- change signature on `create_repo_from_pip_url` to accept `pip_url` insetad of `url`.
277263
- `Base` to accept `repo_dir` instead of `name` and `parent_dir`.
278264

279265
## libvcs 0.1.1 (2016-06-20)

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
`libvcs` - abstraction layer for vcs, powers
2-
[vcspull](https://www.github.com/vcs-python/vcspull/).
1+
`libvcs` - abstraction layer for vcs, powers [vcspull](https://www.github.com/vcs-python/vcspull/).
32

43
[![Python Package](https://img.shields.io/pypi/v/libvcs.svg)](http://badge.fury.io/py/libvcs)
54
[![Docs](https://github.com/vcs-python/libvcs/workflows/Publish%20Docs/badge.svg)](https://github.com/vcs-python/libvcs/actions?query=workflow%3A%22Publish+Docs%22)
@@ -25,9 +24,8 @@ $ ptpython
2524

2625
# Usage
2726

28-
Create a
29-
[Repo](https://libvcs.git-pull.com/api.html#creating-a-repo-object)
30-
object of the project to inspect / checkout / update:
27+
Create a [Repo](https://libvcs.git-pull.com/api.html#creating-a-repo-object) object of the project
28+
to inspect / checkout / update:
3129

3230
```python
3331
>>> from libvcs.shortcuts import create_repo_from_pip_url, create_repo
@@ -59,10 +57,9 @@ u'5c227e6ab4aab44bf097da2e088b0ff947370ab8'
5957

6058
# Donations
6159

62-
Your donations fund development of new features, testing and support.
63-
Your money will go directly to maintenance and development of the
64-
project. If you are an individual, feel free to give whatever feels
65-
right for the value you get out of the project.
60+
Your donations fund development of new features, testing and support. Your money will go directly to
61+
maintenance and development of the project. If you are an individual, feel free to give whatever
62+
feels right for the value you get out of the project.
6663

6764
See donation options at <https://www.git-pull.com/support.html>.
6865

docs/api.md

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

33
## Create from VCS url
44

5-
Helper methods are available in `libvcs.shortcuts` which
6-
can return a repo object from a single entry-point.
5+
Helper methods are available in `libvcs.shortcuts` which can return a repo object from a single
6+
entry-point.
77

88
```{eval-rst}
99
.. automodule:: libvcs.shortcuts

docs/developing.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,45 +14,41 @@ Makefile commands prefixed with `watch_` will watch files and rerun.
1414

1515
`poetry run py.test`
1616

17-
Helpers: `make test`
18-
Rerun tests on file change: `make watch_test` (requires [entr(1)])
17+
Helpers: `make test` Rerun tests on file change: `make watch_test` (requires [entr(1)])
1918

2019
## Documentation
2120

2221
Default preview server: http://localhost:8068
2322

2423
[sphinx-autobuild] will automatically build the docs, watch for file changes and launch a server.
2524

26-
From home directory: `make start_docs`
27-
From inside `docs/`: `make start`
25+
From home directory: `make start_docs` From inside `docs/`: `make start`
2826

2927
[sphinx-autobuild]: https://github.com/executablebooks/sphinx-autobuild
3028

3129
### Manual documentation (the hard way)
3230

3331
`cd docs/` and `make html` to build. `make serve` to start http server.
3432

35-
Helpers:
36-
`make build_docs`, `make serve_docs`
33+
Helpers: `make build_docs`, `make serve_docs`
3734

3835
Rebuild docs on file change: `make watch_docs` (requires [entr(1)])
3936

40-
Rebuild docs and run server via one terminal: `make dev_docs` (requires above, and a
41-
`make(1)` with `-J` support, e.g. GNU Make)
42-
37+
Rebuild docs and run server via one terminal: `make dev_docs` (requires above, and a `make(1)` with
38+
`-J` support, e.g. GNU Make)
4339

4440
## Formatting / Linting
4541

46-
The project uses [black] and [isort] (one after the other) and runs [flake8] via
47-
CI. See the configuration in `pyproject.toml` and `setup.cfg`:
42+
The project uses [black] and [isort] (one after the other) and runs [flake8] via CI. See the
43+
configuration in `pyproject.toml` and `setup.cfg`:
4844

49-
`make black isort`: Run `black` first, then `isort` to handle import nuances
50-
`make flake8`, to watch (requires `entr(1)`): `make watch_flake8`
45+
`make black isort`: Run `black` first, then `isort` to handle import nuances `make flake8`, to watch
46+
(requires `entr(1)`): `make watch_flake8`
5147

5248
## Releasing
5349

54-
As of 0.10, [poetry] handles virtualenv creation, package requirements, versioning,
55-
building, and publishing. Therefore there is no setup.py or requirements files.
50+
As of 0.10, [poetry] handles virtualenv creation, package requirements, versioning, building, and
51+
publishing. Therefore there is no setup.py or requirements files.
5652

5753
Update `__version__` in `__about__.py` and `pyproject.toml`::
5854

0 commit comments

Comments
 (0)