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: python/README.md
-3Lines changed: 0 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -378,9 +378,6 @@ In Python, single-quoted strings and double-quoted strings are the same. This PE
378
378
379
379
For triple-quoted strings, always use double quote characters to be consistent with the docstring convention in [PEP257](https://www.python.org/dev/peps/pep-0257).
380
380
381
-
Here at Rootstrap we prefer to use single-quoted strings over double quotes.
382
-
For docstrings we use double quotes since the chance of writing a ' is higher in the documentation string of a class or a method
- A useful command could be `$ black .` which resolves all the issues. Also, you can run `$ black . --diff` to watch the proposed changes.
227
227
228
-
### If you want to have this in a new Github repository
229
-
If you want to have this project in a new Github repository under the rootstrap organization, then follow these steps:
230
-
1. Go to Github.
231
-
2. Click on create new repository.
232
-
3. Under Owner, select rootstrap.
233
-
4. Write the name for the respository equal to the name of the root folder of the project created with DjangoCookieCutter.
234
-
5. Copy the `git clone with ssh value` from the project.
235
-
6. Go to the root folder project in your terminal.
236
-
7. Run `$ git init`
237
-
8. Run `$ git remote add origin <git clone with ssh value>`
238
-
9. If your current branch hasn't the `main` branch, then run `$ git checkout -b main`
239
-
10. Run `$ git add .`
240
-
11. Run `$ git commit -m "First commit"`. You can change the `"First commit"` message with whatever you think is correct.
241
-
12. Run `$ git push origin main`
242
-
13. If you had to run `$ git checkout -b main` then now run `$ git branch -M main`
243
-
244
228
### [pre-commit](https://pre-commit.com/)
245
229
*NOTE: By default this package is already installed.*
246
230
@@ -275,32 +259,81 @@ If you add Mypy to pre-commit it will check the typing in the files you change o
275
259
276
260
...
277
261
```
278
-
You may need more configuration in `additional_dependencies` depending on your project libraries because these pre-commit stages are running in an independent environment.
279
-
280
262
</details>
281
-
282
263
If you want to check the Github Wokflow configuration please take a look at this [section](#github-workflow)
283
264
284
-
A useful command could be `$ mypy .`, which shows you all the typing issues you have in all your Python files.
265
+
A useful command could be `$ mypy .`, which shows you all the typing issues you have in all your Python files.
285
266
286
-
### Single-quotes
287
-
> *Here at Rootstrap we prefer to use single-quoted strings over double quotes. For docstrings we use double quotes since the chance of writing a ' is higher in the documentation string of a class or a method.*
0 commit comments