mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-01 00:17:27 +03:00 
			
		
		
		
	Merge pull request #8188 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
		
						commit
						8c2a823e77
					
				|  | @ -1,6 +1,6 @@ | ||||||
| repos: | repos: | ||||||
|   - repo: https://github.com/astral-sh/ruff-pre-commit |   - repo: https://github.com/astral-sh/ruff-pre-commit | ||||||
|     rev: v0.4.7 |     rev: v0.5.0 | ||||||
|     hooks: |     hooks: | ||||||
|       - id: ruff |       - id: ruff | ||||||
|         args: [--exit-non-zero-on-fix] |         args: [--exit-non-zero-on-fix] | ||||||
|  | @ -11,7 +11,7 @@ repos: | ||||||
|       - id: black |       - id: black | ||||||
| 
 | 
 | ||||||
|   - repo: https://github.com/PyCQA/bandit |   - repo: https://github.com/PyCQA/bandit | ||||||
|     rev: 1.7.8 |     rev: 1.7.9 | ||||||
|     hooks: |     hooks: | ||||||
|     - id: bandit |     - id: bandit | ||||||
|       args: [--severity-level=high] |       args: [--severity-level=high] | ||||||
|  | @ -24,7 +24,7 @@ repos: | ||||||
|         exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.gd$|\.opt$) |         exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.gd$|\.opt$) | ||||||
| 
 | 
 | ||||||
|   - repo: https://github.com/pre-commit/mirrors-clang-format |   - repo: https://github.com/pre-commit/mirrors-clang-format | ||||||
|     rev: v18.1.5 |     rev: v18.1.8 | ||||||
|     hooks: |     hooks: | ||||||
|       - id: clang-format |       - id: clang-format | ||||||
|         types: [c] |         types: [c] | ||||||
|  | @ -50,7 +50,7 @@ repos: | ||||||
|         exclude: ^.github/.*TEMPLATE|^Tests/(fonts|images)/ |         exclude: ^.github/.*TEMPLATE|^Tests/(fonts|images)/ | ||||||
| 
 | 
 | ||||||
|   - repo: https://github.com/python-jsonschema/check-jsonschema |   - repo: https://github.com/python-jsonschema/check-jsonschema | ||||||
|     rev: 0.28.4 |     rev: 0.28.6 | ||||||
|     hooks: |     hooks: | ||||||
|       - id: check-github-workflows |       - id: check-github-workflows | ||||||
|       - id: check-readthedocs |       - id: check-readthedocs | ||||||
|  | @ -62,7 +62,7 @@ repos: | ||||||
|       - id: sphinx-lint |       - id: sphinx-lint | ||||||
| 
 | 
 | ||||||
|   - repo: https://github.com/tox-dev/pyproject-fmt |   - repo: https://github.com/tox-dev/pyproject-fmt | ||||||
|     rev: 1.8.0 |     rev: 2.1.3 | ||||||
|     hooks: |     hooks: | ||||||
|       - id: pyproject-fmt |       - id: pyproject-fmt | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
							
								
								
									
										105
									
								
								pyproject.toml
									
									
									
									
									
								
							
							
						
						
									
										105
									
								
								pyproject.toml
									
									
									
									
									
								
							|  | @ -14,8 +14,10 @@ readme = "README.md" | ||||||
