Skip to content

Commit

Permalink
Introduce Poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
matyaskuti committed Oct 17, 2023
1 parent 589f733 commit 8533156
Show file tree
Hide file tree
Showing 6 changed files with 939 additions and 43 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: false
- name: Pre-install dependencies
run: |
make install_lint_requirements
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
.PHONY: install_lint_requirements
install_lint_requirements:
pip3 install -e .[lint]
poetry install --with lint

.PHONY: lint
lint: install_lint_requirements
flake8 tests
black --line-length=79 --check --diff tests
pylint tests
isort --check-only tests setup.py
isort --check-only tests
mypy tests

.PHONY: install_test_requirements
install_test_requirements:
pip3 install -e .[test]
poetry install --with test

.PHONY: test
test: install_test_requirements
Expand All @@ -31,7 +31,7 @@ clean:
.PHONY: format
format:
black --line-length=79 tests
isort tests setup.py
isort tests

.PHONY: install
install:
Expand Down
Loading

0 comments on commit 8533156

Please sign in to comment.