Skip to content

Commit 7398bc0

Browse files
Dev (#176)
- Added `tox` for local testing - Updated dependencies - Updated ruff (Hence, every file has been touched)
1 parent 0d530cc commit 7398bc0

38 files changed

+345
-366
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.0.292
3+
rev: v0.3.2
44
hooks:
5+
- id: ruff-format
56
- id: ruff
67
- repo: https://github.com/executablebooks/mdformat
78
rev: 0.7.17
@@ -14,7 +15,7 @@ repos:
1415
- --number
1516
- --wrap=keep
1617
- repo: https://github.com/pre-commit/pre-commit-hooks
17-
rev: v4.4.0
18+
rev: v4.5.0
1819
hooks:
1920
- id: check-ast
2021
- id: check-builtin-literals
@@ -38,10 +39,6 @@ repos:
3839
- id: trailing-whitespace
3940
args:
4041
- --markdown-linebreak-ext=md
41-
- repo: https://github.com/psf/black
42-
rev: 23.9.1
43-
hooks:
44-
- id: black
4542
- repo: https://github.com/pappasam/toml-sort
4643
rev: v0.23.1
4744
hooks:

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 2
88
build:
99
os: ubuntu-22.04
1010
tools:
11-
python: "3.11"
11+
python: "3.12"
1212

1313
mkdocs:
1414
configuration: mkdocs.yaml

LICENSE.txt renamed to LICENSE

File renamed without changes.

pyproject.toml

Lines changed: 31 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ classifiers = [
2525
"Typing :: Typed"
2626
]
2727
dependencies = [
28-
"pydantic >= 2.4.2",
28+
"eval-type-backport >= 0.1.3; python_version < \"3.10\"",
29+
"pydantic >= 2.6.4",
2930
"ratelimit >= 2.2.1",
3031
"requests >= 2.31.0"
3132
]
@@ -42,18 +43,18 @@ requires-python = ">= 3.8"
4243

4344
[project.optional-dependencies]
4445
dev = [
45-
"pre-commit >= 3.4.0"
46+
"pre-commit >= 3.5.0"
4647
]
4748
docs = [
4849
"mkdocs >= 1.5.3",
49-
"mkdocs-include-markdown-plugin >= 6.0.1",
50-
"mkdocs-material >= 9.4.4",
51-
"mkdocstrings[python] >= 0.23.0"
50+
"mkdocs-include-markdown-plugin >= 6.0.4",
51+
"mkdocs-material >= 9.5.13",
52+
"mkdocstrings[python] >= 0.24.1"
5253
]
5354
test = [
54-
"pytest >= 7.4.2",
55+
"pytest >= 8.1.1",
5556
"pytest-cov >= 4.1.0",
56-
"pytest-pretty >= 1.2.0"
57+
"tox >= 4.14.1"
5758
]
5859

5960
[project.urls]
@@ -62,10 +63,6 @@ Homepage = "https://pypi.org/project/Simyan"
6263
Issues = "https://github.com/Metron-Project/Simyan/issues"
6364
Source = "https://github.com/Metron-Project/Simyan"
6465

65-
[tool.black]
66-
line-length = 100
67-
target-version = ["py310", "py311", "py312", "py38", "py39"]
68-
6966
[tool.coverage.report]
7067
show_missing = true
7168

@@ -80,38 +77,47 @@ addopts = ["--cov"]
8077

8178
[tool.ruff]
8279
fix = true
80+
line-length = 100
81+
output-format = "grouped"
82+
show-fixes = true
83+
unsafe-fixes = true
84+
85+
[tool.ruff.format]
86+
docstring-code-format = true
87+
line-ending = "native"
88+
skip-magic-trailing-comma = true
89+
90+
[tool.ruff.lint]
8391
ignore = [
92+
"COM812",
8493
"D107",
8594
"EXE",
8695
"FBT",
8796
"PLR2004",
8897
"TCH"
8998
]
90-
line-length = 100
91-
output-format = "grouped"
99+
ignore-init-module-imports = true
92100
select = ["ALL"]
93-
show-fixes = true
94-
target-version = "py38"
95101

96-
[tool.ruff.flake8-annotations]
102+
[tool.ruff.lint.flake8-annotations]
97103
allow-star-arg-any = true
98104
mypy-init-return = true
99105

100-
[tool.ruff.flake8-tidy-imports]
106+
[tool.ruff.lint.flake8-tidy-imports]
101107
ban-relative-imports = "all"
102108

103-
[tool.ruff.isort]
104-
combine-as-imports = true
109+
[tool.ruff.lint.flake8-unused-arguments]
110+
ignore-variadic-names = true
105111

106-
[tool.ruff.mccabe]
107-
max-complexity = 18
112+
[tool.ruff.lint.isort]
113+
combine-as-imports = true
114+
split-on-trailing-comma = false
108115

109-
[tool.ruff.pep8-naming]
116+
[tool.ruff.lint.pep8-naming]
110117
classmethod-decorators = ["classmethod", "pydantic.field_validator"]
111118

112-
[tool.ruff.per-file-ignores]
113-
"simyan/schemas/*.py" = ["FA100"]
119+
[tool.ruff.lint.per-file-ignores]
114120
"tests/test_*.py" = ["S101"]
115121

116-
[tool.ruff.pydocstyle]
122+
[tool.ruff.lint.pydocstyle]
117123
convention = "google"

simyan/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""simyan package entry file."""
2-
__version__ = "1.2.0"
2+
33
__all__ = ["__version__", "get_cache_root"]
4+
__version__ = "1.2.1"
45

56
import os
67
from pathlib import Path

0 commit comments

Comments
 (0)