| keywords = [ | keywords = [ | ||||||
|   "Imaging", |   "Imaging", | ||||||
| ] | ] | ||||||
| license = {text = "HPND"} | license = { text = "HPND" } | ||||||
| authors = [{name = "Jeffrey A. Clark", email = "aclark@aclark.net"}] | authors = [ | ||||||
|  |   { name = "Jeffrey A. Clark", email = "aclark@aclark.net" }, | ||||||
|  | ] | ||||||
| requires-python = ">=3.8" | requires-python = ">=3.8" | ||||||
| classifiers = [ | classifiers = [ | ||||||
|   "Development Status :: 6 - Mature", |   "Development Status :: 6 - Mature", | ||||||
|  | @ -38,8 +40,7 @@ classifiers = [ | ||||||
| dynamic = [ | dynamic = [ | ||||||
|   "version", |   "version", | ||||||
| ] | ] | ||||||
| [project.optional-dependencies] | optional-dependencies.docs = [ | ||||||
| docs = [ |  | ||||||
|   "furo", |   "furo", | ||||||
|   "olefile", |   "olefile", | ||||||
|   "sphinx>=7.3", |   "sphinx>=7.3", | ||||||
|  | @ -47,13 +48,13 @@ docs = [ | ||||||
|   "sphinx-inline-tabs", |   "sphinx-inline-tabs", | ||||||
|   "sphinxext-opengraph", |   "sphinxext-opengraph", | ||||||
| ] | ] | ||||||
| fpx = [ | optional-dependencies.fpx = [ | ||||||
|   "olefile", |   "olefile", | ||||||
| ] | ] | ||||||
| mic = [ | optional-dependencies.mic = [ | ||||||
|   "olefile", |   "olefile", | ||||||
| ] | ] | ||||||
| tests = [ | optional-dependencies.tests = [ | ||||||
|   "check-manifest", |   "check-manifest", | ||||||
|   "coverage", |   "coverage", | ||||||
|   "defusedxml", |   "defusedxml", | ||||||
|  | @ -65,28 +66,29 @@ tests = [ | ||||||
|   "pytest-cov", |   "pytest-cov", | ||||||
|   "pytest-timeout", |   "pytest-timeout", | ||||||
| ] | ] | ||||||
| typing = [ | optional-dependencies.typing = [ | ||||||
|   'typing-extensions; python_version < "3.10"', |   "typing-extensions; python_version<'3.10'", | ||||||
| ] | ] | ||||||
| xmp = [ | optional-dependencies.xmp = [ | ||||||
|   "defusedxml", |   "defusedxml", | ||||||
| ] | ] | ||||||
| [project.urls] | urls.Changelog = "https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst" | ||||||
| Changelog = "https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst" | urls.Documentation = "https://pillow.readthedocs.io" | ||||||
| Documentation = "https://pillow.readthedocs.io" | urls.Funding = "https://tidelift.com/subscription/pkg/pypi-pillow?utm_source=pypi-pillow&utm_medium=pypi" | ||||||
| Funding = "https://tidelift.com/subscription/pkg/pypi-pillow?utm_source=pypi-pillow&utm_medium=pypi" | urls.Homepage = "https://python-pillow.org" | ||||||
| Homepage = "https://python-pillow.org" | urls.Mastodon = "https://fosstodon.org/@pillow" | ||||||
| Mastodon = "https://fosstodon.org/@pillow" | urls."Release notes" = "https://pillow.readthedocs.io/en/stable/releasenotes/index.html" | ||||||
| "Release notes" = "https://pillow.readthedocs.io/en/stable/releasenotes/index.html" | urls.Source = "https://github.com/python-pillow/Pillow" | ||||||
| Source = "https://github.com/python-pillow/Pillow" |  | ||||||
| 
 | 
 | ||||||
| [tool.setuptools] | [tool.setuptools] | ||||||
| packages = ["PIL"] | packages = [ | ||||||
|  |   "PIL", | ||||||
|  | ] | ||||||
| include-package-data = true | include-package-data = true | ||||||
| package-dir = {"" = "src"} | package-dir = { "" = "src" } | ||||||
| 
 | 
 | ||||||
| [tool.setuptools.dynamic] | [tool.setuptools.dynamic] | ||||||
| version = {attr = "PIL.__version__"} | version = { attr = "PIL.__version__" } | ||||||
| 
 | 
 | ||||||
| [tool.cibuildwheel] | [tool.cibuildwheel] | ||||||
| before-all = ".github/workflows/wheels-dependencies.sh" | before-all = ".github/workflows/wheels-dependencies.sh" | ||||||
|  | @ -98,42 +100,47 @@ test-extras = "tests" | ||||||
| [tool.ruff] | [tool.ruff] | ||||||
| fix = true | fix = true | ||||||
| 
 | 
 | ||||||
| [tool.ruff.lint] | lint.select = [ | ||||||
| select = [ |   "C4",     # flake8-comprehensions | ||||||
|   "C4", # flake8-comprehensions |   "E",      # pycodestyle errors | ||||||
|   "E", # pycodestyle errors |   "EM",     # flake8-errmsg | ||||||
|   "EM", # flake8-errmsg |   "F",      # pyflakes errors | ||||||
|   "F", # pyflakes errors |   "I",      # isort | ||||||
|   "I", # isort |   "ISC",    # flake8-implicit-str-concat | ||||||
|   "ISC", # flake8-implicit-str-concat |   "LOG",    # flake8-logging | ||||||
|   "LOG", # flake8-logging |   "PGH",    # pygrep-hooks | ||||||
|   "PGH", # pygrep-hooks |   "PYI",    # flake8-pyi | ||||||
|   "PYI", # flake8-pyi |  | ||||||
|   "RUF100", # unused noqa (yesqa) |   "RUF100", # unused noqa (yesqa) | ||||||
|   "UP", # pyupgrade |   "UP",     # pyupgrade | ||||||
|   "W", # pycodestyle warnings |   "W",      # pycodestyle warnings | ||||||
|   "YTT", # flake8-2020 |   "YTT",    # flake8-2020 | ||||||
| ] | ] | ||||||
| ignore = [ | lint.ignore = [ | ||||||
|   "E203", # Whitespace before ':' |   "E203",   # Whitespace before ':' | ||||||
|   "E221", # Multiple spaces before operator |   "E221",   # Multiple spaces before operator | ||||||
|   "E226", # Missing whitespace around arithmetic operator |   "E226",   # Missing whitespace around arithmetic operator | ||||||
|   "E241", # Multiple spaces after ',' |   "E241",   # Multiple spaces after ',' | ||||||
|   "PYI026", # flake8-pyi: typing.TypeAlias added in Python 3.10 |   "PYI026", # flake8-pyi: typing.TypeAlias added in Python 3.10 | ||||||
|   "PYI034", # flake8-pyi: typing.Self added in Python 3.11 |   "PYI034", # flake8-pyi: typing.Self added in Python 3.11 | ||||||
| ] | ] | ||||||
| 
 | lint.per-file-ignores."Tests/oss-fuzz/fuzz_font.py" = [ | ||||||
| [tool.ruff.lint.per-file-ignores] |   "I002", | ||||||
| "Tests/oss-fuzz/fuzz_font.py" = ["I002"] | ] | ||||||
| "Tests/oss-fuzz/fuzz_pillow.py" = ["I002"] | lint.per-file-ignores."Tests/oss-fuzz/fuzz_pillow.py" = [ | ||||||
| 
 |   "I002", | ||||||
| [tool.ruff.lint.isort] | ] | ||||||
| known-first-party = ["PIL"] | lint.isort.known-first-party = [ | ||||||
| required-imports = ["from __future__ import annotations"] |   "PIL", | ||||||
|  | ] | ||||||
|  | lint.isort.required-imports = [ | ||||||
|  |   "from __future__ import annotations", | ||||||
|  | ] | ||||||
| 
 | 
 | ||||||
| [tool.pytest.ini_options] | [tool.pytest.ini_options] | ||||||
| addopts = "-ra --color=yes" | addopts = "-ra --color=yes" | ||||||
| testpaths = ["Tests"] | testpaths = [ | ||||||
|  |   "Tests", | ||||||
|  | ] | ||||||
| 
 | 
 | ||||||
| [tool.mypy] | [tool.mypy] | ||||||
| python_version = "3.8" | python_version = "3.8" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user