Skip to content

Commit

Permalink
build: switch to Poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Dec 20, 2021
1 parent 5ab0c6d commit a47d8dd
Show file tree
Hide file tree
Showing 7 changed files with 506 additions and 57 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python3 -m pip install .[test]
run: |
python3 -m pip install poetry
poetry install
- name: Run style check
run: poetry run pre-commit run -a
- name: Run tests
run: pytest

style:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.9
architecture: x64
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run -a
run: poetry run pytest
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/dist
/build
.coverage
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,20 @@ pip install --user ass-parser

## Contributing

This project uses [precommit](https://pre-commit.com/). You can install it with
`python3 -m pip install --user pre-commit` and running `pre-commit install`.
```sh
# Clone the repository:
git clone https://github.com/bubblesub/ass_parser.git
cd ass_parser

# Install to a local venv:
poetry install

# Install pre-commit hooks:
poetry run pre-commit install

# Enter the venv:
poetry shell
```

This project uses [poetry](https://python-poetry.org/) for packaging,
install instructions at [poetry#installation](https://python-poetry.org/docs/#installation)
Loading

0 comments on commit a47d8dd

Please sign in to comment.