Skip to content

Commit

Permalink
Merge pull request #7 from MatiasTiainen/chore/support-pandas-2.0.0-a…
Browse files Browse the repository at this point in the history
…nd-newer

Update library dependencies
  • Loading branch information
tomasheiskanen authored Dec 7, 2023
2 parents f8bb8e1 + 4e1fc60 commit d28c1b2
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 23 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,39 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
env:
PYTHON: ${{ matrix.python-version }}
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: false

- name: Install dependencies
run: |
poetry install
- name: Lint with flake8, black, isort and mypy
run: |
poetry run isort --check .
poetry run black --check .
poetry run flake8 .
poetry run mypy .
poetry run pydocstyle daffy/
- name: Test with pytest
run: |
poetry run pytest --cov --cov-report=xml tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
env_vars: PYTHON
fail_ci_if_error: true
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,7 @@ dmypy.json
# Cython debug symbols
cython_debug/

# JetBrains IDE (e.g., PyCharm)
# The .idea directory stores project settings specific to JetBrains IDEs.
# These settings are individual and generally not shared across different development environments.
.idea/
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
repos:
- repo: https://github.com/timothycrosley/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.10.0 # Replace by any tag/version: https://github.com/psf/black/tags
rev: 23.11.0 # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
language_version: python3
- repo: https://gitlab.com/pycqa/flake8
rev: 5.0.4
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v0.982"
rev: v1.7.1
hooks:
- id: mypy
24 changes: 12 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ include = [
]

[tool.poetry.dependencies]
python = ">=3.8,<4.0.0"
pandas = "^1.5.1"
python = ">=3.8.1,<4.0.0"
pandas = ">=1.5.1,<3.0.0"

[tool.poetry.dev-dependencies]
pytest = "^7.2.0"
isort = "^5.10.1"
black = "^22.10.0"
flake8 = "^5.0.4"
pre-commit = "^2.20.0"
mypy = "^0.982"
pytest-mock = "^3.10.0"
pytest-cov = "^4.0.0"
coverage = {extras = ["toml"], version = "^6.5.0"}
pydocstyle = "^6.1.1"
pytest = "^7.4.3"
isort = "^5.12.0"
black = "^23.11.0"
flake8 = "^6.1.0"
pre-commit = "^3.5.0"
mypy = "^1.7.1"
pytest-mock = "^3.12.0"
pytest-cov = "^4.1.0"
coverage = {extras = ["toml"], version = "^7.3.2"}
pydocstyle = "^6.3.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit d28c1b2

Please sign in to comment.