Skip to content

Commit 2010ba0

Browse files
committed
chore: bump versions of python packages for dev
1 parent 44b5d90 commit 2010ba0

File tree

6 files changed

+25
-18
lines changed

6 files changed

+25
-18
lines changed

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
repos:
22
- repo: https://github.com/pycqa/isort
3-
rev: 5.10.1
3+
rev: 5.12.0
44
hooks:
55
- id: isort
66
args: [--profile, black]
77
- repo: https://github.com/psf/black
8-
rev: 22.1.0
8+
rev: 23.3.0
99
hooks:
1010
- id: black
1111
- repo: https://github.com/PyCQA/flake8
12-
rev: 4.0.1
12+
rev: 6.0.0
1313
hooks:
1414
- id: flake8
1515
- repo: https://github.com/pre-commit/mirrors-mypy
16-
rev: v0.931
16+
rev: v1.3.0
1717
hooks:
1818
- id: mypy
1919
additional_dependencies:

requirements/dev.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
-r ./test.txt
22

3-
pre-commit==2.17.0
4-
black==22.1.0
5-
flake8==4.0.1
6-
isort==5.10.1
7-
mypy==0.931
3+
pre-commit==3.3.2
4+
black==23.3.0
5+
flake8==6.0.0
6+
isort==5.12.0
7+
mypy==1.3.0
88

9-
types-python-dateutil==2.8.9
10-
types-PyYAML==6.0.4
9+
types-python-dateutil==2.8.19.13
10+
types-PyYAML==6.0.12.10

requirements/test.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-r ./main.txt
22

3-
pytest==7.0.1
4-
pytest-cov==3.0.0
3+
pytest==7.3.1
4+
pytest-cov==4.1.0

statelint/config.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Set
1+
from typing import Optional, Set
22

33
from .problem import ProblemType
44

@@ -12,7 +12,9 @@ def input_type(self) -> str:
1212
return "YAML" if self.is_yaml else "JSON"
1313

1414
def __init__(
15-
self, ignored_problem_types: Set[ProblemType] = None, yaml: bool = False
15+
self,
16+
ignored_problem_types: Optional[Set[ProblemType]] = None,
17+
yaml: bool = False,
1618
):
1719
self.ignored_problem_types = ignored_problem_types or set()
1820
self.is_yaml = yaml

statelint/fields/num_field.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ class BaseNumericField(NonNullMixin, Field, ABC):
1111
_ceiling: Optional[int]
1212

1313
def __init__(
14-
self, name: str, floor: int = None, ceiling: int = None, inclusive: bool = True
14+
self,
15+
name: str,
16+
floor: Optional[int] = None,
17+
ceiling: Optional[int] = None,
18+
inclusive: bool = True,
1519
) -> None:
1620
super().__init__(name)
1721
self._floor = floor

statelint/linter.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import json
22
import os.path
3-
from typing import Any, Callable, Dict, List, Union
3+
from typing import Any, Callable, Dict, List, Optional, Union
44

55
from .config import Config
66
from .nodes.factory.factory import StateFactory
@@ -16,7 +16,8 @@ def __init__(self, root_cause: Exception) -> None:
1616
class Linter:
1717
@staticmethod
1818
def validate(
19-
json_str_or_dict_or_file_path: Union[str, Dict[str, Any]], config: Config = None
19+
json_str_or_dict_or_file_path: Union[str, Dict[str, Any]],
20+
config: Optional[Config] = None,
2021
) -> List[str]:
2122
if not config:
2223
config = Config()

0 commit comments

Comments
 (0)