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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: djcheckup
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: DJ Checkup is a security scanner for Django sites.
5
5
  Author: Stuart Maxwell
6
6
  Author-email: Stuart Maxwell <stuart@amanzi.nz>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "djcheckup"
3
- version = "0.2.3"
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 = ["nox>=2025.5.1", "pytest>=8.4.2", "pytest-cov>=7.0.0"]
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: list[_BaseCheck]) -> SiteCheckResult:
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