sweepito 0.1.0__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 (92) hide show
  1. sweepito-0.1.0/.editorconfig +15 -0
  2. sweepito-0.1.0/.gitattributes +4 -0
  3. sweepito-0.1.0/.github/CODEOWNERS +6 -0
  4. sweepito-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +50 -0
  5. sweepito-0.1.0/.github/ISSUE_TEMPLATE/config.yml +5 -0
  6. sweepito-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +18 -0
  7. sweepito-0.1.0/.github/ISSUE_TEMPLATE/new_technology_or_rule.yml +42 -0
  8. sweepito-0.1.0/.github/dependabot.yml +17 -0
  9. sweepito-0.1.0/.github/pull_request_template.md +17 -0
  10. sweepito-0.1.0/.github/workflows/lint.yml +16 -0
  11. sweepito-0.1.0/.github/workflows/release.yml +42 -0
  12. sweepito-0.1.0/.github/workflows/tests.yml +31 -0
  13. sweepito-0.1.0/.gitignore +224 -0
  14. sweepito-0.1.0/.pre-commit-config.yaml +7 -0
  15. sweepito-0.1.0/.pre-commit-hooks.yaml +17 -0
  16. sweepito-0.1.0/.python-version +1 -0
  17. sweepito-0.1.0/CHANGELOG.md +27 -0
  18. sweepito-0.1.0/CODE_OF_CONDUCT.md +113 -0
  19. sweepito-0.1.0/CONTRIBUTING.md +52 -0
  20. sweepito-0.1.0/LICENSE +21 -0
  21. sweepito-0.1.0/PKG-INFO +313 -0
  22. sweepito-0.1.0/README.md +270 -0
  23. sweepito-0.1.0/SECURITY.md +31 -0
  24. sweepito-0.1.0/docs/architecture.md +35 -0
  25. sweepito-0.1.0/docs/cli.md +762 -0
  26. sweepito-0.1.0/docs/configuration.md +80 -0
  27. sweepito-0.1.0/docs/development.md +38 -0
  28. sweepito-0.1.0/docs/profiles.md +721 -0
  29. sweepito-0.1.0/pyproject.toml +67 -0
  30. sweepito-0.1.0/scripts/generate_profiles_doc.py +407 -0
  31. sweepito-0.1.0/src/sweepito/__init__.py +3 -0
  32. sweepito-0.1.0/src/sweepito/__main__.py +3 -0
  33. sweepito-0.1.0/src/sweepito/api.py +72 -0
  34. sweepito-0.1.0/src/sweepito/cli.py +551 -0
  35. sweepito-0.1.0/src/sweepito/config.py +268 -0
  36. sweepito-0.1.0/src/sweepito/doctor.py +102 -0
  37. sweepito-0.1.0/src/sweepito/errors.py +30 -0
  38. sweepito-0.1.0/src/sweepito/executor.py +108 -0
  39. sweepito-0.1.0/src/sweepito/git.py +127 -0
  40. sweepito-0.1.0/src/sweepito/hooks.py +82 -0
  41. sweepito-0.1.0/src/sweepito/models.py +147 -0
  42. sweepito-0.1.0/src/sweepito/planner.py +335 -0
  43. sweepito-0.1.0/src/sweepito/profiles/__init__.py +1 -0
  44. sweepito-0.1.0/src/sweepito/profiles/common.toml +33 -0
  45. sweepito-0.1.0/src/sweepito/profiles/cpp.toml +43 -0
  46. sweepito-0.1.0/src/sweepito/profiles/dart.toml +21 -0
  47. sweepito-0.1.0/src/sweepito/profiles/dotnet.toml +37 -0
  48. sweepito-0.1.0/src/sweepito/profiles/elixir.toml +39 -0
  49. sweepito-0.1.0/src/sweepito/profiles/go.toml +21 -0
  50. sweepito-0.1.0/src/sweepito/profiles/jupyter.toml +38 -0
  51. sweepito-0.1.0/src/sweepito/profiles/jvm.toml +38 -0
  52. sweepito-0.1.0/src/sweepito/profiles/node-pm.toml +17 -0
  53. sweepito-0.1.0/src/sweepito/profiles/node.toml +98 -0
  54. sweepito-0.1.0/src/sweepito/profiles/php.toml +54 -0
  55. sweepito-0.1.0/src/sweepito/profiles/python.toml +82 -0
  56. sweepito-0.1.0/src/sweepito/profiles/r.toml +42 -0
  57. sweepito-0.1.0/src/sweepito/profiles/ruby.toml +45 -0
  58. sweepito-0.1.0/src/sweepito/profiles/rust.toml +15 -0
  59. sweepito-0.1.0/src/sweepito/profiles/swift.toml +31 -0
  60. sweepito-0.1.0/src/sweepito/profiles/terraform.toml +31 -0
  61. sweepito-0.1.0/src/sweepito/registry.py +77 -0
  62. sweepito-0.1.0/src/sweepito/ui.py +267 -0
  63. sweepito-0.1.0/tests/__init__.py +0 -0
  64. sweepito-0.1.0/tests/conftest.py +53 -0
  65. sweepito-0.1.0/tests/integration/__init__.py +0 -0
  66. sweepito-0.1.0/tests/integration/support.py +121 -0
  67. sweepito-0.1.0/tests/integration/test_common.py +23 -0
  68. sweepito-0.1.0/tests/integration/test_cpp.py +29 -0
  69. sweepito-0.1.0/tests/integration/test_custom.py +446 -0
  70. sweepito-0.1.0/tests/integration/test_dart.py +25 -0
  71. sweepito-0.1.0/tests/integration/test_dotnet.py +28 -0
  72. sweepito-0.1.0/tests/integration/test_elixir.py +24 -0
  73. sweepito-0.1.0/tests/integration/test_go.py +21 -0
  74. sweepito-0.1.0/tests/integration/test_jupyter.py +34 -0
  75. sweepito-0.1.0/tests/integration/test_jvm.py +35 -0
  76. sweepito-0.1.0/tests/integration/test_node.py +57 -0
  77. sweepito-0.1.0/tests/integration/test_node_pm.py +23 -0
  78. sweepito-0.1.0/tests/integration/test_php.py +35 -0
  79. sweepito-0.1.0/tests/integration/test_python.py +31 -0
  80. sweepito-0.1.0/tests/integration/test_r.py +33 -0
  81. sweepito-0.1.0/tests/integration/test_registry_coverage.py +48 -0
  82. sweepito-0.1.0/tests/integration/test_ruby.py +31 -0
  83. sweepito-0.1.0/tests/integration/test_rust.py +20 -0
  84. sweepito-0.1.0/tests/integration/test_swift.py +27 -0
  85. sweepito-0.1.0/tests/integration/test_terraform.py +27 -0
  86. sweepito-0.1.0/tests/test_clean.py +249 -0
  87. sweepito-0.1.0/tests/test_config.py +253 -0
  88. sweepito-0.1.0/tests/test_docs.py +90 -0
  89. sweepito-0.1.0/tests/test_doctor.py +62 -0
  90. sweepito-0.1.0/tests/test_links.py +143 -0
  91. sweepito-0.1.0/tests/test_output.py +149 -0
  92. sweepito-0.1.0/uv.lock +338 -0
