Skip to content

Commit

Permalink
Update pre-commit checks-flynt to 0.66 (apache#17672)
Browse files Browse the repository at this point in the history
Additionally, we now download flynt configurations from the official repository, which allows us to automatically download updates using the pre-commit autoupdate command
  • Loading branch information
mik-laj committed Aug 17, 2021
1 parent 808fb2a commit 495535b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions .pre-commit-config.yaml
Expand Up @@ -250,6 +250,13 @@ repos:
exclude: |
(?x)
^airflow/_vendor/
- repo: https://github.com/ikamensh/flynt/
rev: '0.66'
hooks:
- id: flynt
exclude: |
(?x)
^airflow/_vendor/
- repo: local
hooks:
- id: lint-openapi
Expand Down Expand Up @@ -622,14 +629,6 @@ repos:
files: airflow/config_templates/config\.yml$
require_serial: true
additional_dependencies: ['jsonschema==3.2.0', 'PyYAML==5.3.1', 'requests==2.25.0']
- id: flynt
name: Convert to f-strings with flynt
entry: flynt
language: python
language_version: python3
additional_dependencies: ['flynt==0.63']
files: \.py$
exclude: ^airflow/_vendor/
- id: ui-lint
name: ESLint against airflow/ui
language: node
Expand Down
2 changes: 1 addition & 1 deletion dev/airflow-license
Expand Up @@ -68,7 +68,7 @@ def parse_license_file(project_name):


if __name__ == "__main__":
print("{:<30}|{:<50}||{:<20}||{:<10}".format("PROJECT", "URL", "LICENSE TYPE DEFINED", "DETECTED"))
print(f"{'PROJECT':<30}|{'URL':<50}||{'LICENSE TYPE DEFINED':<20}||{'DETECTED':<10}")

notices = get_notices()

Expand Down

0 comments on commit 495535b

Please sign in to comment.