-
Notifications
You must be signed in to change notification settings - Fork 7
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
Modernize setup to use pyproject.toml #116
Changes from all commits
b83bd3f
cf1a83b
efa0df7
59df684
2ae11f5
c03dbd3
38167bc
070fafe
7b85e22
e0eadc0
eb0ab0c
920aece
6f7b478
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,28 +7,35 @@ jobs: | |
steps: | ||
- checkout | ||
- run: | ||
name: Install dev dependencies | ||
name: Create virtualenv | ||
command: | | ||
python3 -m venv ~/venv | ||
. ~/venv/bin/activate | ||
make install | ||
python -m venv /home/circleci/venv/ | ||
echo "source /home/circleci/venv/bin/activate" >> $BASH_ENV | ||
- restore_cache: | ||
keys: | ||
- &cache-key python-3.9-packages-v1-{{ checksum "pyproject.toml" }} | ||
- &cache-key-prefix python-3.9-packages-v1- | ||
- run: | ||
name: Test | ||
command: | | ||
. ~/venv/bin/activate | ||
make test | ||
name: Install dev dependencies | ||
command: make install | ||
- save_cache: | ||
key: *cache-key | ||
paths: | ||
- "/home/circleci/venv/" | ||
- "/home/circleci/.cache/pip" | ||
- run: | ||
name: Lint | ||
command: | | ||
. ~/venv/bin/activate | ||
make lint | ||
name: Check formatting | ||
command: make format_check | ||
when: always | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TIL |
||
- run: | ||
name: Mypy | ||
command: | | ||
. ~/venv/bin/activate | ||
make mypy | ||
name: Check linting | ||
command: make lint_check | ||
when: always | ||
- run: | ||
name: Black | ||
command: | | ||
. ~/venv/bin/activate | ||
make black_check | ||
name: Run tests | ||
command: make test | ||
when: always | ||
- run: | ||
name: Check Python type annotations | ||
command: make mypy | ||
when: always |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,22 +16,6 @@ repos: | |
stages: [commit] | ||
- id: trailing-whitespace # Trims trailing whitespace. | ||
|
||
|
||
- repo: https://github.com/timothycrosley/isort | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. General comment: Thanks for the catch on pre-commit. My VSCode doesn't search in this file. Need to fix that. |
||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/ambv/black | ||
rev: 23.1.0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/pycqa/flake8.git | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: 'v1.1.1' | ||
hooks: | ||
|
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General comment: Looking at this I like the bold changes. I think I get too timid with these kinds of chores, trying to keep them tiny in scope.