@@ -0,0 +1,15 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ end_of_line = lf
6
+ insert_final_newline = true
7
+ trim_trailing_whitespace = true
8
+ indent_style = space
9
+ indent_size = 4
10
+
11
+ [*.{toml,yml,yaml,json,md}]
12
+ indent_size = 2
13
+
14
+ [*.md]
15
+ trim_trailing_whitespace = false
@@ -0,0 +1,4 @@
1
+ # Normalise line endings. Hook scripts and shell snippets must keep LF on Windows.
2
+ * text=auto eol=lf
3
+ *.png binary
4
+ *.ico binary
@@ -0,0 +1,6 @@
1
+ # Safety-critical code and rule data need an owner's review.
2
+ * @coldsofttech
3
+ /src/sweepito/planner.py @coldsofttech
4
+ /src/sweepito/executor.py @coldsofttech
5
+ /src/sweepito/git.py @coldsofttech
6
+ /src/sweepito/profiles/ @coldsofttech
@@ -0,0 +1,50 @@
1
+ name: Bug report
2
+ description: Something did not behave as expected
3
+ labels: [bug]
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: |
8
+ If Sweepito deleted something it should not have (a tracked file, or anything
9
+ outside the project), please use **private vulnerability reporting** from the
10
+ Security tab instead of this form.
11
+ - type: textarea
12
+ id: what-happened
13
+ attributes:
14
+ label: What happened?
15
+ description: What did you expect, and what did you see instead?
16
+ validations:
17
+ required: true
18
+ - type: textarea
19
+ id: reproduce
20
+ attributes:
21
+ label: Steps to reproduce
22
+ description: The command, plus `sweepito scan --json -v` output if relevant.
23
+ render: shell
24
+ validations:
25
+ required: true
26
+ - type: textarea
27
+ id: config
28
+ attributes:
29
+ label: Configuration
30
+ description: Contents of `sweepito.toml` (or `[tool.sweepito]`), if you have one.
31
+ render: toml
32
+ - type: input
33
+ id: version
34
+ attributes:
35
+ label: Sweepito version
36
+ description: Output of `sweepito --version`
37
+ validations:
38
+ required: true
39
+ - type: dropdown
40
+ id: os
41
+ attributes:
42
+ label: Operating system
43
+ options: [Windows, macOS, Linux]
44
+ validations:
45
+ required: true
46
+ - type: input
47
+ id: python
48
+ attributes:
49
+ label: Python and Git versions
50
+ placeholder: "Python 3.12.4, git 2.45.0"
@@ -0,0 +1,5 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: Report a security issue privately
4
+ url: https://github.com/coldsofttech/Sweepito/security/advisories/new
5
+ about: Anything that deletes tracked files, files outside the project, or follows symlinks.
@@ -0,0 +1,18 @@
1
+ name: Feature request
2
+ description: Suggest an improvement to the tool itself
3
+ labels: [enhancement]
4
+ body:
5
+ - type: textarea
6
+ id: problem
7
+ attributes:
8
+ label: What problem are you trying to solve?
9
+ validations:
10
+ required: true
11
+ - type: textarea
12
+ id: proposal
13
+ attributes:
14
+ label: What would you like to see?
15
+ - type: textarea
16
+ id: alternatives
17
+ attributes:
18
+ label: Alternatives you considered
@@ -0,0 +1,42 @@
1
+ name: New technology or rule
2
+ description: Propose a new profile or a new cleanup rule
3
+ labels: [enhancement, profile]
4
+ body:
5
+ - type: input
6
+ id: technology
7
+ attributes:
8
+ label: Technology or framework
9
+ placeholder: "e.g. Zig, Deno, Unity"
10
+ validations:
11
+ required: true
12
+ - type: textarea
13
+ id: targets
14
+ attributes:
15
+ label: Folders or files to clean
16
+ description: Exact names, and where they are generated.
17
+ validations:
18
+ required: true
19
+ - type: textarea
20
+ id: markers
21
+ attributes:
22
+ label: How can a project be recognised?
23
+ description: Marker files that identify it, e.g. `build.zig`.
24
+ validations:
25
+ required: true
26
+ - type: dropdown
27
+ id: risk
28
+ attributes:
29
+ label: Suggested risk level
30
+ options:
31
+ - safe (regenerated automatically, no user data)
32
+ - configurable (costly to rebuild or mildly valuable)
33
+ - high-impact (dependencies or hard to recreate)
34
+ validations:
35
+ required: true
36
+ - type: textarea
37
+ id: regenerate
38
+ attributes:
39
+ label: How is it regenerated, and what would be lost?
40
+ description: This decides the risk level.
41
+ validations:
42
+ required: true
@@ -0,0 +1,17 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "uv"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ groups:
8
+ python-dependencies:
9
+ patterns: ["*"]
10
+
11
+ - package-ecosystem: "github-actions"
12
+ directory: "/"
13
+ schedule:
14
+ interval: "weekly"
15
+ groups:
16
+ github-actions:
17
+ patterns: ["*"]
@@ -0,0 +1,17 @@
1
+ ## What does this change?
2
+
3
+ <!-- A short description and the motivation. Link the issue if there is one. -->
4
+
5
+ ## Safety check
6
+
7
+ - [ ] Only git-ignored, untracked paths inside the project root can be removed
8
+ - [ ] No new rule targets application data, state files, secrets or IDE settings
9
+ - [ ] Generic folder names use a `requires` marker and an anchored pattern
10
+
11
+ ## Checklist
12
+
13
+ - [ ] Tests added or updated (new rules: `tests/integration/test_<profile>.py`)
14
+ - [ ] `uv run pytest -n auto`, `ruff check .` and `ruff format --check .` pass
15
+ - [ ] `CHANGELOG.md` updated under `[Unreleased]`
16
+ - [ ] Docs updated (`docs/profiles.md` is regenerated when profiles change)
17
+ - [ ] Works on Python 3.11
@@ -0,0 +1,16 @@
1
+ name: lint
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ ruff:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v7
13
+ - uses: astral-sh/setup-uv@v7
14
+ - run: uv sync
15
+ - run: uv run ruff check .
16
+ - run: uv run ruff format --check .
@@ -0,0 +1,42 @@
1
+ name: release
2
+
3
+ on:
4
+ push:
5
+ tags: ["v*.*.*"]
6
+
7
+ jobs:
8
+ verify:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v7
12
+ - uses: astral-sh/setup-uv@v7
13
+ - name: Check versions match the tag
14
+ run: |
15
+ tag="${GITHUB_REF_NAME#v}"
16
+ pyproject=$(grep -m1 '^version' pyproject.toml | cut -d'"' -f2)
17
+ package=$(grep -m1 '__version__' src/sweepito/__init__.py | cut -d'"' -f2)
18
+ test "$tag" = "$pyproject" && test "$tag" = "$package" \
19
+ || { echo "Version mismatch: tag=$tag pyproject=$pyproject package=$package"; exit 1; }
20
+ - run: uv sync
21
+ - run: uv run ruff check .
22
+ - run: |
23
+ git config --global user.email "ci@example.com"
24
+ git config --global user.name "ci"
25
+ uv run pytest -n auto
26
+
27
+ publish:
28
+ needs: verify
29
+ runs-on: ubuntu-latest
30
+ environment: pypi
31
+ permissions:
32
+ id-token: write
33
+ contents: write
34
+ steps:
35
+ - uses: actions/checkout@v7
36
+ - uses: astral-sh/setup-uv@v7
37
+ - run: uv build
38
+ - uses: pypa/gh-action-pypi-publish@release/v1
39
+ - name: Create GitHub release
40
+ env:
41
+ GH_TOKEN: ${{ github.token }}
42
+ run: gh release create "$GITHUB_REF_NAME" dist/* --generate-notes
@@ -0,0 +1,31 @@
1
+ name: tests
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ${{ matrix.os }}
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ include:
15
+ - { os: ubuntu-latest, python: "3.11" }
16
+ - { os: ubuntu-latest, python: "3.12" }
17
+ - { os: ubuntu-latest, python: "3.13" }
18
+ - { os: ubuntu-latest, python: "3.14" }
19
+ - { os: ubuntu-latest, python: "3.15" }
20
+ - { os: windows-latest, python: "3.11" }
21
+ - { os: macos-latest, python: "3.11" }
22
+ steps:
23
+ - uses: actions/checkout@v7
24
+ - uses: astral-sh/setup-uv@v7
25
+ - run: uv python install ${{ matrix.python }}
26
+ - run: uv sync --python ${{ matrix.python }}
27
+ - name: Configure git identity
28
+ run: |
29
+ git config --global user.email "ci@example.com"
30
+ git config --global user.name "ci"
31
+ - run: uv run --python ${{ matrix.python }} pytest -n auto
@@ -0,0 +1,224 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ *.lcov
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ # Pipfile.lock
97
+
98
+ # uv
99
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ # uv.lock
103
+
104
+ # poetry
105
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
106
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
107
+ # commonly ignored for libraries.
108
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109
+ # poetry.lock
110
+ # poetry.toml
111
+
112
+ # pdm
113
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
114
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
115
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
116
+ # pdm.lock
117
+ # pdm.toml
118
+ .pdm-python
119
+ .pdm-build/
120
+
121
+ # pixi
122
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
123
+ # pixi.lock
124
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
125
+ # in the .venv directory. It is recommended not to include this directory in version control.
126
+ .pixi/*
127
+ !.pixi/config.toml
128
+
129
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
130
+ __pypackages__/
131
+
132
+ # Celery stuff
133
+ celerybeat-schedule*
134
+ celerybeat.pid
135
+
136
+ # Redis
137
+ *.rdb
138
+ *.aof
139
+ *.pid
140
+
141
+ # RabbitMQ
142
+ mnesia/
143
+ rabbitmq/
144
+ rabbitmq-data/
145
+
146
+ # ActiveMQ
147
+ activemq-data/
148
+
149
+ # SageMath parsed files
150
+ *.sage.py
151
+
152
+ # Environments
153
+ .env
154
+ .envrc
155
+ .venv
156
+ env/
157
+ venv/
158
+ ENV/
159
+ env.bak/
160
+ venv.bak/
161
+
162
+ # Spyder project settings
163
+ .spyderproject
164
+ .spyproject
165
+
166
+ # Rope project settings
167
+ .ropeproject
168
+
169
+ # mkdocs/Zensical documentation
170
+ /site
171
+
172
+ # mypy
173
+ .mypy_cache/
174
+ .dmypy.json
175
+ dmypy.json
176
+
177
+ # Pyre type checker
178
+ .pyre/
179
+
180
+ # pytype static type analyzer
181
+ .pytype/
182
+
183
+ # Cython debug symbols
184
+ cython_debug/
185
+
186
+ # PyCharm
187
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
188
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
189
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
190
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
191
+ # .idea/
192
+
193
+ # Abstra
194
+ # Abstra is an AI-powered process automation framework.
195
+ # Ignore directories containing user credentials, local state, and settings.
196
+ # Learn more at https://abstra.io/docs
197
+ .abstra/
198
+
199
+ # Visual Studio Code
200
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore that
201
+ # can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
202
+ # and can be added to the global gitignore or merged into this file. However, if you prefer, you
203
+ # could uncomment the following to ignore the entire vscode folder
204
+ # .vscode/
205
+ # Temporary file for partial code execution
206
+ tempCodeRunnerFile.py
207
+
208
+ # Ruff stuff:
209
+ .ruff_cache/
210
+
211
+ # PyPI configuration file
212
+ .pypirc
213
+
214
+ # Marimo
215
+ marimo/_static/
216
+ marimo/_lsp/
217
+ __marimo__/
218
+
219
+ # Streamlit
220
+ .streamlit/secrets.toml
221
+
222
+ CLAUDE.md
223
+ .temp/
224
+ sweepito.toml
@@ -0,0 +1,7 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.6.9
4
+ hooks:
5
+ - id: ruff
6
+ args: [--fix]
7
+ - id: ruff-format
@@ -0,0 +1,17 @@
1
+ - id: sweepito-scan
2
+ name: sweepito scan
3
+ description: Report git-ignored caches and build artifacts that could be cleaned.
4
+ entry: sweepito scan --hook --quiet
5
+ language: python
6
+ stages: [pre-commit]
7
+ pass_filenames: false
8
+ always_run: true
9
+
10
+ - id: sweepito-clean
11
+ name: sweepito clean
12
+ description: Remove git-ignored caches and build artifacts after each commit.
13
+ entry: sweepito clean --hook --non-interactive --quiet
14
+ language: python
15
+ stages: [post-commit]
16
+ pass_filenames: false
17
+ always_run: true
@@ -0,0 +1 @@
1
+ 3.11
@@ -0,0 +1,27 @@
1
+ # Changelog
2
+
3
+ All notable changes are recorded here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
+
6
+ ## [Unreleased]
7
+
8
+ ## [0.1.0] - 2026-10-25
9
+
10
+ ### Added
11
+ - Initial package: `scan`, `clean`, `check`, `report`, `rules`, `profiles`, `config`, `init`, `hook` and
12
+ `doctor` commands.
13
+ - 17 built-in technology profiles (Python, Node.js and package managers, Rust, JVM, .NET, Go,
14
+ C/C++, PHP, Ruby, Dart, Swift, Elixir, R, Jupyter, Terraform, common).
15
+ - Safety model: only git-ignored, untracked paths inside the project root are removed;
16
+ marker files are required; symlinks and Windows junctions are never followed.
17
+ - `sweepito.toml` / `[tool.sweepito]` configuration with custom path rules and profiles.
18
+ - Native Git hook installer and `.pre-commit-hooks.yaml` (`sweepito-scan`, `sweepito-clean`).
19
+ - JSON output and exit codes (0, 1, 2, 3, 4, 130).
20
+ - Rich output for every command (tables, panels, colour) with `--no-color`; `--json` stays plain.
21
+ - `doctor` table with required and optional checks, modelled on BatchVault.
22
+ - Per-profile configuration examples in `docs/profiles.md`, generated by
23
+ `scripts/generate_profiles_doc.py` and validated by tests.
24
+ - Community files: code of conduct, contributing guide, security policy, issue and PR templates,
25
+ Dependabot configuration.
26
+ - Rules you write yourself run by default and show as `custom`; `--risk custom` runs only those.
27
+ - High-impact rules are chosen with `--enable` or `--risk high-impact`; no extra flag.
@@ -0,0 +1,113 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a
6
+ harassment-free experience for everyone, regardless of age, body size, visible or invisible
7
+ disability, ethnicity, sex characteristics, gender identity and expression, level of
8
+ experience, education, socio-economic status, nationality, personal appearance, race,
9
+ caste, color, religion, or sexual identity and orientation.
10
+
11
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse,
12
+ inclusive, and healthy community.
13
+
14
+ ## Our Standards
15
+
16
+ Examples of behavior that contributes to a positive environment for our community include:
17
+
18
+ * Demonstrating empathy and kindness toward other people
19
+ * Being respectful of differing opinions, viewpoints, and experiences
20
+ * Giving and gracefully accepting constructive feedback
21
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning
22
+ from the experience
23
+ * Focusing on what is best not just for us as individuals, but for the overall community
24
+
25
+ Examples of unacceptable behavior include:
26
+
27
+ * The use of sexualized language or imagery, and sexual attention or advances of any kind
28
+ * Trolling, insulting or derogatory comments, and personal or political attacks
29
+ * Public or private harassment
30
+ * Publishing others' private information, such as a physical or email address, without
31
+ their explicit permission
32
+ * Other conduct which could reasonably be considered inappropriate in a professional
33
+ setting
34
+
35
+ ## Enforcement Responsibilities
36
+
37
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable
38
+ behavior and will take appropriate and fair corrective action in response to any behavior
39
+ that they deem inappropriate, threatening, offensive, or harmful.
40
+
41
+ Community leaders have the right and responsibility to remove, edit, or reject comments,
42
+ commits, code, wiki edits, issues, and other contributions that are not aligned to this
43
+ Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
44
+
45
+ ## Scope
46
+
47
+ This Code of Conduct applies within all community spaces, and also applies when an
48
+ individual is officially representing the community in public spaces. Examples of
49
+ representing our community include using an official e-mail address, posting via an
50
+ official social media account, or acting as an appointed representative at an online or
51
+ offline event.
52
+
53
+ ## Enforcement
54
+
55
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the
56
+ community leaders responsible for enforcement by contacting the maintainer
57
+ [@coldsofttech](https://github.com/coldsofttech) through GitHub, using a private channel
58
+ such as a direct message or the repository's private reporting feature. All complaints will
59
+ be reviewed and investigated promptly and fairly.
60
+
61
+ All community leaders are obligated to respect the privacy and security of the reporter of
62
+ any incident.
63
+
64
+ ## Enforcement Guidelines
65
+
66
+ Community leaders will follow these Community Impact Guidelines in determining the
67
+ consequences for any action they deem in violation of this Code of Conduct:
68
+
69
+ ### 1. Correction
70
+
71
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional
72
+ or unwelcome in the community.
73
+
74
+ **Consequence**: A private, written warning from community leaders, providing clarity
75
+ around the nature of the violation and an explanation of why the behavior was
76
+ inappropriate. A public apology may be requested.
77
+
78
+ ### 2. Warning
79
+
80
+ **Community Impact**: A violation through a single incident or series of actions.
81
+
82
+ **Consequence**: A warning with consequences for continued behavior. No interaction with
83
+ the people involved, including unsolicited interaction with those enforcing the Code of
84
+ Conduct, for a specified period of time. This includes avoiding interactions in community
85
+ spaces as well as external channels like social media. Violating these terms may lead to a
86
+ temporary or permanent ban.
87
+
88
+ ### 3. Temporary Ban
89
+
90
+ **Community Impact**: A serious violation of community standards, including sustained
91
+ inappropriate behavior.
92
+
93
+ **Consequence**: A temporary ban from any sort of interaction or public communication with
94
+ the community for a specified period of time. No public or private interaction with the
95
+ people involved, including unsolicited interaction with those enforcing the Code of
96
+ Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
97
+
98
+ ### 4. Permanent Ban
99
+
100
+ **Community Impact**: Demonstrating a pattern of violation of community standards,
101
+ including sustained inappropriate behavior, harassment of an individual, or aggression
102
+ toward or disparagement of classes of individuals.
103
+
104
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
105
+
106
+ ## Attribution
107
+
108
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1,
109
+ available at
110
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
111
+
112
+ [homepage]: https://www.contributor-covenant.org
113
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html