Skip to content

Conversation

@cclauss
Copy link

@cclauss cclauss commented May 2, 2018

Resolve flake8 error:

flake8 testing of https://github.com/apache/incubator-airflow on Python 3.6.3

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./airflow/contrib/hooks/aws_hook.py:75:13: F821 undefined name 'logging'
            logging.warning("Option Error in parsing s3 config file")
            ^

Make sure you have checked all steps below.

JIRA

  • My PR addresses the following Airflow JIRA issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

Description

  • Here are some details about my PR, including screenshots of any UI changes:

Tests

  • My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

  • My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

Documentation

  • [] In case of new functionality, my PR adds documentation that describes how to use it.
    • When adding new operators/hooks/sensors, the autoclass documentation generation needs to be added.

Code Quality

  • Passes git diff upstream/master -u -- "*.py" | python3 -m flake8 --diff

Resolve flake8 error:

flake8 testing of https://github.com/apache/incubator-airflow on Python 3.6.3

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./airflow/contrib/hooks/aws_hook.py:75:13: F821 undefined name 'logging'
            logging.warning("Option Error in parsing s3 config file")
            ^
```
@codecov-io
Copy link

Codecov Report

Merging #3296 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3296   +/-   ##
=======================================
  Coverage   75.89%   75.89%           
=======================================
  Files         197      197           
  Lines       14706    14706           
=======================================
  Hits        11161    11161           
  Misses       3545     3545

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 96d00da...4f342f3. Read the comment docs.

@cclauss
Copy link
Author

cclauss commented May 3, 2018

Closed in favor of #3307

@cclauss cclauss closed this May 3, 2018
@cclauss cclauss deleted the patch-3 branch May 3, 2018 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants