Skip to content

Commit 2de014b

Browse files
committed
Update 3.9 plus
1 parent eba3b0a commit 2de014b

File tree

14 files changed

+44
-37
lines changed

14 files changed

+44
-37
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
target: ["3.7", "3.8", "3.9", "3.10.6", "3.11"]
14+
target: ["3.9", "3.10"]
1515
steps:
1616
- name: checkout
1717
uses: actions/checkout@v2

.pre-commit-config.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,25 @@
11
repos:
22
- repo: https://github.com/asottile/pyupgrade
3-
rev: v3.2.2
3+
rev: v3.3.1
44
hooks:
55
- id: pyupgrade
6-
args: [--py37-plus]
6+
args: [--py39-plus]
77

88
- repo: https://github.com/pycqa/isort
9-
rev: 5.10.1
9+
rev: 5.12.0
1010
hooks:
1111
- id: isort
1212
args: [--profile, black]
1313
types: [python]
1414

1515
- repo: https://github.com/psf/black
16-
rev: 22.10.0
16+
rev: 23.1.0
1717
hooks:
1818
- id: black
1919
args: [--target-version=py37]
2020

21-
- repo: https://github.com/pre-commit/mirrors-prettier
22-
rev: v2.7.1
23-
hooks:
24-
- id: prettier
25-
2621
- repo: https://github.com/pre-commit/pre-commit-hooks
27-
rev: v4.3.0
22+
rev: v4.4.0
2823
hooks:
2924
- id: check-added-large-files
3025
- id: check-case-conflict
@@ -37,7 +32,7 @@ repos:
3732
- id: trailing-whitespace
3833

3934
- repo: http://github.com/pre-commit/pygrep-hooks
40-
rev: v1.9.0
35+
rev: v1.10.0
4136
hooks:
4237
- id: python-check-blanket-noqa
4338
- id: python-check-blanket-type-ignore
@@ -46,14 +41,14 @@ repos:
4641
- id: python-use-type-annotations
4742

4843
- repo: https://github.com/pycqa/pylint
49-
rev: v2.15.5
44+
rev: v2.16.0
5045
hooks:
5146
- id: pylint
5247
language: system
5348
types: [python]
5449

5550
- repo: https://github.com/pycqa/flake8
56-
rev: 5.0.4
51+
rev: 6.0.0
5752
hooks:
5853
- id: flake8
5954
language: system
@@ -77,11 +72,16 @@ repos:
7772
rev: 1.5.3
7873
hooks:
7974
- id: nbqa-pyupgrade
75+
additional_dependencies: [pyupgrade==3.3.1]
8076
args: [--py39-plus]
8177
- id: nbqa-isort
78+
additional_dependencies: [isort==5.12.0]
79+
args: [--float-to-top]
8280
- id: nbqa-black
81+
additional_dependencies: [black==23.1.0]
8382
args: [--target-version=py39]
8483
- id: nbqa-flake8
84+
additional_dependencies: [flake8==6.0.0]
8585

8686
- repo: local
8787
hooks:

pyproject.toml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
22
requires = [
3-
"pip>=22.0.4",
3+
"pip>=23",
44
"pytest-runner>=6.0.0",
5-
"setuptools>=61.2.0",
6-
"setuptools_scm[toml]>=6.4.2",
7-
"wheel>=0.37.1",
5+
"setuptools>=67.1.0",
6+
"setuptools_scm[toml]>=7.1.0",
7+
"wheel>=0.38.4",
88
]
99
build-backend = "setuptools.build_meta"
1010

