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

Update dependencies #229

Merged
merged 9 commits into from
Nov 2, 2023
Merged

Update dependencies #229

merged 9 commits into from
Nov 2, 2023

Conversation

kaitj
Copy link
Collaborator

@kaitj kaitj commented Nov 2, 2023

Proposed changes

Resolves #225. A number of our dependencies were outdated, one of which caused a conflict when trying to bump via dependabot. This PR just goes through and updates all of the dependencies.

Types of changes

What types of changes does your code introduce? Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionalitiy)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you are unsure about any of the choices, don't hesitate to ask!

  • Changes have been tested to ensure that fix is effective or that a feature works.
  • Changes pass the unit tests
  • Code has been run through black with the -l 79 flag.
  • I have included necessary documentation or comments (as necessary)
  • Any dependent changes have been merged and published

Notes

All PRs will undergo the unit testing before being reviewed. You may be requested to explain or make additional changes before the PR is accepted.

PR template was adopted from appium

kaitj added 6 commits November 2, 2023 14:59
Update all dependencies to latest versions
Make the __init__.py and config more concise with appropriate Flask
variables. There was a lot of duplication of code from the config object
being read and in the initialization under `create_app`. Also removed
heroku-related code in these two files as app is no longer hosted on
heroku.

Additionally updated the .env.template to reflect changes from the code.
Instead of hard coding the variables into the compose.yml file, the only
variable still hard-coded is the uwsgi socket. Everything else is read
from the .env file (which the user will have to copy from the
.envtemplate and set variables accordingly).
Old instructions for testing development was outdated, referring to a
now obsolete `manage.py` file. This commit updates this, referring the
user to make use of docker compose for testing, which is the easiest
way, albeit at the cost of additional installations.

The benefit of this is the user does not need to separately install and
setup Postgres. However, this also means to test each change, the user
will have to run a separate `docker compose up --build`.
@kaitj kaitj added the maintenance Pull requests that maintain the repo label Nov 2, 2023
kaitj added 2 commits November 2, 2023 15:36
Instead of using flake8 and pylint (+ plugins), this commit makes the
switch to Ruff. Pylint was having internal issues that could not be
disabled.

Ruff is a rust-based linter / formatter we have been using in other
projects, so this seemed like a good time to make the switch.
@kaitj kaitj force-pushed the maint/update-flask branch from 875cdd6 to 2d01e12 Compare November 2, 2023 19:44
@kaitj
Copy link
Collaborator Author

kaitj commented Nov 2, 2023

Merging this one in despite the CI workflow failing - for some reason it is still using the old linting checks. I have run these locally to make sure the pass

@kaitj kaitj merged commit 2e2854e into afids:master Nov 2, 2023
6 of 9 checks passed
@kaitj kaitj deleted the maint/update-flask branch November 2, 2023 19:50
@kaitj kaitj restored the maint/update-flask branch November 2, 2023 19:52
@kaitj kaitj mentioned this pull request Nov 2, 2023
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Pull requests that maintain the repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Flask dependency
1 participant