habit-hooks-python 1.3.0__tar.gz → 1.3.1__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.
Files changed (18) hide show
  1. habit_hooks_python-1.3.1/PKG-INFO +53 -0
  2. habit_hooks_python-1.3.1/README.md +29 -0
  3. habit_hooks_python-1.3.1/pyproject.toml +51 -0
  4. habit_hooks_python-1.3.0/PKG-INFO +0 -5
  5. habit_hooks_python-1.3.0/pyproject.toml +0 -16
  6. {habit_hooks_python-1.3.0 → habit_hooks_python-1.3.1}/.gitignore +0 -0
  7. {habit_hooks_python-1.3.0 → habit_hooks_python-1.3.1}/docs/python-plugin.spec.md +0 -0
  8. {habit_hooks_python-1.3.0 → habit_hooks_python-1.3.1}/src/habit_hooks_python/__init__.py +0 -0
  9. {habit_hooks_python-1.3.0 → habit_hooks_python-1.3.1}/src/habit_hooks_python/config.toml +0 -0
  10. {habit_hooks_python-1.3.0 → habit_hooks_python-1.3.1}/src/habit_hooks_python/guides/high-complexity.md +0 -0
  11. {habit_hooks_python-1.3.0 → habit_hooks_python-1.3.1}/src/habit_hooks_python/guides/swallowed-exception.md +0 -0
  12. {habit_hooks_python-1.3.0 → habit_hooks_python-1.3.1}/src/habit_hooks_python/ruff.toml +0 -0
  13. {habit_hooks_python-1.3.0 → habit_hooks_python-1.3.1}/src/habit_hooks_python/sensors/deptry.toml +0 -0
  14. {habit_hooks_python-1.3.0 → habit_hooks_python-1.3.1}/src/habit_hooks_python/sensors/deptry_sensor.py +0 -0
  15. {habit_hooks_python-1.3.0 → habit_hooks_python-1.3.1}/src/habit_hooks_python/sensors/ruff.toml +0 -0
  16. {habit_hooks_python-1.3.0 → habit_hooks_python-1.3.1}/tests/test_a_deptry_nobody_installed_is_named.py +0 -0
  17. {habit_hooks_python-1.3.0 → habit_hooks_python-1.3.1}/tests/test_a_project_declaring_no_dependencies_is_clean.py +0 -0
  18. {habit_hooks_python-1.3.0 → habit_hooks_python-1.3.1}/tests/test_the_python_files_leave_installed_packages_alone.py +0 -0
