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

Upgrade to poetry 1.2 and separate the dev-dependencies into groups #316

Open
jond01 opened this issue Nov 30, 2022 · 0 comments
Open

Upgrade to poetry 1.2 and separate the dev-dependencies into groups #316

jond01 opened this issue Nov 30, 2022 · 0 comments

Comments

@jond01
Copy link

jond01 commented Nov 30, 2022

Instead of installing all the dev-dependencies on each nox session:

[tool.poetry.dev-dependencies]
pytest = "^5.3.2"
coverage = {extras = ["toml"], version = "^5.0.1"}
pytest-cov = "^2.8.1"
pytest-mock = "^2.0.0"
flake8 = "^3.7.9"
black = "^19.10b0"
flake8-black = "^0.1.1"
flake8-import-order = "^0.18.1"
flake8-bugbear = "^20.1.2"
flake8-bandit = "^2.1.2"
safety = "^1.8.5"
mypy = "^0.761"
pytype = {version = "^2020.1.8", python = "3.7"}
flake8-annotations = "^2.0.0"
typeguard = "^2.7.1"
flake8-docstrings = "^1.5.0"
darglint = "^1.1.2"
xdoctest = "^0.11.0"
sphinx = "^2.3.1"
sphinx-autodoc-typehints = "^1.10.3"
codecov = "^2.0.22"

Split the dev-deps into groups - a feature provided by poetry 1.2:
https://python-poetry.org/docs/managing-dependencies/#dependency-groups
Install only the relevant dependencies.

This requires upgrading poetry to 1.2 (e.g., 1.2.2):

- run: pip install poetry==1.0.5

Suggested groups:

  • test
  • lint
  • typing
  • docs
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

No branches or pull requests

1 participant