mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-22 18:52:46 +01:00
Start using isort
This commit is contained in:
parent
95b7e82f86
commit
4121f9ea30
6
.pre-commit-config.yaml
vendored
6
.pre-commit-config.yaml
vendored
@ -69,6 +69,12 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: add-trailing-comma
|
- id: add-trailing-comma
|
||||||
|
|
||||||
|
- repo: https://github.com/pycqa/isort
|
||||||
|
rev: 5.13.2
|
||||||
|
hooks:
|
||||||
|
- id: isort
|
||||||
|
name: isort (python)
|
||||||
|
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 24.4.2
|
rev: 24.4.2
|
||||||
hooks:
|
hooks:
|
||||||
|
@ -28,5 +28,6 @@ disable = ["W0511"]
|
|||||||
|
|
||||||
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html
|
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html
|
||||||
|
|
||||||
|
# isort
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
profile = "black"
|
profile = "black"
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
Sovellus tekee listasta pareja
|
Sovellus tekee listasta pareja
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Tuodaan paketti tabulate.
|
|
||||||
import tabulate
|
|
||||||
|
|
||||||
# Tarvitaan parien muodostamiseen
|
# Tarvitaan parien muodostamiseen
|
||||||
import random
|
import random
|
||||||
|
|
||||||
|
# Tuodaan paketti tabulate.
|
||||||
|
import tabulate
|
||||||
|
|
||||||
|
|
||||||
# Määritetään pääfunktio
|
# Määritetään pääfunktio
|
||||||
def main():
|
def main():
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
# Tuodaan turtle -kirjasto
|
# Tuodaan turtle -kirjasto
|
||||||
import turtle
|
|
||||||
|
|
||||||
# Satunnaislukuja
|
# Satunnaislukuja
|
||||||
import random
|
import random
|
||||||
|
import turtle
|
||||||
|
|
||||||
# ikkkuna = turtle.Screen()
|
# ikkkuna = turtle.Screen()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user