You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,13 +135,9 @@ following rules before you submit a pull request:
135
135
- When creating a multi-line expression with binary operators, break before the operator.
136
136
- Add type hints to all function signatures.
137
137
(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.
142
139
```python
143
140
flynt {source_file_or_directory}
144
-
```
145
141
146
142
- If your pull request addresses an issue, please use the pull request title
147
143
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