Skip to content

Commit e0b269a

Browse files
authored
Merge pull request #21 from kurtmckee/updates
Add more pre-commit hooks, and run `tox run -m update`
2 parents b661e8e + 5d0d96c commit e0b269a

File tree

6 files changed

+26
-16
lines changed

6 files changed

+26
-16
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,17 @@ repos:
2525
- id: "trailing-whitespace"
2626

2727
- repo: "https://github.com/asottile/pyupgrade"
28-
rev: "v3.18.0"
28+
rev: "v3.19.0"
2929
hooks:
3030
- id: "pyupgrade"
3131
name: "Enforce Python 3.9+ idioms"
3232
args: ["--py39-plus"]
3333

34+
- repo: "https://github.com/sirosen/slyp"
35+
rev: "0.8.1"
36+
hooks:
37+
- id: "slyp"
38+
3439
- repo: "https://github.com/psf/black-pre-commit-mirror"
3540
rev: "24.10.0"
3641
hooks:
@@ -59,6 +64,11 @@ repos:
5964
- id: "check-dependabot"
6065
- id: "check-readthedocs"
6166

67+
- repo: "https://github.com/rhysd/actionlint"
68+
rev: "v1.7.3"
69+
hooks:
70+
- id: "actionlint"
71+
6272
- repo: "https://github.com/kurtmckee/pre-commit-hooks"
6373
rev: "v0.1.1"
6474
hooks:

pyproject.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ strict = true
5959
sqlite_cache = true
6060

6161

62+
# pytest
63+
# ------
64+
65+
[tool.pytest.ini_options]
66+
addopts = "--color=yes"
67+
filterwarnings = [
68+
"error",
69+
]
70+
71+
6272
# scriv
6373
# -----
6474

@@ -81,13 +91,3 @@ fragment_directory = "changelog.d"
8191
insert_marker = "scriv-insert-here"
8292
main_branches = ["main", "releases"]
8393
new_fragment_template = "file: fragment-template.rst.txt"
84-
85-
86-
# pytest
87-
# ------
88-
89-
[tool.pytest.ini_options]
90-
addopts = "--color=yes"
91-
filterwarnings = [
92-
"error",
93-
]

requirements/docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ idna==3.10 ; python_version >= "3.9"
88
imagesize==1.4.1 ; python_version >= "3.9"
99
importlib-metadata==8.5.0 ; python_version < "3.10" and python_version >= "3.9"
1010
jinja2==3.1.4 ; python_version >= "3.9"
11-
markupsafe==3.0.1 ; python_version >= "3.9"
11+
markupsafe==3.0.2 ; python_version >= "3.9"
1212
packaging==24.1 ; python_version >= "3.9"
1313
pygments==2.18.0 ; python_version >= "3.9"
1414
requests==2.32.3 ; python_version >= "3.9"

requirements/mypy/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
mypy-extensions==1.0.0 ; python_version >= "3.9"
2-
mypy==1.12.0 ; python_version >= "3.9"
2+
mypy==1.13.0 ; python_version >= "3.9"
33
tomli==2.0.2 ; python_version < "3.11" and python_version >= "3.9"
44
typing-extensions==4.12.2 ; python_version >= "3.9"

requirements/test/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
colorama==0.4.6 ; python_version >= "3.9" and sys_platform == "win32"
2-
coverage[toml]==7.6.3 ; python_version >= "3.9"
2+
coverage[toml]==7.6.4 ; python_version >= "3.9"
33
exceptiongroup==1.2.2 ; python_version < "3.11" and python_version >= "3.9"
44
importlib-metadata==8.5.0 ; python_version < "3.10" and python_version >= "3.9"
55
iniconfig==2.0.0 ; python_version >= "3.9"
66
packaging==24.1 ; python_version >= "3.9"
77
pluggy==1.5.0 ; python_version >= "3.9"
8-
pytest-randomly==3.15.0 ; python_version >= "3.9"
8+
pytest-randomly==3.16.0 ; python_version >= "3.9"
99
pytest==8.3.3 ; python_version >= "3.9"
1010
tomli==2.0.2 ; python_full_version <= "3.11.0a6" and python_version >= "3.9"
1111
zipp==3.20.2 ; python_version < "3.10" and python_version >= "3.9"

src/sqliteimport/importer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def load(database: pathlib.Path | str | sqlite3.Connection) -> None:
7878

7979

8080
class SqliteDistribution(importlib.metadata.Distribution):
81-
def __init__(self, name: str, connection: sqlite3.Connection):
81+
def __init__(self, name: str, connection: sqlite3.Connection) -> None:
8282
self.__name = name
8383
self.__connection = connection
8484
self.__accessor = Accessor(connection)

0 commit comments

Comments
 (0)