@@ -0,0 +1,53 @@
1
+ Metadata-Version: 2.5
2
+ Name: habit-hooks-python
3
+ Version: 1.3.1
4
+ Summary: The Python Habit Hooks plugin
5
+ Project-URL: Homepage, https://habit-hooks.com
6
+ Project-URL: Repository, https://github.com/habit-hooks/habit-hooks
7
+ Project-URL: Issues, https://github.com/habit-hooks/habit-hooks/issues
8
+ Project-URL: Changelog, https://github.com/habit-hooks/habit-hooks/blob/main/CHANGELOG.md
9
+ License-Expression: MIT
10
+ Keywords: ai-coding-agents,ci,code-quality,code-review,code-smells,coding-agents,developer-tools,linter,python,refactoring,static-analysis,technical-debt
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Topic :: Software Development :: Quality Assurance
20
+ Classifier: Topic :: Software Development :: Testing
21
+ Classifier: Topic :: Utilities
22
+ Requires-Python: >=3.11
23
+ Description-Content-Type: text/markdown
24
+
25
+ # habit-hooks-python
26
+
27
+ The Python Habit Hooks plugin: wraps [`ruff`](https://docs.astral.sh/ruff/) for
28
+ structural smells (complexity, too many parameters, swallowed exceptions, …)
29
+ and [`deptry`](https://github.com/fpgmaas/deptry) for dependency issues.
30
+
31
+ ## Install
32
+
33
+ ```sh
34
+ pip install "habit-hooks[python]"
35
+ ```
36
+
37
+ ## Enable
38
+
39
+ ```toml
40
+ # .habit-hooks/config.toml
41
+ plugins = ["python", "generic"]
42
+ ```
43
+
44
+ Installing a plugin does not switch it on — it has to be named in
45
+ `plugins` before habit-hooks runs it.
46
+
47
+ ## Detectors
48
+
49
+ - [`ruff`](https://docs.astral.sh/ruff/), [`deptry`](https://github.com/fpgmaas/deptry) —
50
+ `pip install ruff deptry`
51
+ - `jq` — from your system package manager (e.g. `brew install jq`)
52
+
53
+ Part of [habit-hooks](https://github.com/habit-hooks/habit-hooks).
@@ -0,0 +1,29 @@
1
+ # habit-hooks-python
2
+
3
+ The Python Habit Hooks plugin: wraps [`ruff`](https://docs.astral.sh/ruff/) for
4
+ structural smells (complexity, too many parameters, swallowed exceptions, …)
5
+ and [`deptry`](https://github.com/fpgmaas/deptry) for dependency issues.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ pip install "habit-hooks[python]"
11
+ ```
12
+
13
+ ## Enable
14
+
15
+ ```toml
16
+ # .habit-hooks/config.toml
17
+ plugins = ["python", "generic"]
18
+ ```
19
+
20
+ Installing a plugin does not switch it on — it has to be named in
21
+ `plugins` before habit-hooks runs it.
22
+
23
+ ## Detectors
24
+
25
+ - [`ruff`](https://docs.astral.sh/ruff/), [`deptry`](https://github.com/fpgmaas/deptry) —
26
+ `pip install ruff deptry`
27
+ - `jq` — from your system package manager (e.g. `brew install jq`)
28
+
29
+ Part of [habit-hooks](https://github.com/habit-hooks/habit-hooks).
@@ -0,0 +1,51 @@
1
+ [project]
2
+ name = "habit-hooks-python"
3
+ version = "1.3.1"
4
+ description = "The Python Habit Hooks plugin"
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ keywords = [
8
+ "code-quality",
9
+ "code-smells",
10
+ "static-analysis",
11
+ "linter",
12
+ "ci",
13
+ "code-review",
14
+ "technical-debt",
15
+ "refactoring",
16
+ "ai-coding-agents",
17
+ "coding-agents",
18
+ "developer-tools",
19
+ "python",
20
+ ]
21
+ classifiers = [
22
+ "Development Status :: 4 - Beta",
23
+ "Environment :: Console",
24
+ "Intended Audience :: Developers",
25
+ "Operating System :: OS Independent",
26
+ "Programming Language :: Python :: 3",
27
+ "Programming Language :: Python :: 3.11",
28
+ "Programming Language :: Python :: 3.12",
29
+ "Programming Language :: Python :: 3.13",
30
+ "Topic :: Software Development :: Quality Assurance",
31
+ "Topic :: Software Development :: Testing",
32
+ "Topic :: Utilities",
33
+ ]
34
+ requires-python = ">=3.11"
35
+ dependencies = []
36
+
37
+ [project.entry-points."habit_hooks.plugins"]
38
+ python = "habit_hooks_python"
39
+
40
+ [project.urls]
41
+ Homepage = "https://habit-hooks.com"
42
+ Repository = "https://github.com/habit-hooks/habit-hooks"
43
+ Issues = "https://github.com/habit-hooks/habit-hooks/issues"
44
+ Changelog = "https://github.com/habit-hooks/habit-hooks/blob/main/CHANGELOG.md"
45
+
46
+ [build-system]
47
+ requires = ["hatchling"]
48
+ build-backend = "hatchling.build"
49
+
50
+ [tool.hatch.build.targets.wheel]
51
+ packages = ["src/habit_hooks_python"]
@@ -1,5 +0,0 @@
1
- Metadata-Version: 2.5
2
- Name: habit-hooks-python
3
- Version: 1.3.0
4
- Summary: The Python Habit Hooks plugin
5
- Requires-Python: >=3.11
@@ -1,16 +0,0 @@
1
- [project]
2
- name = "habit-hooks-python"
3
- version = "1.3.0"
4
- description = "The Python Habit Hooks plugin"
5
- requires-python = ">=3.11"
6
- dependencies = []
7
-
8
- [project.entry-points."habit_hooks.plugins"]
9
- python = "habit_hooks_python"
10
-
11
- [build-system]
12
- requires = ["hatchling"]
13
- build-backend = "hatchling.build"
14
-
15
- [tool.hatch.build.targets.wheel]
16
- packages = ["src/habit_hooks_python"]