@@ -22,17 +22,14 @@ classifiers = [
2222
"License :: OSI Approved :: MIT License",
2323
"Operating System :: Unix",
2424
"Operating System :: POSIX",
25-
"Programming Language :: Python :: 3.7",
26-
"Programming Language :: Python :: 3.8",
2725
"Programming Language :: Python :: 3.9",
2826
"Programming Language :: Python :: 3.10",
29-
"Programming Language :: Python :: 3.11",
3027
"Programming Language :: Python :: Implementation :: CPython",
3128
"Topic :: Utilities",
3229
]
3330
dependencies = [
3431
"blosc==1.10.6",
35-
"cfgenvy>=1.4.2",
32+
"cfgenvy>=2.0.0",
3633
"numpy>=1.15.4",
3734
"pandas>=0.23.4",
3835
"requests>=2.26.0",
@@ -41,7 +38,7 @@ description = "An opinionated library to help deploy data science projects"
4138
dynamic = ["version"]
4239
license = { file = "license.txt" }
4340
name = "dsdk"
44-
requires-python = ">=3.7"
41+
requires-python = ">=3.9"
4542
readme = "readme.md"
4643

4744
[project.optional-dependencies]
@@ -90,7 +87,7 @@ Tracker = "https://github.com/pennsignals/dsdk/issues"
9087

9188
[tool.black]
9289
line-length = 79
93-
target-version = ["py37","py38","py39","py310","py311"]
90+
target-version = ["py39","py310"]
9491

9592
[tool.coverage.report]
9693
exclude_lines = [
@@ -107,7 +104,7 @@ branch = true
107104
parallel = true
108105

109106
[tool.distutils.bdist_wheel]
110-
python-tag = "py37.py38.py39.py310"
107+
python-tag = "py39.py310"
111108

112109
[tool.isort]
113110
profile = "black"

src/dsdk/flowsheet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44

55
from abc import ABC
66
from base64 import b64encode
7+
from collections.abc import Generator, Mapping
78
from contextlib import contextmanager
89
from datetime import datetime
910
from json import JSONDecodeError, dumps
1011
from time import sleep as default_sleep
11-
from typing import TYPE_CHECKING, Any, Generator, Mapping
12+
from typing import TYPE_CHECKING, Any
1213
from urllib.parse import urlencode
1314

1415
from cfgenvy import YamlMapping

src/dsdk/interval.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
from __future__ import annotations
44

5+
from collections.abc import Generator
56
from contextlib import contextmanager
67
from logging import getLogger
78
from time import perf_counter_ns
8-
from typing import Any, Generator
9+
from typing import Any
910

1011
from cfgenvy import YamlMapping
1112

src/dsdk/model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
from __future__ import annotations
44

55
from abc import ABC
6+
from collections.abc import Generator
67
from contextlib import contextmanager
78
from json import dumps
89
from logging import getLogger
9-
from typing import TYPE_CHECKING, Any, Generator
10+
from typing import TYPE_CHECKING, Any
1011

1112
from cfgenvy import yaml_type
1213

src/dsdk/mssql.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
from __future__ import annotations
44

55
from abc import ABC
6+
from collections.abc import Generator
67
from contextlib import contextmanager
78
from json import dumps
89
from logging import getLogger
9-
from typing import TYPE_CHECKING, Any, Generator
10+
from typing import TYPE_CHECKING, Any
1011

1112
from .persistor import Persistor as BasePersistor
1213
from .service import Service

src/dsdk/persistor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
from collections.abc import Generator, Sequence
56
from contextlib import contextmanager
67
from hashlib import blake2b
78
from itertools import chain
@@ -10,7 +11,7 @@
1011
from pathlib import Path
1112
from re import compile as re_compile
1213
from string import Formatter
13-
from typing import Any, Generator, Sequence
14+
from typing import Any
1415

1516
from cfgenvy import YamlMapping, yaml_type
1617
from pandas import DataFrame, concat

src/dsdk/postgres.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44

55
from abc import ABC
66
from collections import deque
7+
from collections.abc import Generator
78
from contextlib import contextmanager
89
from json import dumps
910
from logging import getLogger
10-
from typing import TYPE_CHECKING, Any, Generator
11+
from typing import TYPE_CHECKING, Any
1112

1213
from numpy import integer
1314
from pandas import DataFrame, NaT, Series, isna

src/dsdk/service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44

55
import pickle
66
from collections import OrderedDict
7+
from collections.abc import Generator, Mapping, Sequence
78
from contextlib import contextmanager
89
from datetime import date, datetime, tzinfo
910
from json import dumps
1011
from logging import getLogger
11-
from typing import Any, Callable, Generator, Mapping, Sequence
12+
from typing import Any, Callable
1213

1314
from cfgenvy import Parser, YamlMapping
1415
from numpy import allclose
@@ -256,7 +257,6 @@ def __init__(
256257
def __call__(self) -> Batch:
257258
"""Run."""
258259
with self.open_batch() as batch:
259-
260260
# if one of the mixins didn't set these properties...
261261
if batch.as_of is None:
262262
batch.as_of = now_utc_datetime()

0 commit comments

Comments
 (0)