djcheckup 0.2.3__tar.gz → 0.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {djcheckup-0.2.3 → djcheckup-0.2.4}/PKG-INFO +1 -1
- {djcheckup-0.2.3 → djcheckup-0.2.4}/pyproject.toml +10 -2
- {djcheckup-0.2.3 → djcheckup-0.2.4}/src/djcheckup/checks.py +10 -2
- {djcheckup-0.2.3 → djcheckup-0.2.4}/LICENSE +0 -0
- {djcheckup-0.2.3 → djcheckup-0.2.4}/README.md +0 -0
- {djcheckup-0.2.3 → djcheckup-0.2.4}/src/djcheckup/__init__.py +0 -0
- {djcheckup-0.2.3 → djcheckup-0.2.4}/src/djcheckup/check_defs.py +0 -0
- {djcheckup-0.2.3 → djcheckup-0.2.4}/src/djcheckup/cli.py +0 -0
- {djcheckup-0.2.3 → djcheckup-0.2.4}/src/djcheckup/outputs.py +0 -0
- {djcheckup-0.2.3 → djcheckup-0.2.4}/src/djcheckup/run.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "djcheckup"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.4"
|
|
4
4
|
description = "DJ Checkup is a security scanner for Django sites."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [{ name = "Stuart Maxwell", email = "stuart@amanzi.nz" }]
|
|
@@ -26,6 +26,9 @@ target-version = "py313"
|
|
|
26
26
|
[tool.ruff.lint]
|
|
27
27
|
select = ["ALL"]
|
|
28
28
|
|
|
29
|
+
[tool.pyrefly]
|
|
30
|
+
project-includes = ["src/djcheckup/**"]
|
|
31
|
+
|
|
29
32
|
[tool.ruff.lint.extend-per-file-ignores]
|
|
30
33
|
"tests/**" = ["S101", "ANN201", "ANN001", "ARG001"]
|
|
31
34
|
|
|
@@ -33,7 +36,12 @@ select = ["ALL"]
|
|
|
33
36
|
convention = "google" # Accepts: "google", "numpy", or "pep257".
|
|
34
37
|
|
|
35
38
|
[dependency-groups]
|
|
36
|
-
dev = [
|
|
39
|
+
dev = [
|
|
40
|
+
"nox>=2025.5.1",
|
|
41
|
+
"pyrefly>=0.34.0",
|
|
42
|
+
"pytest>=8.4.2",
|
|
43
|
+
"pytest-cov>=7.0.0",
|
|
44
|
+
]
|
|
37
45
|
|
|
38
46
|
[tool.pytest.ini_options]
|
|
39
47
|
pythonpath = "."
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""Check types."""
|
|
2
2
|
|
|
3
3
|
from abc import ABC, abstractmethod
|
|
4
|
+
from collections.abc import Sequence
|
|
4
5
|
from dataclasses import dataclass
|
|
5
6
|
from enum import Enum
|
|
6
7
|
from http.cookiejar import CookieJar
|
|
@@ -389,8 +390,15 @@ class SiteChecker:
|
|
|
389
390
|
message=success_message,
|
|
390
391
|
)
|
|
391
392
|
|
|
392
|
-
def run_checks(self, checks:
|
|
393
|
-
"""Run all checks.
|
|
393
|
+
def run_checks(self, checks: Sequence[_BaseCheck]) -> SiteCheckResult:
|
|
394
|
+
"""Run all checks.
|
|
395
|
+
|
|
396
|
+
Args:
|
|
397
|
+
checks: Accepts any sequence (list, tuple, etc.) of check instances inheriting from _BaseCheck.
|
|
398
|
+
|
|
399
|
+
Returns:
|
|
400
|
+
A SiteCheckResult object containing the results of all checks.
|
|
401
|
+
"""
|
|
394
402
|
# First, run the first check
|
|
395
403
|
first_check = self.run_first_check()
|
|
396
404
|
site_check_results = SiteCheckResult(url=str(self.url), check_results=[first_check])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|