Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Flake8 in the CI builds #638

Merged
merged 5 commits into from
Apr 25, 2022
Merged

Conversation

seratch
Copy link
Member

@seratch seratch commented Apr 23, 2022

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
Copy link

codecov bot commented Apr 23, 2022

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.

Copy link
Contributor

@filmaj filmaj left a comment

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 👀

python-version: ${{ matrix.python-version }}
- name: Run pytype verification
run: |
./scripts/run_pytype.sh
Copy link
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
Member 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.

scripts/run_flake8.sh Outdated Show resolved Hide resolved
Co-authored-by: Fil Maj <maj.fil@gmail.com>
python-version: ${{ matrix.python-version }}
- name: Run pytype verification
run: |
./scripts/run_pytype.sh
Copy link
Member 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.

.github/workflows/flake8.yml Outdated Show resolved Hide resolved
.github/workflows/flake8.yml Outdated Show resolved Hide resolved
@seratch
Copy link
Member Author

seratch commented Apr 25, 2022

@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