Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into add-whitespace-token
Browse files Browse the repository at this point in the history
  • Loading branch information
omukazu committed Apr 15, 2024
2 parents 919310d + 92077e1 commit 2e0fda1
Show file tree
Hide file tree
Showing 6 changed files with 932 additions and 897 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
POETRY_PYTHON: ${{ steps.setup-python.outputs.python-path }}
run: |
poetry env use $POETRY_PYTHON
poetry install --no-interaction --without dev,test
poetry install --no-interaction --without dev,test --no-cache
- name: Build KWJA
run: |
poetry build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Add path for Python packages
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: poetry install --no-interaction --only main
run: poetry install --no-interaction --only main --no-cache
- name: Build package
run: poetry build

Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,10 @@ jobs:
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
poetry config virtualenvs.create false
poetry install --no-interaction --without dev
poetry install --no-interaction --without dev --no-cache
- name: Run tests
run: |
poetry run pytest --cov=./ --cov-report=xml
env:
XDG_CACHE_HOME: ${{ github.workspace }}/.cache
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
- id: check-toml
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.1.1
rev: 24.4.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
Expand All @@ -22,22 +22,22 @@ repos:
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.9.0
hooks:
- id: mypy
additional_dependencies:
- rhoknp==1.6.0
- hydra-core==1.3.2
- torch==2.2.0
- torchmetrics==1.3.0
- transformers==4.36.2
- transformers==4.38.2
- tokenizers
- wandb
- typer
- types-PyYAML
- cohesion-tools==0.5.7
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.2
hooks:
- id: pyupgrade
args:
Expand Down
Loading

0 comments on commit 2e0fda1

Please sign in to comment.