mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Merge pull request #7530 from hugovk/infer-target-version
Black and Ruff infer `target-version` from `requires-python` in `pyproject.toml`
This commit is contained in:
		
						commit
						8a13bf8b93
					
				| 
						 | 
				
			
			@ -9,7 +9,6 @@ repos:
 | 
			
		|||
    rev: 23.10.1
 | 
			
		||||
    hooks:
 | 
			
		||||
      - id: black
 | 
			
		||||
        args: [--target-version=py38]
 | 
			
		||||
 | 
			
		||||
  - repo: https://github.com/PyCQA/bandit
 | 
			
		||||
    rev: 1.7.5
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -118,6 +118,6 @@ lint:
 | 
			
		|||
.PHONY: lint-fix
 | 
			
		||||
lint-fix:
 | 
			
		||||
	python3 -c "import black" > /dev/null 2>&1 || python3 -m pip install black
 | 
			
		||||
	python3 -m black --target-version py38 .
 | 
			
		||||
	python3 -m black .
 | 
			
		||||
	python3 -c "import ruff" > /dev/null 2>&1 || python3 -m pip install ruff
 | 
			
		||||
	python3 -m ruff --fix .
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -78,7 +78,6 @@ package-dir = {"" = "src"}
 | 
			
		|||
version = {attr = "PIL.__version__"}
 | 
			
		||||
 | 
			
		||||
[tool.ruff]
 | 
			
		||||
target-version = "py38"
 | 
			
		||||
line-length = 88
 | 
			
		||||
select = [
 | 
			
		||||
  "E", # pycodestyle errors
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user