Skip to content

Commit 7b4c2dd

Browse files
Rye (#182)
- Transition to [Rye](https://rye.astral.sh) - Update dependencies and pre-commit
1 parent 7398bc0 commit 7b4c2dd

22 files changed

+272
-39
lines changed

.github/dependabot.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
version: 2
22
updates:
3-
- package-ecosystem: pip
3+
- package-ecosystem: github-actions
44
directory: /
55
schedule:
66
interval: daily
7-
- package-ecosystem: github-actions
7+
groups:
8+
github_actions:
9+
patterns:
10+
- "*"
11+
12+
- package-ecosystem: pip
813
directory: /
914
schedule:
1015
interval: daily
16+
groups:
17+
python:
18+
patterns:
19+
- "*"

.github/workflows/testing.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
python-version:
25-
- 3.8
26-
- 3.9
25+
- '3.8'
26+
- '3.9'
2727
- '3.10'
2828
- '3.11'
2929
- '3.12'

.pre-commit-config.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.3.2
3+
rev: v0.5.0
44
hooks:
55
- id: ruff-format
66
- id: ruff
@@ -15,13 +15,15 @@ repos:
1515
- --number
1616
- --wrap=keep
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
18-
rev: v4.5.0
18+
rev: v4.6.0
1919
hooks:
2020
- id: check-ast
2121
- id: check-builtin-literals
2222
- id: check-case-conflict
2323
- id: check-docstring-first
2424
- id: check-merge-conflict
25+
args:
26+
- --assume-in-merge
2527
- id: check-toml
2628
- id: check-yaml
2729
args:
@@ -30,12 +32,12 @@ repos:
3032
exclude_types:
3133
- json
3234
- xml
33-
- id: fix-encoding-pragma
34-
args:
35-
- --remove
35+
- id: fix-byte-order-marker
36+
- id: forbid-submodules
3637
- id: mixed-line-ending
3738
args:
3839
- --fix=auto
40+
- id: name-tests-test
3941
- id: trailing-whitespace
4042
args:
4143
- --markdown-linebreak-ext=md

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
[![PyPI - Version](https://img.shields.io/pypi/v/Simyan.svg?logo=Python&label=Version&style=flat-square)](https://pypi.python.org/pypi/Simyan/)
66
[![PyPI - License](https://img.shields.io/pypi/l/Simyan.svg?logo=Python&label=License&style=flat-square)](https://opensource.org/licenses/GPL-3.0)
77

8-
[![Hatch](https://img.shields.io/badge/Packaging-Hatch-4051b5?style=flat-square)](https://github.com/pypa/hatch)
9-
[![Pre-Commit](https://img.shields.io/badge/Pre--Commit-Enabled-informational?style=flat-square&logo=pre-commit)](https://github.com/pre-commit/pre-commit)
10-
[![Black](https://img.shields.io/badge/Code--Style-Black-000000?style=flat-square)](https://github.com/psf/black)
11-
[![Ruff](https://img.shields.io/badge/Linter-Ruff-informational?style=flat-square)](https://github.com/charliermarsh/ruff)
8+
[![Rye](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/rye/main/artwork/badge.json?style=flat-square)](https://rye.astral.sh)
9+
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&style=flat-square)](https://github.com/pre-commit/pre-commit)
10+
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json?style=flat-square)](https://github.com/astral-sh/ruff)
1211

1312
[![Github - Contributors](https://img.shields.io/github/contributors/Metron-Project/Simyan.svg?logo=Github&label=Contributors&style=flat-square)](https://github.com/Metron-Project/Simyan/graphs/contributors)
1413
[![Github Action - Testing](https://img.shields.io/github/actions/workflow/status/Metron-Project/Simyan/testing.yaml?branch=main&logo=Github&label=Testing&style=flat-square)](https://github.com/Metron-Project/Simyan/actions/workflows/testing.yaml)
@@ -53,12 +52,6 @@ Please use the [GitHub issue tracker](https://github.com/Metron-Project/Simyan/i
5352

5453
Big thanks to [Mokkari](https://github.com/Metron-Project/mokkari) for the inspiration and template for this project.
5554

56-
Who or what is Simyan?
57-
58-
> Simyan along with his partner Mokkari, are the diminutive proprietors of the Evil Factory, an evil version of Project Cadmus created by Darkseid and his elite.
59-
>
60-
> More details at [Simyan (New Earth)](<https://dc.fandom.com/wiki/Simyan_(New_Earth)>)
61-
6255
## Socials
6356

6457
[![Social - Matrix](https://img.shields.io/matrix/metron-general:matrix.org?label=Metron%20General&logo=matrix&style=for-the-badge)](https://matrix.to/#/#metron-general:matrix.org)

pyproject.toml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ classifiers = [
2525
"Typing :: Typed"
2626
]
2727
dependencies = [
28-
"eval-type-backport >= 0.1.3; python_version < \"3.10\"",
29-
"pydantic >= 2.6.4",
28+
"eval-type-backport >= 0.2.0; python_version < \"3.10\"",
29+
"pydantic >= 2.8.0",
3030
"ratelimit >= 2.2.1",
31-
"requests >= 2.31.0"
31+
"requests >= 2.32.3"
3232
]
3333
description = "A Python wrapper for the Comicvine API."
3434
dynamic = ["version"]
@@ -42,19 +42,15 @@ readme = "README.md"
4242
requires-python = ">= 3.8"
4343

4444
[project.optional-dependencies]
45-
dev = [
46-
"pre-commit >= 3.5.0"
47-
]
4845
docs = [
49-
"mkdocs >= 1.5.3",
50-
"mkdocs-include-markdown-plugin >= 6.0.4",
51-
"mkdocs-material >= 9.5.13",
52-
"mkdocstrings[python] >= 0.24.1"
46+
"mkdocs >= 1.6.0",
47+
"mkdocs-include-markdown-plugin >= 6.2.1",
48+
"mkdocs-material >= 9.5.27",
49+
"mkdocstrings[python] >= 0.25.1"
5350
]
5451
test = [
55-
"pytest >= 8.1.1",
56-
"pytest-cov >= 4.1.0",
57-
"tox >= 4.14.1"
52+
"pytest >= 8.2.2",
53+
"pytest-cov >= 5.0.0"
5854
]
5955

6056
[project.urls]
@@ -96,7 +92,6 @@ ignore = [
9692
"PLR2004",
9793
"TCH"
9894
]
99-
ignore-init-module-imports = true
10095
select = ["ALL"]
10196

10297
[tool.ruff.lint.flake8-annotations]
@@ -117,7 +112,17 @@ split-on-trailing-comma = false
117112
classmethod-decorators = ["classmethod", "pydantic.field_validator"]
118113

119114
[tool.ruff.lint.per-file-ignores]
120-
"tests/test_*.py" = ["S101"]
115+
"tests/*_test.py" = ["S101"]
121116

122117
[tool.ruff.lint.pydocstyle]
123118
convention = "google"
119+
120+
[tool.ruff.lint.pyupgrade]
121+
keep-runtime-typing = true
122+
123+
[tool.rye]
124+
dev-dependencies = [
125+
"pre-commit >= 3.5.0",
126+
"tox >= 4.15.1",
127+
"tox-rye @ git+https://github.com/bluss/tox-rye"
128+
]

requirements-dev.lock

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
# generated by rye
2+
# use `rye lock` or `rye sync` to update this lockfile
3+
#
4+
# last locked with the following flags:
5+
# pre: false
6+
# features: []
7+
# all-features: true
8+
# with-sources: false
9+
# generate-hashes: false
10+
11+
-e file:.
12+
annotated-types==0.7.0
13+
# via pydantic
14+
astunparse==1.6.3
15+
# via griffe
16+
babel==2.15.0
17+
# via mkdocs-material
18+
bracex==2.4
19+
# via wcmatch
20+
cachetools==5.3.3
21+
# via tox
22+
certifi==2024.6.2
23+
# via requests
24+
cfgv==3.4.0
25+
# via pre-commit
26+
chardet==5.2.0
27+
# via tox
28+
charset-normalizer==3.3.2
29+
# via requests
30+
click==8.1.7
31+
# via mkdocs
32+
# via mkdocstrings
33+
colorama==0.4.6
34+
# via griffe
35+
# via mkdocs-material
36+
# via tox
37+
coverage==7.5.4
38+
# via pytest-cov
39+
distlib==0.3.8
40+
# via virtualenv
41+
eval-type-backport==0.2.0
42+
# via simyan
43+
exceptiongroup==1.2.1
44+
# via pytest
45+
filelock==3.15.4
46+
# via tox
47+
# via virtualenv
48+
ghp-import==2.1.0
49+
# via mkdocs
50+
griffe==0.47.0
51+
# via mkdocstrings-python
52+
identify==2.5.36
53+
# via pre-commit
54+
idna==3.7
55+
# via requests
56+
importlib-metadata==8.0.0
57+
# via markdown
58+
# via mkdocs
59+
# via mkdocs-get-deps
60+
# via mkdocstrings
61+
iniconfig==2.0.0
62+
# via pytest
63+
jinja2==3.1.4
64+
# via mkdocs
65+
# via mkdocs-material
66+
# via mkdocstrings
67+
markdown==3.6
68+
# via mkdocs
69+
# via mkdocs-autorefs
70+
# via mkdocs-material
71+
# via mkdocstrings
72+
# via pymdown-extensions
73+
markupsafe==2.1.5
74+
# via jinja2
75+
# via mkdocs
76+
# via mkdocs-autorefs
77+
# via mkdocstrings
78+
mergedeep==1.3.4
79+
# via mkdocs
80+
# via mkdocs-get-deps
81+
mkdocs==1.6.0
82+
# via mkdocs-autorefs
83+
# via mkdocs-include-markdown-plugin
84+
# via mkdocs-material
85+
# via mkdocstrings
86+
# via simyan
87+
mkdocs-autorefs==1.0.1
88+
# via mkdocstrings
89+
mkdocs-get-deps==0.2.0
90+
# via mkdocs
91+
mkdocs-include-markdown-plugin==6.2.1
92+
# via simyan
93+
mkdocs-material==9.5.27
94+
# via simyan
95+
mkdocs-material-extensions==1.3.1
96+
# via mkdocs-material
97+
mkdocstrings==0.25.1
98+
# via mkdocstrings-python
99+
# via simyan
100+
mkdocstrings-python==1.10.5
101+
# via mkdocstrings
102+
nodeenv==1.9.1
103+
# via pre-commit
104+
packaging==24.1
105+
# via mkdocs
106+
# via pyproject-api
107+
# via pytest
108+
# via tox
109+
paginate==0.5.6
110+
# via mkdocs-material
111+
pathspec==0.12.1
112+
# via mkdocs
113+
platformdirs==4.2.2
114+
# via mkdocs-get-deps
115+
# via mkdocstrings
116+
# via tox
117+
# via virtualenv
118+
pluggy==1.5.0
119+
# via pytest
120+
# via tox
121+
pre-commit==3.5.0
122+
pydantic==2.8.0
123+
# via simyan
124+
pydantic-core==2.20.0
125+
# via pydantic
126+
pygments==2.18.0
127+
# via mkdocs-material
128+
pymdown-extensions==10.8.1
129+
# via mkdocs-material
130+
# via mkdocstrings
131+
pyproject-api==1.7.1
132+
# via tox
133+
pytest==8.2.2
134+
# via pytest-cov
135+
# via simyan
136+
pytest-cov==5.0.0
137+
# via simyan
138+
python-dateutil==2.9.0.post0
139+
# via ghp-import
140+
pytz==2024.1
141+
# via babel
142+
pyyaml==6.0.1
143+
# via mkdocs
144+
# via mkdocs-get-deps
145+
# via pre-commit
146+
# via pymdown-extensions
147+
# via pyyaml-env-tag
148+
pyyaml-env-tag==0.1
149+
# via mkdocs
150+
ratelimit==2.2.1
151+
# via simyan
152+
regex==2024.5.15
153+
# via mkdocs-material
154+
requests==2.32.3
155+
# via mkdocs-material
156+
# via simyan
157+
six==1.16.0
158+
# via astunparse
159+
# via python-dateutil
160+
tomli==2.0.1
161+
# via coverage
162+
# via pyproject-api
163+
# via pytest
164+
# via tox
165+
tox==4.15.1
166+
tox-rye @ git+https://github.com/bluss/tox-rye@d1348e996d642e947cd0fb158ecdbcfe0f386af3
167+
typing-extensions==4.12.2
168+
# via annotated-types
169+
# via mkdocstrings
170+
# via pydantic
171+
# via pydantic-core
172+
urllib3==2.2.2
173+
# via requests
174+
virtualenv==20.26.3
175+
# via pre-commit
176+
# via tox
177+
# via virtualenv-rye-discovery
178+
virtualenv-rye-discovery @ git+https://github.com/bluss/virtualenv-rye-discovery@4958f87a8fef73a1dddbb02fa3a98c93bab48377
179+
# via tox-rye
180+
watchdog==4.0.1
181+
# via mkdocs
182+
wcmatch==8.5.2
183+
# via mkdocs-include-markdown-plugin
184+
wheel==0.43.0
185+
# via astunparse
186+
zipp==3.19.2
187+
# via importlib-metadata

requirements.lock

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# generated by rye
2+
# use `rye lock` or `rye sync` to update this lockfile
3+
#
4+
# last locked with the following flags:
5+
# pre: false
6+
# features: []
7+
# all-features: false
8+
# with-sources: false
9+
# generate-hashes: false
10+
11+
-e file:.
12+
annotated-types==0.7.0
13+
# via pydantic
14+
certifi==2024.6.2
15+
# via requests
16+
charset-normalizer==3.3.2
17+
# via requests
18+
eval-type-backport==0.2.0
19+
# via simyan
20+
idna==3.7
21+
# via requests
22+
pydantic==2.8.0
23+
# via simyan
24+
pydantic-core==2.20.0
25+
# via pydantic
26+
ratelimit==2.2.1
27+
# via simyan
28+
requests==2.32.3
29+
# via simyan
30+
typing-extensions==4.12.2
31+
# via annotated-types
32+
# via pydantic
33+
# via pydantic-core
34+
urllib3==2.2.2
35+
# via requests

0 commit comments

Comments
 (0)