Feat: packaging (#127)
- Add configuration files for packaging - Precommit now uses ruff Co-authored-by: bkfox <thomas bkfox net> Reviewed-on: #127
This commit is contained in:
		@ -28,8 +28,7 @@ class Command(BaseCommand):
 | 
			
		||||
            "--sample_length",
 | 
			
		||||
            type=int,
 | 
			
		||||
            default=120,
 | 
			
		||||
            help="size of sample to analyse in seconds. If not set (or 0), "
 | 
			
		||||
            "does not analyse by sample",
 | 
			
		||||
            help="size of sample to analyse in seconds. If not set (or 0), " "does not analyse by sample",
 | 
			
		||||
        )
 | 
			
		||||
        parser.add_argument(
 | 
			
		||||
            "-a",
 | 
			
		||||
@ -43,8 +42,7 @@ class Command(BaseCommand):
 | 
			
		||||
            "--range",
 | 
			
		||||
            type=float,
 | 
			
		||||
            nargs=2,
 | 
			
		||||
            help="range of minimal and maximal accepted value such as: "
 | 
			
		||||
            "--range min max",
 | 
			
		||||
            help="range of minimal and maximal accepted value such as: " "--range min max",
 | 
			
		||||
        )
 | 
			
		||||
        parser.add_argument(
 | 
			
		||||
            "-i",
 | 
			
		||||
@ -64,10 +62,7 @@ class Command(BaseCommand):
 | 
			
		||||
            raise CommandError("no attribute specified")
 | 
			
		||||
 | 
			
		||||
        # sound analyse and checks
 | 
			
		||||
        self.sounds = [
 | 
			
		||||
            SoundStats(path, options.get("sample_length"))
 | 
			
		||||
            for path in options.get("files")
 | 
			
		||||
        ]
 | 
			
		||||
        self.sounds = [SoundStats(path, options.get("sample_length")) for path in options.get("files")]
 | 
			
		||||
        self.bad = []
 | 
			
		||||
        self.good = []
 | 
			
		||||
        for sound in self.sounds:
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user