This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new ba8ee909e4 Remove [project] section from `pyproject.toml` (#34014)
ba8ee909e4 is described below
commit ba8ee909e4532318649df9c2d5a7ed70b357913d
Author: Andrey Anshin <[email protected]>
AuthorDate: Mon Sep 4 11:56:18 2023 +0400
Remove [project] section from `pyproject.toml` (#34014)
* Add name and version of project into 'pyproject.toml'
* Remove [project] section from `pyproject.toml`
* Remove regex for update pyproject [project] version
* Fight agains static checks
---
.pre-commit-config.yaml | 5 +++++
STATIC_CODE_CHECKS.rst | 2 ++
dev/breeze/src/airflow_breeze/pre_commit_ids.py | 1 +
images/breeze/output-commands-hash.txt | 2 +-
images/breeze/output_static-checks.svg | 2 +-
pyproject.toml | 6 ++----
6 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b1988fcd10..ba5d0a4456 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -292,6 +292,11 @@ repos:
- --ignore-words=docs/spelling_wordlist.txt
-
--skip=airflow/providers/*/*.rst,airflow/www/*.log,docs/*/commits.rst,docs/apache-airflow/tutorial/pipeline_example.csv,*.min.js,*.lock,INTHEWILD.md
- --exclude-file=.codespellignorelines
+ - repo: https://github.com/abravalheri/validate-pyproject
+ rev: v0.14
+ hooks:
+ - id: validate-pyproject
+ name: Validate pyproject.toml
- repo: local
# Note that this is the 2nd "local" repo group in the
.pre-commit-config.yaml file. This is because
# we try to minimise the number of passes that must happen in order to
apply some of the changes
diff --git a/STATIC_CODE_CHECKS.rst b/STATIC_CODE_CHECKS.rst
index a6fbb5b93b..be446735cb 100644
--- a/STATIC_CODE_CHECKS.rst
+++ b/STATIC_CODE_CHECKS.rst
@@ -359,6 +359,8 @@ require Breeze Docker image to be built locally.
+-----------------------------------------------------------+--------------------------------------------------------------+---------+
| update-version | Update version
to the latest version in the documentation | |
+-----------------------------------------------------------+--------------------------------------------------------------+---------+
+| validate-pyproject | Validate
pyproject.toml | |
++-----------------------------------------------------------+--------------------------------------------------------------+---------+
| yamllint | Check YAML files
with yamllint | |
+-----------------------------------------------------------+--------------------------------------------------------------+---------+
diff --git a/dev/breeze/src/airflow_breeze/pre_commit_ids.py
b/dev/breeze/src/airflow_breeze/pre_commit_ids.py
index a9f797e84c..a083ee15ea 100644
--- a/dev/breeze/src/airflow_breeze/pre_commit_ids.py
+++ b/dev/breeze/src/airflow_breeze/pre_commit_ids.py
@@ -125,5 +125,6 @@ PRE_COMMIT_LIST = [
"update-supported-versions",
"update-vendored-in-k8s-json-schema",
"update-version",
+ "validate-pyproject",
"yamllint",
]
diff --git a/images/breeze/output-commands-hash.txt
b/images/breeze/output-commands-hash.txt
index 92905b64e4..666a12b13d 100644
--- a/images/breeze/output-commands-hash.txt
+++ b/images/breeze/output-commands-hash.txt
@@ -64,7 +64,7 @@ setup:version:be116d90a21c2afe01087f7609774e1e
setup:fd391bab5277ad3aca65987a84144d51
shell:1462cde6f7e11a73cb42d4eec93c598e
start-airflow:d4815dea2cfc0af7038697c1d9a13996
-static-checks:d643498c1537236f20c475c0036f1a30
+static-checks:19926b8fcea5784b28d4a0d99865363c
testing:docker-compose-tests:a4dfe7dadbe3e95fdf2b8d2107f7e208
testing:helm-tests:0669be17b744ba057adbf38681bd8e68
testing:integration-tests:e745af9dd595adaa6f17ef02fbaae3b5
diff --git a/images/breeze/output_static-checks.svg
b/images/breeze/output_static-checks.svg
index aff980e81d..f694d823b7 100644
--- a/images/breeze/output_static-checks.svg
+++ b/images/breeze/output_static-checks.svg
@@ -332,7 +332,7 @@
</text><text class="breeze-static-checks-r5" x="0" y="1093.6"
textLength="12.2" clip-path="url(#breeze-static-checks-line-44)">│</text><text
class="breeze-static-checks-r7" x="451.4" y="1093.6" textLength="988.2"
clip-path="url(#breeze-static-checks-line-44)">update-local-yml-file | update-migration-references |                           &#
[...]
</text><text class="breeze-static-checks-r5" x="0" y="1118" textLength="12.2"
clip-path="url(#breeze-static-checks-line-45)">│</text><text
class="breeze-static-checks-r7" x="451.4" y="1118" textLength="988.2"
clip-path="url(#breeze-static-checks-line-45)">update-providers-dependencies | update-spelling-wordlist-to-be-sorted |          </text><text
class="breeze-static-checks-r5" x="1451.8" y="1118" textLength="12.2" clip-pa
[...]
</text><text class="breeze-static-checks-r5" x="0" y="1142.4"
textLength="12.2" clip-path="url(#breeze-static-checks-line-46)">│</text><text
class="breeze-static-checks-r7" x="451.4" y="1142.4" textLength="988.2"
clip-path="url(#breeze-static-checks-line-46)">update-supported-versions | update-vendored-in-k8s-json-schema | update-version |</text><text
class="breeze-static-checks-r5" x="1451.8" y="1142.4" textLength="12.2"
clip-path="url(#breeze-static-checks-line [...]
-</text><text class="breeze-static-checks-r5" x="0" y="1166.8"
textLength="12.2" clip-path="url(#breeze-static-checks-line-47)">│</text><text
class="breeze-static-checks-r7" x="451.4" y="1166.8" textLength="988.2"
clip-path="url(#breeze-static-checks-line-47)">yamllint)                                     &
[...]
+</text><text class="breeze-static-checks-r5" x="0" y="1166.8"
textLength="12.2" clip-path="url(#breeze-static-checks-line-47)">│</text><text
class="breeze-static-checks-r7" x="451.4" y="1166.8" textLength="988.2"
clip-path="url(#breeze-static-checks-line-47)">validate-pyproject | yamllint)                                
[...]
</text><text class="breeze-static-checks-r5" x="0" y="1191.2"
textLength="12.2" clip-path="url(#breeze-static-checks-line-48)">│</text><text
class="breeze-static-checks-r4" x="24.4" y="1191.2" textLength="12.2"
clip-path="url(#breeze-static-checks-line-48)">-</text><text
class="breeze-static-checks-r4" x="36.6" y="1191.2" textLength="61"
clip-path="url(#breeze-static-checks-line-48)">-show</text><text
class="breeze-static-checks-r4" x="97.6" y="1191.2" textLength="195.2"
clip-path="url(# [...]
</text><text class="breeze-static-checks-r5" x="0" y="1215.6"
textLength="12.2" clip-path="url(#breeze-static-checks-line-49)">│</text><text
class="breeze-static-checks-r4" x="24.4" y="1215.6" textLength="12.2"
clip-path="url(#breeze-static-checks-line-49)">-</text><text
class="breeze-static-checks-r4" x="36.6" y="1215.6" textLength="134.2"
clip-path="url(#breeze-static-checks-line-49)">-initialize</text><text
class="breeze-static-checks-r4" x="170.8" y="1215.6" textLength="146.4" clip-p
[...]
</text><text class="breeze-static-checks-r5" x="0" y="1240" textLength="12.2"
clip-path="url(#breeze-static-checks-line-50)">│</text><text
class="breeze-static-checks-r4" x="24.4" y="1240" textLength="12.2"
clip-path="url(#breeze-static-checks-line-50)">-</text><text
class="breeze-static-checks-r4" x="36.6" y="1240" textLength="48.8"
clip-path="url(#breeze-static-checks-line-50)">-max</text><text
class="breeze-static-checks-r4" x="85.4" y="1240" textLength="292.8"
clip-path="url(#breeze- [...]
diff --git a/pyproject.toml b/pyproject.toml
index 1732edc78f..38d80503b8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -16,7 +16,7 @@
# under the License.
[tool.black]
line-length = 110
-target-version = ['py37', 'py38', 'py39', 'py310']
+target-version = ['py38', 'py39', 'py310', 'py311']
# Editable installs are currently broken using setuptools 64.0.0 and above.
The problem is tracked in
# https://github.com/pypa/setuptools/issues/3548. We're also discussing how we
could potentially fix
@@ -28,10 +28,8 @@ target-version = ['py37', 'py38', 'py39', 'py310']
requires = ['setuptools==67.2.0']
build-backend = "setuptools.build_meta"
-[project]
-requires-python = ">=3.8"
-
[tool.ruff]
+target-version = "py38"
typing-modules = ["airflow.typing_compat"]
line-length = 110
extend-exclude = [