Skip to content

Commit

Permalink
[AIRFLOW-XXXX] Add pre-commit check for utf-8 file encoding (#7347)
Browse files Browse the repository at this point in the history
Note: From Python 3.x onwards the explicit utf-8 header is no longer required. It is utf-8 encoded by default.
  • Loading branch information
feluelle committed Feb 4, 2020
1 parent 34f5d6f commit 94fccca
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Expand Up @@ -150,6 +150,10 @@ repos:
- id: check-executables-have-shebangs
- id: check-xml
- id: trailing-whitespace
- id: fix-encoding-pragma
args:
- --remove
exclude: ^airflow/_vendor/.*$
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.4.4
hooks:
Expand Down
1 change: 0 additions & 1 deletion airflow/providers/amazon/aws/hooks/cloud_formation.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
1 change: 0 additions & 1 deletion airflow/providers/amazon/aws/operators/cloud_formation.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
1 change: 0 additions & 1 deletion airflow/providers/amazon/aws/sensors/cloud_formation.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
1 change: 0 additions & 1 deletion airflow/providers/mysql/operators/presto_to_mysql.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
1 change: 0 additions & 1 deletion tests/operators/test_generic_transfer.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
1 change: 0 additions & 1 deletion tests/providers/amazon/aws/hooks/test_cloud_formation.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
1 change: 0 additions & 1 deletion tests/providers/amazon/aws/sensors/test_cloud_formation.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
1 change: 0 additions & 1 deletion tests/providers/apache/cassandra/sensors/record.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
1 change: 0 additions & 1 deletion tests/providers/microsoft/msqql/__init__.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
1 change: 0 additions & 1 deletion tests/providers/mysql/operators/test_mysql.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
1 change: 0 additions & 1 deletion tests/providers/postgres/operators/__init__.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
1 change: 0 additions & 1 deletion tests/providers/postgres/operators/test_postgres.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down

0 comments on commit 94fccca

Please sign in to comment.