Skip to content

Conversation

@snazzyfox
Copy link
Contributor

About

Fixes #398

Move code quality and documentation dependencies into an the [dev] extra. This will stop force-installing code quality tools in projects that make use of this library, in order to prevent a large amount of unnecessary code and potential version conflicts.

Checklist

Additional Notes

I have not changed any of the requirements in this PR. However, libraries in requirements-lint.txt can be removed completely since this project uses pre-commit for linting. pre-commit does not rely on the user's current environment and thus does not require these libraries to be installed. Since linting options are specified in pre-commit scripts instead of config files, running these tools manually is error prone, so it may be a better idea to simply not include them and instead direct contributors to run them with precommit, e.g. pre-commit run flake8

I can create a new issue/PR for this or add it to this PR if needed.

setup.py Outdated


def read_requirements(filename):
return open(filename).read().strip().splitlines()
Copy link
Contributor

Choose a reason for hiding this comment

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

i think this should be replaced with the context manager

def read_requirements(filename):
     with open(filename, "r", encoding="utf-8") as req:
             return req.read().strip().split()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, updated :)

Move code quality and documentation dependencies into an the [dev] extra. Prevents
unnecessarily force-installing these libraries for downstream users and potentially
creating version conflicts in their projects.
@i0bs
Copy link
Contributor

i0bs commented Jan 20, 2022

Looks good to me, thank you for contributing!

@i0bs i0bs merged commit b8b7856 into interactions-py:unstable Jan 20, 2022
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