mirror of
				https://gitea.blesmrt.net/mikaela/scripts.git
				synced 2025-11-04 03:17:32 +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:
 | 
			
		||||
      - 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
 | 
			
		||||
    rev: 24.4.2
 | 
			
		||||
    hooks:
 | 
			
		||||
 | 
			
		||||
@ -28,5 +28,6 @@ disable = ["W0511"]
 | 
			
		||||
 | 
			
		||||
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html
 | 
			
		||||
 | 
			
		||||
# isort
 | 
			
		||||
[tool.isort]
 | 
			
		||||
profile = "black"
 | 
			
		||||
 | 
			
		||||
@ -2,12 +2,12 @@
 | 
			
		||||
Sovellus tekee listasta pareja
 | 
			
		||||
"""
 | 
			
		||||
 | 
			
		||||
# Tuodaan paketti tabulate.
 | 
			
		||||
import tabulate
 | 
			
		||||
 | 
			
		||||
# Tarvitaan parien muodostamiseen
 | 
			
		||||
import random
 | 
			
		||||
 | 
			
		||||
# Tuodaan paketti tabulate.
 | 
			
		||||
import tabulate
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Määritetään pääfunktio
 | 
			
		||||
def main():
 | 
			
		||||
 | 
			
		||||
@ -1,8 +1,7 @@
 | 
			
		||||
# Tuodaan turtle -kirjasto
 | 
			
		||||
import turtle
 | 
			
		||||
 | 
			
		||||
# Satunnaislukuja
 | 
			
		||||
import random
 | 
			
		||||
import turtle
 | 
			
		||||
 | 
			
		||||
# ikkkuna = turtle.Screen()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user