Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Make development workflow easier to use#18

Closed
doublevcodes wants to merge 25 commits into
python-discord:mainfrom
doublevcodes:main
Closed

Make development workflow easier to use#18
doublevcodes wants to merge 25 commits into
python-discord:mainfrom
doublevcodes:main

Conversation

@doublevcodes
Copy link
Copy Markdown

@doublevcodes doublevcodes commented Oct 6, 2021

This PR aims to improve the overall development experience with the API project. The changes I'm planning on are outlined as follows:

  • Insert pre-commit as a development dependency so we don't forget to lint before we push.
  • Add in taskipy tasks to aid with commonly used commands
  • Migrate to using isort instead of flake8-import-order
  • Use the ~= format of pinning dependencies in accordance with other Python Discord projects

@doublevcodes doublevcodes marked this pull request as draft October 6, 2021 19:16
@jchristgit jchristgit self-assigned this Oct 6, 2021
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated
doublevcodes and others added 3 commits November 1, 2021 20:58
Lines 34-40 have been commented out since flake8 seems to be called incorrectly by pre-commit. Running the command in a terminal (not in pre-commit) seems to be working fine.
Copy link
Copy Markdown

@Shivansh-007 Shivansh-007 left a comment

Choose a reason for hiding this comment

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

The branch wasn't merged properly with main, and leaves out a few changes in the pyproject.toml file, for example, psycopg2-binary is left out.

Comment thread .pre-commit-config.yaml
Comment thread .pre-commit-config.yaml Outdated
Comment thread .pre-commit-config.yaml Outdated
Comment thread .pre-commit-config.yaml
Comment thread pyproject.toml
@D0rs4n D0rs4n added area: dependencies type: enhancement Changes or improvements to existing features labels Nov 2, 2021
@Shivansh-007
Copy link
Copy Markdown

@doublevcodes Whats the status of this PR?

@doublevcodes doublevcodes marked this pull request as ready for review November 15, 2021 22:29
Copy link
Copy Markdown

@Shivansh-007 Shivansh-007 left a comment

Choose a reason for hiding this comment

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

Would you like to add a workflow to check black formatting? Basically, check if there is a black diff (black . --check --diff).

Other than that and the changes required by Chris, everything looks good 👍🏻

Comment thread .pre-commit-config.yaml Outdated
Comment thread alembic/env.py Outdated
Comment thread alembic/versions/01182f408d4c_initial_migration.py
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml
Comment thread tox.ini Outdated
@jchristgit
Copy link
Copy Markdown
Contributor

Closing this per us sunsetting this project.

@jchristgit jchristgit closed this Dec 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: dependencies type: enhancement Changes or improvements to existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants