Skip to content

Commit

Permalink
removing the extras group on pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
cparcerisas committed Sep 5, 2024
1 parent 8cdac50 commit 655d8da
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
python-version: ${{ matrix.python-versions }}
- name: Install dependencies
run: |
make init-tests
make init-test
- name: Run unit tests
run: |
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ init: startup
poetry install

init-dev: startup
poetry install --extras 'tests' --extras 'dev' --extras 'docs'
poetry install --with test, docs, dev

init-tests: startup
poetry install --extras 'tests' --extras 'dev'
init-test: startup
poetry install --with test

init-docs: startup
poetry install --extras 'docs'
poetry install --with docs

docs:
if ! [ -d "./docs" ]; then poetry run sphinx-quickstart -q --ext-autodoc --sep --project $(PROJECT) --author $(AUTHOR) docs; fi
Expand Down
7 changes: 1 addition & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,12 @@ openpyxl = "^3.1.5"
pvlib = {version = "^0.11.0", optional = true}
dask = {version = "^2023.0.0", optional = true}

[tool.poetry.extras]
dev = ["pre-commit", "isort", "black", "flake8"]
tests = ["pyyaml","pytest", "coverage", "python-dotenv", "pytest-cov"]
docs = ["sphinx"]

[tool.poetry.group.dev.dependencies]
pre-commit = "^3.3.1"
isort = "^5.12.0"
black = ">=23.3,<25.0"

[tool.poetry.group.tests.dependencies]
[tool.poetry.group.test.dependencies]
pyyaml = "^6.0"
pytest = "^7.3.1"
coverage = "^7.2.5"
Expand Down

0 comments on commit 655d8da

Please sign in to comment.