Skip to content

Commit 6bc28f0

Browse files
committed
2 parents 363ebd2 + 13e4ce7 commit 6bc28f0

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

docs/_posts/2021-03-09-composition.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ the little problems, we can combine the solutions to solve bigger problems.
1111
Why do we break down problems? This is due to the limitations of the human mind --
1212
we can only deal with a small number of concepts at a time. So we break down
1313
problems, and break them down again until they're just the right sized chunks that
14-
we can mentally digest them.
14+
we can mentally digest.
1515

1616
A well-decomposed problem will produce the most elegant solution.
1717

docs/_posts/python/2021-07-01-black-vim.markdown

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ redirect_from:
1515
This method of installing Black uses the built-in plugin management in Vim 8+.
1616

1717
```sh
18-
mkdir -p ~/.vim/pack/plugins/start/black/{plugin,autoload}
19-
curl https://github.com/psf/black/22.6.0/autoload/black.vim -o ~/.vim/pack/plugins/start/black/plugin/black.vim
20-
curl https://github.com/psf/black/22.6.0/autoload/black.vim -o ~/.vim/pack/plugins/start/black/autoload/black.vim
18+
mkdir -p ~/.vim/pack/python/start/black/plugin
19+
mkdir -p ~/.vim/pack/python/start/black/autoload
20+
curl https://github.com/psf/black/stable/plugin/black.vim -o ~/.vim/pack/python/start/black/plugin/black.vim
21+
curl https://github.com/psf/black/stable/autoload/black.vim -o ~/.vim/pack/python/start/black/autoload/black.vim
2122
```
2223

2324
Open Vim and format your code with:
@@ -39,8 +40,8 @@ rm -r ~/.vim/black
3940

4041
Pull in the new versions of the plugins
4142
```sh
42-
curl https://github.com/psf/black/22.7.0/autoload/black.vim -o ~/.vim/pack/plugins/start/black/plugin/black.vim
43-
curl https://github.com/psf/black/22.7.0/autoload/black.vim -o ~/.vim/pack/plugins/start/black/autoload/black.vim
43+
curl https://github.com/psf/black/stable/plugin/black.vim -o ~/.vim/pack/python/start/black/plugin/black.vim
44+
curl https://github.com/psf/black/stable/autoload/black.vim -o ~/.vim/pack/python/start/black/autoload/black.vim
4445
```
4546

4647
Open Vim and run `:Black` again.

docs/_posts/python/2023-02-03-pytest-xfail-on-specific-exception.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ category: python
55
permalink: /python/pytest-xfail-on-specific-exception
66
---
77

8-
Use `@pytest.xfail` with the `raises` param.
8+
Use `xfail` with the `raises` param.
99

1010
```python
1111
from pytest import mark
@@ -15,4 +15,4 @@ def test_func() -> None:
1515
func()
1616
```
1717

18-
While this lets you expect a specific exception, it won't let you say _where_ it should happen in the test.
18+
While this works, unfortunately it won't let you say exactly _where_ it's expected to be raised in the test.

0 commit comments

Comments
 (0)