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 1bd75ddbe3 Update min requirements for rich to 12.4.1 (#23604)
1bd75ddbe3 is described below
commit 1bd75ddbe3b1e590e38d735757d99b43db1725d6
Author: Jarek Potiuk <[email protected]>
AuthorDate: Tue May 10 08:36:28 2022 +0200
Update min requirements for rich to 12.4.1 (#23604)
---
.pre-commit-config.yaml | 40 ++++++++++++++++++++--------------------
dev/breeze/README.md | 2 +-
dev/breeze/setup.cfg | 2 +-
setup.cfg | 2 +-
4 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 70c0c80d6e..f1f88129c4 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -324,7 +324,7 @@ repos:
files: ^setup\.cfg$|^setup\.py$
pass_filenames: false
entry: ./scripts/ci/pre_commit/pre_commit_check_order_setup.py
- additional_dependencies: ['rich']
+ additional_dependencies: ['rich>=12.4.1']
- id: check-extra-packages-references
name: Checks setup extra packages
description: Checks if all the libraries in setup.py are listed in
extra-packages-ref.rst file
@@ -332,7 +332,7 @@ repos:
files: ^setup\.py$|^docs/apache-airflow/extra-packages-ref\.rst$
pass_filenames: false
entry:
./scripts/ci/pre_commit/pre_commit_check_setup_extra_packages_ref.py
- additional_dependencies: ['rich']
+ additional_dependencies: ['rich>=12.4.1']
# This check might be removed when min-airflow-version in providers is
2.2
- id: check-airflow-2-1-compatibility
name: Check that providers are 2.1 compatible.
@@ -340,14 +340,14 @@ repos:
language: python
pass_filenames: true
files: ^airflow/providers/.*\.py$
- additional_dependencies: ['rich']
+ additional_dependencies: ['rich>=12.4.1']
- id: update-breeze-file
name: Update output of breeze commands in BREEZE.rst
entry: ./scripts/ci/pre_commit/pre_commit_breeze_cmd_line.py
language: python
files: ^BREEZE\.rst$|^dev/breeze/.*$
pass_filenames: false
- additional_dependencies: ['rich', 'rich-click']
+ additional_dependencies: ['rich>=12.4.1', 'rich-click']
- id: update-local-yml-file
name: Update mounts in the local yml file
entry: ./scripts/ci/pre_commit/pre_commit_local_yml_mounts.sh
@@ -379,7 +379,7 @@ repos:
language: python
files: ^Dockerfile$
pass_filenames: false
- additional_dependencies: ['rich']
+ additional_dependencies: ['rich>=12.4.1']
- id: update-supported-versions
name: Updates supported versions in documentation
entry: ./scripts/ci/pre_commit/pre_commit_supported_versions.py
@@ -601,7 +601,7 @@ repos:
- 'jsonschema>=3.2.0,<5.0.0'
- 'tabulate==0.8.8'
- 'jsonpath-ng==1.5.3'
- - 'rich'
+ - 'rich>=12.4.1'
- id: check-pre-commit-information-consistent
name: Update information about pre-commit hooks and verify ids and
names
entry: ./scripts/ci/pre_commit/pre_commit_check_pre_commit_hooks.py
@@ -609,7 +609,7 @@ repos:
- --max-length=70
language: python
files:
^\.pre-commit-config\.yaml$|^scripts/ci/pre_commit/pre_commit_check_pre_commit_hook_names\.py$
- additional_dependencies: ['pyyaml', 'jinja2', 'black==22.3.0',
'tabulate', 'rich']
+ additional_dependencies: ['pyyaml', 'jinja2', 'black==22.3.0',
'tabulate', 'rich>=12.4.1']
require_serial: true
pass_filenames: false
- id: check-airflow-providers-have-extras
@@ -619,7 +619,7 @@ repos:
files: ^setup\.py$|^airflow/providers/.*\.py$
pass_filenames: false
require_serial: true
- additional_dependencies: ['rich']
+ additional_dependencies: ['rich>=12.4.1']
- id: update-breeze-readme-config-hash
name: Update Breeze README.md with config files hash
language: python
@@ -634,7 +634,7 @@ repos:
files: ^dev/breeze/.*$
pass_filenames: false
require_serial: true
- additional_dependencies: ['click', 'rich']
+ additional_dependencies: ['click', 'rich>=12.4.1']
- id: check-system-tests-present
name: Check if system tests have required segments of code
entry: ./scripts/ci/pre_commit/pre_commit_check_system_tests.py
@@ -642,7 +642,7 @@ repos:
files: ^tests/system/.*/example_[^/]*.py$
exclude:
^tests/system/providers/google/bigquery/example_bigquery_queries\.py$
pass_filenames: true
- additional_dependencies: ['rich']
+ additional_dependencies: ['rich>=12.4.1']
- id: lint-markdown
name: Run markdownlint
description: Checks the style of Markdown files.
@@ -733,7 +733,7 @@ repos:
language: python
pass_filenames: true
files: ^\.github/workflows/.*\.yml$
- additional_dependencies: ['PyYAML', 'rich']
+ additional_dependencies: ['PyYAML', 'rich>=12.4.1']
- id: check-docstring-param-types
name: Check that docstrings do not specify param types
entry: ./scripts/ci/pre_commit/pre_commit_docstring_param_type.py
@@ -741,7 +741,7 @@ repos:
pass_filenames: true
files: \.py$
exclude: ^airflow/_vendor/
- additional_dependencies: ['rich']
+ additional_dependencies: ['rich>=12.4.1']
- id: lint-chart-schema
name: Lint chart/values.schema.json file
entry: ./scripts/ci/pre_commit/pre_commit_chart_schema.py
@@ -779,7 +779,7 @@ repos:
entry: ./scripts/ci/pre_commit/pre_commit_mypy.py
files: ^dev/.*\.py$
require_serial: true
- additional_dependencies: ['rich']
+ additional_dependencies: ['rich>=12.4.1']
- id: run-mypy
name: Run mypy for core
language: python
@@ -787,14 +787,14 @@ repos:
files: \.py$
exclude:
^provider_packages|^docs|^airflow/_vendor/|^airflow/providers|^airflow/migrations|^dev
require_serial: true
- additional_dependencies: ['rich']
+ additional_dependencies: ['rich>=12.4.1']
- id: run-mypy
name: Run mypy for providers
language: python
entry: ./scripts/ci/pre_commit/pre_commit_mypy.py --namespace-packages
files: ^airflow/providers/.*\.py$
require_serial: true
- additional_dependencies: ['rich']
+ additional_dependencies: ['rich>=12.4.1']
- id: run-mypy
name: Run mypy for /docs/ folder
language: python
@@ -802,7 +802,7 @@ repos:
files: ^docs/.*\.py$
exclude: ^docs/rtd-deprecation
require_serial: true
- additional_dependencies: ['rich']
+ additional_dependencies: ['rich>=12.4.1']
- id: run-flake8
name: Run flake8
language: python
@@ -810,7 +810,7 @@ repos:
files: \.py$
pass_filenames: true
exclude: ^airflow/_vendor/
- additional_dependencies: ['rich']
+ additional_dependencies: ['rich>=12.4.1']
- id: lint-javascript
name: ESLint against airflow/ui
language: python
@@ -818,7 +818,7 @@ repos:
files: ^airflow/ui/
entry: ./scripts/ci/pre_commit/pre_commit_ui_lint.py
pass_filenames: false
- additional_dependencies: ['rich']
+ additional_dependencies: ['rich>=12.4.1']
- id: lint-javascript
name: ESLint against current UI JavaScript files
language: python
@@ -826,12 +826,12 @@ repos:
files: ^airflow/www/static/js/
entry: ./scripts/ci/pre_commit/pre_commit_www_lint.py
pass_filenames: false
- additional_dependencies: ['rich']
+ additional_dependencies: ['rich>=12.4.1']
- id: update-migration-references
name: Update migration ref doc
language: python
entry: ./scripts/ci/pre_commit/pre_commit_migration_reference.py
pass_filenames: false
files:
^airflow/migrations/versions/.*\.py$|^docs/apache-airflow/migrations-ref\.rst$
- additional_dependencies: ['rich']
+ additional_dependencies: ['rich>=12.4.1']
## ONLY ADD PRE-COMMITS HERE THAT REQUIRE CI IMAGE
diff --git a/dev/breeze/README.md b/dev/breeze/README.md
index e038229c27..1ce55bff90 100644
--- a/dev/breeze/README.md
+++ b/dev/breeze/README.md
@@ -52,6 +52,6 @@ PLEASE DO NOT MODIFY THE HASH BELOW! IT IS AUTOMATICALLY
UPDATED BY PRE-COMMIT.
---------------------------------------------------------------------------------------------------------
-Package config hash:
7f2ce934ce9d90dcc7f97c10534416a8736cb37c1bdf10c0b9abaae77fef35875863188897e13b68899caac65072697341bd11f7cc39148b0c4774ef11a88df2
+Package config hash:
480e3d6ae41e7d82216d1d4196b5b44f65e0ff06a6e58f2a5b0c79c70c5912e8e4a42e99429cf3220718491f0ebde35a1a1d2663fd36cbd8d902a4d51f7ebeb1
---------------------------------------------------------------------------------------------------------
diff --git a/dev/breeze/setup.cfg b/dev/breeze/setup.cfg
index 5ef8675c98..14362ea492 100644
--- a/dev/breeze/setup.cfg
+++ b/dev/breeze/setup.cfg
@@ -63,7 +63,7 @@ install_requires =
pytest-xdist
pyyaml
requests
- rich
+ rich>=12.4.1
rich_click
[options.packages.find]
diff --git a/setup.cfg b/setup.cfg
index 0cf75b0938..6311319feb 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -156,7 +156,7 @@ install_requires =
python-dateutil>=2.3
python-nvd3>=0.15.0
python-slugify>=5.0
- rich
+ rich>=12.4.1
setproctitle>=1.1.8
# SQL Alchemy 1.4.10 introduces a bug where for PyODBC driver UTCDateTime
fields get wrongly converted
# as string and fail to be converted back to datetime. It was supposed to
be fixed in