Skip to content

Commit d66cd46

Browse files
Update CONTRIBUTING.md
Co-authored-by: Pieter Gijsbers <p.gijsbers@tue.nl>
1 parent 414dd93 commit d66cd46

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,9 @@ following rules before you submit a pull request:
135135
- When creating a multi-line expression with binary operators, break before the operator.
136136
- Add type hints to all function signatures.
137137
(note: not all functions have type hints yet, this is work in progress.)
138-
- Use the [`str.format`](https://docs.python.org/3/library/stdtypes.html#str.format) over [`printf`](https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting) style formatting.
139-
E.g. use `"{} {}".format('hello', 'world')` not `"%s %s" % ('hello', 'world')`.
140-
(note: old code may still use `printf`-formatting, this is work in progress.)
141-
Try to use [`f-strings`](https://docs.python.org/3/library/stdtypes.html#formatted-string-literals-f-strings) if you can. You can use [flynt](https://github.com/ikamensh/flynt) to make sure your contributed code uses f-strings.
138+
- Use [`f-strings`](https://docs.python.org/3/library/stdtypes.html#formatted-string-literals-f-strings) for text interpolation. You can use [flynt](https://github.com/ikamensh/flynt) to make sure your contributed code uses f-strings.
142139
```python
143140
flynt {source_file_or_directory}
144-
```
145141

146142
- If your pull request addresses an issue, please use the pull request title
147143
to describe the issue and mention the issue number in the pull request description. This will make sure a link back to the original issue is

0 commit comments

Comments
 (0)