Skip to content

Enable Flake8 in the CI builds - #638

Merged
seratch merged 5 commits into
slackapi:mainfrom
seratch:flake8-flight
Apr 25, 2022
Merged

seratch merged 5 commits into
slackapi:mainfrom
seratch:flake8-flight

Conversation

@seratch

@seratch seratch commented Apr 23, 2022

Copy link
Copy Markdown
Contributor

This pull request enables Flake8 linter in the CI builds.

Category (place an x in each of the [ ])

  • slack_bolt.App and/or its core components
  • slack_bolt.async_app.AsyncApp and/or its core components
  • Adapters in slack_bolt.adapter
  • Document pages under /docs
  • Others

Requirements (place an x in each [ ])

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

  • I've read and understood the Contributing Guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've run ./scripts/install_all_and_run_tests.sh after making the changes.

@seratch seratch added this to the 1.13.1 milestone Apr 23, 2022
@seratch seratch self-assigned this Apr 23, 2022
@codecov

codecov Bot commented Apr 23, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #638 (7deea85) into main (8df95d5) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 7deea85 differs from pull request most recent head 990b615. Consider uploading reports for the commit 990b615 to get more accurate results

@@            Coverage Diff             @@
##             main     #638      +/-   ##
==========================================
- Coverage   92.03%   92.03%   -0.01%     
==========================================
  Files         170      170              
  Lines        5791     5789       -2     
==========================================
- Hits         5330     5328       -2     
  Misses        461      461              
Impacted Files Coverage Δ
slack_bolt/__init__.py 100.00% <ø> (ø)
slack_bolt/adapter/django/handler.py 88.50% <ø> (ø)
slack_bolt/async_app.py 100.00% <ø> (ø)
slack_bolt/context/ack/internals.py 90.62% <ø> (ø)
slack_bolt/listener/builtins.py 100.00% <ø> (ø)
slack_bolt/middleware/ssl_check/ssl_check.py 93.10% <ø> (ø)
slack_bolt/oauth/internals.py 98.21% <ø> (ø)
slack_bolt/adapter/aws_lambda/__init__.py 100.00% <100.00%> (ø)
slack_bolt/adapter/bottle/__init__.py 100.00% <100.00%> (ø)
slack_bolt/adapter/cherrypy/__init__.py 100.00% <100.00%> (ø)
... and 27 more

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 8df95d5...990b615. Read the comment docs.

@filmaj filmaj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
Nice branch name, I know what you played around with on your flight 👀

Comment thread .github/workflows/flake8.yml Outdated
python-version: ${{ matrix.python-version }}
- name: Run pytype verification
run: |
./scripts/run_pytype.sh

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still seems like we run pytype in the CI?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes 🤦 Thanks for catching this.

Comment thread scripts/run_flake8.sh Outdated
Co-authored-by: Fil Maj <maj.fil@gmail.com>
Comment thread .github/workflows/flake8.yml Outdated
python-version: ${{ matrix.python-version }}
- name: Run pytype verification
run: |
./scripts/run_pytype.sh

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes 🤦 Thanks for catching this.

Comment thread .github/workflows/flake8.yml Outdated
Comment thread .github/workflows/flake8.yml Outdated
@seratch

seratch commented Apr 25, 2022

Copy link
Copy Markdown
Contributor Author

@filmaj Thanks for your review!

@seratch
seratch merged commit 319d000 into slackapi:main Apr 25, 2022
@seratch
seratch deleted the flake8-flight branch April 25, 2022 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants