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

chore: update ci pipeline and poetry version #160

Merged
merged 2 commits into from
May 6, 2024

Conversation

argysamo
Copy link
Collaborator

  • Introduce dependencies' caching, python black testing and pytest in ci pipeline. Set the ubuntu agent to an explicit version.
  • Bump poetry version to 1.8.2, and bump all dev dependencies to their latest. Update flask to use <3.0.0 version. Following this version, the Markup module is not include in Flask anymore.
  • Run black -l 80 on project
  • Update version in init.py to "0.4.1" to make the test successful. (I don't see the functionality of this test. I will consider removing it in the next PR).

- Introduce dependencies' caching, python black testing and pytest in ci pipeline. Set the ubuntu agent to an explicit version.
- Bump poetry version to 1.8.2, and bump all dev dependencies to their latest. Update flask to use <3.0.0 version. Following this version, the Markup module is not include in Flask anymore.
- Run `black -l 80` on project
- Update __version__ in __init__.py to "0.4.1" to make the test successful. (I don't see the functionality of this test. I will consider removing it in the next PR).
@argysamo argysamo requested a review from marcuxyz April 24, 2024 16:43
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install dependencies
run: poetry install
Copy link
Member

Choose a reason for hiding this comment

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

You can put this command in makefile and run only

E.g;

Make install


- name: Code Quality
run: |
pip install black
black -l 80 --check
poetry run black -l 80 --check .
Copy link
Member

Choose a reason for hiding this comment

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

Here also...

- Update Makefile to include all CI steps. Introduce `black` and `quality` tasks. The latter runs `black` and `pep8` tasks.
- Update ci.yaml to include make tasks include of raw commands
- Fix `black` related findings (i.e. mainly F401 ones). The F401 findings were related with typing module, so instructed `black` to ignore those.
@argysamo
Copy link
Collaborator Author

argysamo commented May 4, 2024

Hey @marcuxyz ,
Thanks for your comments. I updated the make tasks to cover all CI steps and made some other minor updates. More details in commit message.
What do you think?


test: pep8
py.test --cov=flask_googlemaps -l --tb=short --maxfail=1 tests/
Copy link
Member

Choose a reason for hiding this comment

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

was necessary to remove the -l --tb=short --maxfail=1 tests/ flags?

@marcuxyz
Copy link
Member

marcuxyz commented May 4, 2024

Hey @marcuxyz , Thanks for your comments. I updated the make tasks to cover all CI steps and made some other minor updates. More details in commit message. What do you think?

Very nice
Thank you @argysamo
I left one comment only.

@marcuxyz
Copy link
Member

marcuxyz commented May 4, 2024

@rochacbruno please review the pr,

@marcuxyz marcuxyz requested a review from rochacbruno May 4, 2024 11:47
@rochacbruno rochacbruno merged commit 093f143 into flask-extensions:master May 6, 2024
4 of 8 checks passed
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.

3 participants