Arcanum 0.1.0a0__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.
@@ -0,0 +1,31 @@
1
+ root = true
2
+
3
+ [*]
4
+ tab_width = 2
5
+ charset = utf-8
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ indent_style = space
9
+ insert_final_newline = false
10
+ trim_trailing_whitespace = true
11
+
12
+ [*.py]
13
+ tab_width = 4
14
+ indent_size = 4
15
+ indent_style = space
16
+
17
+ # shfmt configuration
18
+ [*.sh]
19
+ indent_style = space
20
+ indent_size = 2
21
+ shell_variant = bash
22
+ binary_next_line = false
23
+ switch_case_indent = true
24
+ space_redirects = false
25
+ keep_padding = true
26
+ function_next_line = false
27
+ never_split = true
28
+
29
+ [Makefile]
30
+ indent_style = tab
31
+ tab_width = 4
@@ -0,0 +1,56 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [dev, main]
6
+ pull_request:
7
+ branches: [dev, main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+
13
+ strategy:
14
+ matrix:
15
+ python-version:
16
+ - '3.9'
17
+ - '3.10'
18
+ - '3.11'
19
+ - '3.12'
20
+ - '3.13'
21
+
22
+ steps:
23
+ - name: Checkout code
24
+ uses: actions/checkout@v4.2.2
25
+ with:
26
+ fetch-depth: 0
27
+
28
+ - name: Load secrets from 1Password
29
+ uses: 1password/load-secrets-action@v2
30
+ id: op-load-secrets
31
+ with:
32
+ export-env: true
33
+ env:
34
+ OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
35
+ CODECOV_TOKEN: 'op://ho2ovofyavan72msz26pr6qbfe/CODECOV_TOKEN/CodeCov/CODECOV_TOKEN'
36
+
37
+ - name: Setup uv
38
+ uses: astral-sh/setup-uv@v3.2.0
39
+ with:
40
+ enable-cache: true
41
+
42
+ - name: Install Python ${{ matrix.python-version }}
43
+ run: uv python install ${{ matrix.python-version }}
44
+
45
+ - name: Install dependencies with uv
46
+ run: uv sync --all-extras --dev -p ${{ matrix.python-version }}
47
+
48
+ - name: Run tests with tox
49
+ run: uv run tox
50
+
51
+ - name: Upload results to Codecov
52
+ uses: codecov/codecov-action@v4
53
+ with:
54
+ token: ${{ env.CODECOV_TOKEN }}
55
+ env:
56
+ CODECOVE_TOKEN: ${{ env.CODECOV_TOKEN }}
@@ -0,0 +1,115 @@
1
+ *
2
+ !*/
3
+
4
+ # ---------- Add items which should *NOT* be ignored below this line -----------
5
+
6
+ # Common
7
+ !LICENSE*
8
+ !NOTICE*
9
+ !README*
10
+
11
+ # Configs
12
+ !.editorconfig
13
+ !.gitignore
14
+ !.markdownlint.y*ml
15
+ !.pre-commit-config.y*ml
16
+ !.prettier*
17
+ !.shellcheckrc
18
+ !config.y*ml
19
+
20
+ # agebox
21
+ !*.agebox
22
+ !.ageboxreg.y*ml
23
+
24
+ # JavaScript/TypeScript
25
+ !package.json
26
+ !tsconfig.json
27
+
28
+ # Python
29
+ !.python-version
30
+ !.ruff.toml
31
+ !pyproject.toml
32
+ !tox.ini
33
+ !uv.lock
34
+
35
+ # Directories
36
+ !/requirements*
37
+ !/scripts/*.sh
38
+ !/src/**/*.py
39
+ !/tests/**/*.py
40
+ !/tests/data/*.json
41
+
42
+ # GitHub Workflows
43
+ !/.github/**/*.y*ml
44
+
45
+ # --------- Add items which should *ALWAYS* be ignored below this line ---------
46
+ **/docker/**/data/
47
+ *.box
48
+ *.cert
49
+ *.crt
50
+ *.dll
51
+ *.dylib
52
+ *.env*
53
+ *.exe~
54
+ *.icloud
55
+ *.key
56
+ *.log
57
+ *.out
58
+ *.pdb
59
+ *.pem
60
+ *.ppk
61
+ *.py[cod]
62
+ *.rs.bk
63
+ *.so
64
+ *.test
65
+ *.tsbuildinfo
66
+ *_ed25519
67
+ *_rsa
68
+ .Apple*
69
+ .DS_Store
70
+ .DocumentRevisions-V100
71
+ .LSOverride
72
+ .Spotlight-V100
73
+ .TemporaryItems
74
+ .Trashes
75
+ .VolumeIcon.icns
76
+ ._*
77
+ .apdisk
78
+ .com.apple.*
79
+ .cursorrules
80
+ .fseventsd
81
+ .history
82
+ .htaccess
83
+ .local
84
+ .next
85
+ .npm
86
+ .nuxt
87
+ .nvm
88
+ .venv
89
+ .vscode-test
90
+ .yarn
91
+ 1password-credentials.json
92
+ Cargo.lock
93
+ Network Trash Folder
94
+ [Tt]emporary*
95
+ [Vv]irtual[Ee]nv
96
+ __pycache__
97
+ debug/
98
+ env/
99
+ envs/
100
+ go.work
101
+ go.work.sum
102
+ jspm_packages
103
+ key
104
+ key.txt
105
+ log?/
106
+ node_modules
107
+ secring.*
108
+ target/
109
+ venv
110
+ web_modules
111
+
112
+ # -------------- Add other overrides as necessary below this line --------------
113
+
114
+ # Examples
115
+ !*example*
@@ -0,0 +1,8 @@
1
+ MD001: false # MD001/heading-increment
2
+ MD013: false # MD013/line-length
3
+ MD033: false # MD033/no-inline-html
4
+ MD040: false # MD040/fenced-code-language
5
+ MD041: false # MD041/first-line-heading/first-line-h1
6
+ MD046: false # MD046/code-block-style
7
+ MD024: false # MD024/no-duplicate-heading
8
+ MD014: false # MD014/commands-show-output
@@ -0,0 +1,79 @@
1
+ # .pre-commit-config.yaml
2
+
3
+ default_language_version:
4
+ python: '3.12'
5
+
6
+ repos:
7
+ - repo: https://github.com/pre-commit/pre-commit-hooks
8
+ rev: v5.0.0
9
+ hooks:
10
+ - id: check-added-large-files
11
+ - id: check-ast
12
+ - id: check-case-conflict
13
+ - id: check-merge-conflict
14
+ - id: check-toml
15
+ - id: check-yaml
16
+ - id: debug-statements
17
+ - id: detect-private-key
18
+ - id: double-quote-string-fixer
19
+ - id: end-of-file-fixer
20
+ - id: fix-byte-order-marker
21
+ - id: mixed-line-ending
22
+ - id: requirements-txt-fixer
23
+ - id: trailing-whitespace
24
+ - id: mixed-line-ending
25
+ args: [--fix=auto]
26
+
27
+ - repo: https://github.com/compilerla/conventional-pre-commit
28
+ rev: v3.6.0
29
+ hooks:
30
+ - id: conventional-pre-commit
31
+ stages: [commit-msg]
32
+
33
+ - repo: https://github.com/charliermarsh/ruff-pre-commit
34
+ rev: v0.7.3
35
+ hooks:
36
+ - id: ruff
37
+ types_or: [python, pyi]
38
+ args: [--config, .ruff.toml, --fix]
39
+ - id: ruff-format
40
+ types_or: [python, pyi]
41
+
42
+ - repo: https://github.com/codespell-project/codespell
43
+ rev: v2.3.0
44
+ hooks:
45
+ - id: codespell
46
+
47
+ - repo: https://github.com/lorenzwalthert/gitignore-tidy
48
+ rev: 0.1.2
49
+ hooks:
50
+ - id: tidy-gitignore
51
+
52
+ - repo: https://github.com/asottile/pyupgrade
53
+ rev: v3.19.0
54
+ hooks:
55
+ - id: pyupgrade
56
+ args: [--py312-plus]
57
+
58
+ - repo: https://github.com/Yelp/detect-secrets
59
+ rev: v1.5.0
60
+ hooks:
61
+ - id: detect-secrets
62
+ exclude: dist|target|public|.*\.lock\..*|.*example.*|.*\.agebox
63
+
64
+ - repo: https://github.com/pre-commit/mirrors-prettier
65
+ rev: v4.0.0-alpha.8
66
+ hooks:
67
+ - id: prettier
68
+ exclude: dist|target|public|.*\.lock\..*
69
+ types_or:
70
+ - javascript
71
+ - json
72
+ - jsx
73
+ - svg
74
+ - ts
75
+ - tsx
76
+ - yaml
77
+ - css
78
+ - markdown
79
+ - mdx
@@ -0,0 +1,25 @@
1
+ {
2
+ "trailingComma": "all",
3
+ "tabWidth": 2,
4
+ "semi": true,
5
+ "singleQuote": true,
6
+ "arrowParens": "always",
7
+ "bracketSpacing": true,
8
+ "bracketSameLine": false,
9
+ "htmlWhitespaceSensitivity": "css",
10
+ "insertPragma": false,
11
+ "jsxSingleQuote": true,
12
+ "printWidth": 100,
13
+ "proseWrap": "always",
14
+ "quoteProps": "as-needed",
15
+ "requirePragma": false,
16
+ "useTabs": false,
17
+ "overrides": [
18
+ {
19
+ "files": "*.md",
20
+ "options": {
21
+ "printWidth": 80
22
+ }
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1 @@
1
+ 3.12.7
@@ -0,0 +1,111 @@
1
+ force-exclude = true
2
+ indent-width = 4
3
+ line-length = 100
4
+ respect-gitignore = true
5
+ target-version = "py312"
6
+ unsafe-fixes = true
7
+
8
+ [format]
9
+ docstring-code-format = true
10
+ docstring-code-line-length = "dynamic"
11
+ indent-style = "space"
12
+ line-ending = "lf"
13
+ quote-style = "single"
14
+ skip-magic-trailing-comma = false
15
+
16
+ [lint]
17
+ fixable = ["ALL"]
18
+ unfixable = []
19
+
20
+ select = [
21
+ "A", # flake8-builtins
22
+ "ANN", # flake8-annotations
23
+ "ARG", # flake8-unused-arguments
24
+ "ASYNC", # flake8-async
25
+ "B", # flake8-bugbear
26
+ "C4", # flake8-comprehensions
27
+ "DTZ", # flake8-datetimez
28
+ "E", # pycodestyle - error
29
+ "F", # pyflakes
30
+ "FA", # flake8-future-annotations
31
+ "FBT", # flake8-boolean-trap
32
+ "FLY", # flynt
33
+ "FURB", # refurb
34
+ "I", # isort
35
+ "ICN", # flake8-import-conventions
36
+ "LOG", # flake8-logging
37
+ "N", # pep8-naming
38
+ "NPY", # numpy-specific rules
39
+ "PD", # pandas-vet
40
+ "PERF", # perflint
41
+ "PIE", # flake8-pie
42
+ "PLC", # pylint - convention
43
+ "PLE", # pylint - error
44
+ "PLR", # pylint - refactor
45
+ "PT", # flake8-pytest-style
46
+ "PTH", # flake8-use-pathlib
47
+ "Q", # flake8-quotes
48
+ "RET", # flake8-return
49
+ "RSE", # flake8-raise
50
+ "RUF", # ruff-specific rules
51
+ "S", # flake8-bandit
52
+ "SIM", # flake8-simplify
53
+ "SLOT", # flake8-slots
54
+ "T10", # flake8-debugger
55
+ "TCH", # flake8-type-checking
56
+ "TID", # flake8-tidy-imports
57
+ "UP", # pyupgrade
58
+ "W", # warning
59
+ "YTT", # flake8-2020
60
+ ]
61
+
62
+ ignore = [
63
+ "ANN101", # missing-type-self
64
+ "ANN102", # missing-type-cls
65
+ "ANN401", # any-type
66
+ "N817", # camelcase-imported-as-acronym
67
+ "N818", # error-suffix-on-exception-name
68
+ "PLR2004", # magic-value-comparison
69
+ "S108", # hardcoded-temp-file
70
+ "S602", # subprocess-popen-with-shell-equals-true
71
+ "S603", # subprocess-without-shell-equals-true
72
+ "S604", # call-with-shell-equals-true
73
+ "S605", # start-process-with-a-shell
74
+ "S606", # start-process-with-no-shell
75
+ "S607", # start-process-with-partial-path
76
+ "S701", # jinja2-autoescape-false
77
+ ]
78
+
79
+ [lint.isort]
80
+ known-first-party = ["app", "core", "db", "lib", "models", "src"]
81
+
82
+ [lint.per-file-ignores]
83
+ "__init__.py" = ["D103", "D104", "F401"]
84
+ "**/*test*.py" = ["D103", "D104", "Q000", "S101"]
85
+ "**/cfg.py" = ["ARG003"]
86
+ "**/codemod*/*.py" = ["ARG002", "N802"]
87
+ "**/compat*.py" = ["UP"]
88
+ "**/config.py" = ["ARG003"]
89
+
90
+ [lint.flake8-unused-arguments]
91
+ ignore-variadic-names = true
92
+
93
+ [lint.flake8-annotations]
94
+ allow-star-arg-any = true
95
+
96
+ [lint.flake8-quotes]
97
+ inline-quotes = "single"
98
+
99
+ [lint.pydocstyle]
100
+ convention = "numpy"
101
+
102
+ [lint.pylint]
103
+ allow-magic-value-types = ["int"]
104
+ max-args = 10
105
+ max-bool-expr = 10
106
+ max-branches = 20
107
+ max-locals = 15
108
+ max-nested-blocks = 10
109
+ max-positional-args = 10
110
+ max-returns = 10
111
+ max-statements = 75
@@ -0,0 +1,2 @@
1
+ disable=SC2029,SC2139,SC2015
2
+ external-sources=true
@@ -0,0 +1,73 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
10
+
11
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
12
+
13
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
14
+
15
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
16
+
17
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
18
+
19
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
20
+
21
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
22
+
23
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
24
+
25
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
26
+
27
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
28
+
29
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
30
+
31
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
32
+
33
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
34
+
35
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
36
+
37
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
38
+
39
+ (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
40
+
41
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
42
+
43
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
56
+
57
+ APPENDIX: How to apply the Apache License to your work.
58
+
59
+ To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
60
+
61
+ Copyright 2024 Alchemyst0x, Blockmage Ltd, and Contributors.
62
+
63
+ Licensed under the Apache License, Version 2.0 (the "License");
64
+ you may not use this file except in compliance with the License.
65
+ You may obtain a copy of the License at
66
+
67
+ http://www.apache.org/licenses/LICENSE-2.0
68
+
69
+ Unless required by applicable law or agreed to in writing, software
70
+ distributed under the License is distributed on an "AS IS" BASIS,
71
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
72
+ See the License for the specific language governing permissions and
73
+ limitations under the License.
@@ -0,0 +1,24 @@
1
+ Metadata-Version: 2.3
2
+ Name: Arcanum
3
+ Version: 0.1.0a0
4
+ Summary: A curated collection of Python utilities, carefully crafted to solve common development challenges.
5
+ Author-email: Alchemyst0x <alchemyst@alchemyst.io>
6
+ License: Apache-2.0
7
+ Classifier: Development Status :: 3 - Alpha
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.9
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
+ Requires-Python: >=3.9
18
+ Requires-Dist: python-dotenv>=1.0.1
19
+ Description-Content-Type: text/markdown
20
+
21
+ # Arcanum
22
+
23
+ A curated collection of Python utilities, carefully crafted to solve common
24
+ development challenges.
@@ -0,0 +1,4 @@
1
+ # Arcanum
2
+
3
+ A curated collection of Python utilities, carefully crafted to solve common
4
+ development challenges.
@@ -0,0 +1 @@
1
+ {"8c25c48a75cfd27ffb649430b7e658fd2ed62d65":{"files":{"README.md":["kdlZYBzfS2BYQOPVtj5mf6sy/r8=",true],".github/workflows/ci.yml":["nzzEjUevrqH68pYigPxia2fURLA=",true],".markdownlint.yaml":["hWoC2WWvmISuBcY4MJ0+Ml0n348=",true],".pre-commit-config.yaml":["sOjfR0Mvo3lJeq8g7YJJlUPX9D8=",true]},"modified":1731326475897}}
@@ -0,0 +1,83 @@
1
+ [project]
2
+ name = "Arcanum"
3
+ version = "0.1.0-alpha"
4
+ requires-python = ">= 3.9"
5
+ readme = "README.md"
6
+ license = { text = "Apache-2.0" }
7
+ description = "A curated collection of Python utilities, carefully crafted to solve common development challenges."
8
+ authors = [{ name = "Alchemyst0x", email = "alchemyst@alchemyst.io" }]
9
+
10
+ dependencies = ["python-dotenv>=1.0.1"]
11
+
12
+ classifiers = [
13
+ "Development Status :: 3 - Alpha",
14
+ "Intended Audience :: Developers",
15
+ "License :: OSI Approved :: MIT License",
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3.9",
18
+ "Programming Language :: Python :: 3.10",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ "Programming Language :: Python :: 3.13",
22
+ "Topic :: Software Development :: Libraries :: Python Modules",
23
+ ]
24
+
25
+ [project.scripts]
26
+ "arc" = "arcanum:main"
27
+
28
+ [build-system]
29
+ requires = ["hatchling"]
30
+ build-backend = "hatchling.build"
31
+
32
+ [tool.hatch.metadata]
33
+ allow-direct-references = true
34
+
35
+ [tool.hatch.build.targets.wheel]
36
+ packages = ["src/arcanum"]
37
+
38
+ [tool.rye]
39
+ managed = true
40
+ generate-hashes = true
41
+ lock-with-sources = true
42
+
43
+ dev-dependencies = [
44
+ "codespell>=2.3.0",
45
+ "coverage>=7.6.4",
46
+ "devtools>=0.12.2",
47
+ "mypy>=1.13.0",
48
+ "pre-commit>=4.0.1",
49
+ "pytest-cov>=5.0.0",
50
+ "pytest>=8.3.3",
51
+ "ruff>=0.7.1",
52
+ "tox>=4.23.2",
53
+ ]
54
+
55
+ [tool.uv.pip]
56
+ compile-bytecode = true
57
+
58
+ [tool.codespell]
59
+ builtin = "clear,code,informal,rare,usage"
60
+ ignore-words-list = "deque,deques,jupyter,keypair"
61
+
62
+ [tool.mypy]
63
+ plugins = ["pydantic.mypy"]
64
+ no_implicit_optional = true
65
+ show_column_numbers = true
66
+ show_error_codes = true
67
+ show_error_context = true
68
+ warn_redundant_casts = true
69
+ warn_return_any = false
70
+ warn_unused_configs = true
71
+ warn_unused_ignores = true
72
+
73
+ [[tool.mypy.overrides]]
74
+ module = "tests.*"
75
+ disable_error_code = "annotation-unchecked"
76
+
77
+ [tool.pydantic-mypy]
78
+ init_typed = true
79
+ init_forbid_extra = true
80
+ warn_required_dynamic_aliases = true
81
+
82
+ [tool.pytest.ini_options]
83
+ addopts = "-s"
@@ -0,0 +1,294 @@
1
+ # generated by rye
2
+ # use `rye lock` or `rye sync` to update this lockfile
3
+ #
4
+ # last locked with the following flags:
5
+ # pre: false
6
+ # features: []
7
+ # all-features: false
8
+ # with-sources: true
9
+ # generate-hashes: true
10
+ # universal: false
11
+
12
+ --index-url https://pypi.org/simple/
13
+
14
+ -e file:.
15
+ asttokens==2.4.1 \
16
+ --hash=sha256:051ed49c3dcae8913ea7cd08e46a606dba30b79993209636c4875bc1d637bc24 \
17
+ --hash=sha256:b03869718ba9a6eb027e134bfdf69f38a236d681c83c160d510768af11254ba0
18
+ # via devtools
19
+ cachetools==5.5.0 \
20
+ --hash=sha256:02134e8439cdc2ffb62023ce1debca2944c3f289d66bb17ead3ab3dede74b292 \
21
+ --hash=sha256:2cc24fb4cbe39633fb7badd9db9ca6295d766d9c2995f245725a46715d050f2a
22
+ # via tox
23
+ cfgv==3.4.0 \
24
+ --hash=sha256:b7265b1f29fd3316bfcd2b330d63d024f2bfd8bcb8b0272f8e19a504856c48f9 \
25
+ --hash=sha256:e52591d4c5f5dead8e0f673fb16db7949d2cfb3f7da4582893288f0ded8fe560
26
+ # via pre-commit
27
+ chardet==5.2.0 \
28
+ --hash=sha256:1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7 \
29
+ --hash=sha256:e1cf59446890a00105fe7b7912492ea04b6e6f06d4b742b2c788469e34c82970
30
+ # via tox
31
+ codespell==2.3.0 \
32
+ --hash=sha256:360c7d10f75e65f67bad720af7007e1060a5d395670ec11a7ed1fed9dd17471f \
33
+ --hash=sha256:a9c7cef2501c9cfede2110fd6d4e5e62296920efe9abfb84648df866e47f58d1
34
+ colorama==0.4.6 \
35
+ --hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \
36
+ --hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
37
+ # via tox
38
+ coverage==7.6.4 \
39
+ --hash=sha256:00a1d69c112ff5149cabe60d2e2ee948752c975d95f1e1096742e6077affd376 \
40
+ --hash=sha256:023bf8ee3ec6d35af9c1c6ccc1d18fa69afa1cb29eaac57cb064dbb262a517f9 \
41
+ --hash=sha256:0294ca37f1ba500667b1aef631e48d875ced93ad5e06fa665a3295bdd1d95111 \
42
+ --hash=sha256:06babbb8f4e74b063dbaeb74ad68dfce9186c595a15f11f5d5683f748fa1d172 \
43
+ --hash=sha256:0809082ee480bb8f7416507538243c8863ac74fd8a5d2485c46f0f7499f2b491 \
44
+ --hash=sha256:0b3fb02fe73bed561fa12d279a417b432e5b50fe03e8d663d61b3d5990f29546 \
45
+ --hash=sha256:0b58c672d14f16ed92a48db984612f5ce3836ae7d72cdd161001cc54512571f2 \
46
+ --hash=sha256:0bcd1069e710600e8e4cf27f65c90c7843fa8edfb4520fb0ccb88894cad08b11 \
47
+ --hash=sha256:1032e178b76a4e2b5b32e19d0fd0abbce4b58e77a1ca695820d10e491fa32b08 \
48
+ --hash=sha256:11a223a14e91a4693d2d0755c7a043db43d96a7450b4f356d506c2562c48642c \
49
+ --hash=sha256:12394842a3a8affa3ba62b0d4ab7e9e210c5e366fbac3e8b2a68636fb19892c2 \
50
+ --hash=sha256:182e6cd5c040cec0a1c8d415a87b67ed01193ed9ad458ee427741c7d8513d963 \
51
+ --hash=sha256:1d5b8007f81b88696d06f7df0cb9af0d3b835fe0c8dbf489bad70b45f0e45613 \
52
+ --hash=sha256:1f76846299ba5c54d12c91d776d9605ae33f8ae2b9d1d3c3703cf2db1a67f2c0 \
53
+ --hash=sha256:27fb4a050aaf18772db513091c9c13f6cb94ed40eacdef8dad8411d92d9992db \
54
+ --hash=sha256:29155cd511ee058e260db648b6182c419422a0d2e9a4fa44501898cf918866cf \
55
+ --hash=sha256:29fc0f17b1d3fea332f8001d4558f8214af7f1d87a345f3a133c901d60347c73 \
56
+ --hash=sha256:2b6b4c83d8e8ea79f27ab80778c19bc037759aea298da4b56621f4474ffeb117 \
57
+ --hash=sha256:2fdef0d83a2d08d69b1f2210a93c416d54e14d9eb398f6ab2f0a209433db19e1 \
58
+ --hash=sha256:3c65d37f3a9ebb703e710befdc489a38683a5b152242664b973a7b7b22348a4e \
59
+ --hash=sha256:4f704f0998911abf728a7783799444fcbbe8261c4a6c166f667937ae6a8aa522 \
60
+ --hash=sha256:51b44306032045b383a7a8a2c13878de375117946d68dcb54308111f39775a25 \
61
+ --hash=sha256:53d202fd109416ce011578f321460795abfe10bb901b883cafd9b3ef851bacfc \
62
+ --hash=sha256:58809e238a8a12a625c70450b48e8767cff9eb67c62e6154a642b21ddf79baea \
63
+ --hash=sha256:5915fcdec0e54ee229926868e9b08586376cae1f5faa9bbaf8faf3561b393d52 \
64
+ --hash=sha256:5beb1ee382ad32afe424097de57134175fea3faf847b9af002cc7895be4e2a5a \
65
+ --hash=sha256:5f8ae553cba74085db385d489c7a792ad66f7f9ba2ee85bfa508aeb84cf0ba07 \
66
+ --hash=sha256:5fbd612f8a091954a0c8dd4c0b571b973487277d26476f8480bfa4b2a65b5d06 \
67
+ --hash=sha256:6bd818b7ea14bc6e1f06e241e8234508b21edf1b242d49831831a9450e2f35fa \
68
+ --hash=sha256:6f01ba56b1c0e9d149f9ac85a2f999724895229eb36bd997b61e62999e9b0901 \
69
+ --hash=sha256:73d2b73584446e66ee633eaad1a56aad577c077f46c35ca3283cd687b7715b0b \
70
+ --hash=sha256:7bb92c539a624cf86296dd0c68cd5cc286c9eef2d0c3b8b192b604ce9de20a17 \
71
+ --hash=sha256:8165b796df0bd42e10527a3f493c592ba494f16ef3c8b531288e3d0d72c1f6f0 \
72
+ --hash=sha256:862264b12ebb65ad8d863d51f17758b1684560b66ab02770d4f0baf2ff75da21 \
73
+ --hash=sha256:8902dd6a30173d4ef09954bfcb24b5d7b5190cf14a43170e386979651e09ba19 \
74
+ --hash=sha256:8cf717ee42012be8c0cb205dbbf18ffa9003c4cbf4ad078db47b95e10748eec5 \
75
+ --hash=sha256:8ed9281d1b52628e81393f5eaee24a45cbd64965f41857559c2b7ff19385df51 \
76
+ --hash=sha256:99b41d18e6b2a48ba949418db48159d7a2e81c5cc290fc934b7d2380515bd0e3 \
77
+ --hash=sha256:9cb7fa111d21a6b55cbf633039f7bc2749e74932e3aa7cb7333f675a58a58bf3 \
78
+ --hash=sha256:a181e99301a0ae128493a24cfe5cfb5b488c4e0bf2f8702091473d033494d04f \
79
+ --hash=sha256:a413a096c4cbac202433c850ee43fa326d2e871b24554da8327b01632673a076 \
80
+ --hash=sha256:a6b1e54712ba3474f34b7ef7a41e65bd9037ad47916ccb1cc78769bae324c01a \
81
+ --hash=sha256:ade3ca1e5f0ff46b678b66201f7ff477e8fa11fb537f3b55c3f0568fbfe6e718 \
82
+ --hash=sha256:b0ac3d42cb51c4b12df9c5f0dd2f13a4f24f01943627120ec4d293c9181219ba \
83
+ --hash=sha256:b369ead6527d025a0fe7bd3864e46dbee3aa8f652d48df6174f8d0bac9e26e0e \
84
+ --hash=sha256:b57b768feb866f44eeed9f46975f3d6406380275c5ddfe22f531a2bf187eda27 \
85
+ --hash=sha256:b8d3a03d9bfcaf5b0141d07a88456bb6a4c3ce55c080712fec8418ef3610230e \
86
+ --hash=sha256:bc66f0bf1d7730a17430a50163bb264ba9ded56739112368ba985ddaa9c3bd09 \
87
+ --hash=sha256:bf20494da9653f6410213424f5f8ad0ed885e01f7e8e59811f572bdb20b8972e \
88
+ --hash=sha256:c48167910a8f644671de9f2083a23630fbf7a1cb70ce939440cd3328e0919f70 \
89
+ --hash=sha256:c481b47f6b5845064c65a7bc78bc0860e635a9b055af0df46fdf1c58cebf8e8f \
90
+ --hash=sha256:c7c8b95bf47db6d19096a5e052ffca0a05f335bc63cef281a6e8fe864d450a72 \
91
+ --hash=sha256:c9b8e184898ed014884ca84c70562b4a82cbc63b044d366fedc68bc2b2f3394a \
92
+ --hash=sha256:cc8ff50b50ce532de2fa7a7daae9dd12f0a699bfcd47f20945364e5c31799fef \
93
+ --hash=sha256:d541423cdd416b78626b55f123412fcf979d22a2c39fce251b350de38c15c15b \
94
+ --hash=sha256:dab4d16dfef34b185032580e2f2f89253d302facba093d5fa9dbe04f569c4f4b \
95
+ --hash=sha256:dacbc52de979f2823a819571f2e3a350a7e36b8cb7484cdb1e289bceaf35305f \
96
+ --hash=sha256:df57bdbeffe694e7842092c5e2e0bc80fff7f43379d465f932ef36f027179806 \
97
+ --hash=sha256:ed8fe9189d2beb6edc14d3ad19800626e1d9f2d975e436f84e19efb7fa19469b \
98
+ --hash=sha256:f3ddf056d3ebcf6ce47bdaf56142af51bb7fad09e4af310241e9db7a3a8022e1 \
99
+ --hash=sha256:f8fe4984b431f8621ca53d9380901f62bfb54ff759a1348cd140490ada7b693c \
100
+ --hash=sha256:fe439416eb6380de434886b00c859304338f8b19f6f54811984f3420a2e03858
101
+ # via pytest-cov
102
+ devtools==0.12.2 \
103
+ --hash=sha256:c366e3de1df4cdd635f1ad8cbcd3af01a384d7abda71900e68d43b04eb6aaca7 \
104
+ --hash=sha256:efceab184cb35e3a11fa8e602cc4fadacaa2e859e920fc6f87bf130b69885507
105
+ distlib==0.3.9 \
106
+ --hash=sha256:47f8c22fd27c27e25a65601af709b38e4f0a45ea4fc2e710f65755fa8caaaf87 \
107
+ --hash=sha256:a60f20dea646b8a33f3e7772f74dc0b2d0772d2837ee1342a00645c81edf9403
108
+ # via virtualenv
109
+ executing==2.1.0 \
110
+ --hash=sha256:8d63781349375b5ebccc3142f4b30350c0cd9c79f921cde38be2be4637e98eaf \
111
+ --hash=sha256:8ea27ddd260da8150fa5a708269c4a10e76161e2496ec3e587da9e3c0fe4b9ab
112
+ # via devtools
113
+ filelock==3.16.1 \
114
+ --hash=sha256:2082e5703d51fbf98ea75855d9d5527e33d8ff23099bec374a134febee6946b0 \
115
+ --hash=sha256:c249fbfcd5db47e5e2d6d62198e565475ee65e4831e2561c8e313fa7eb961435
116
+ # via tox
117
+ # via virtualenv
118
+ identify==2.6.2 \
119
+ --hash=sha256:c097384259f49e372f4ea00a19719d95ae27dd5ff0fd77ad630aa891306b82f3 \
120
+ --hash=sha256:fab5c716c24d7a789775228823797296a2994b075fb6080ac83a102772a98cbd
121
+ # via pre-commit
122
+ iniconfig==2.0.0 \
123
+ --hash=sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3 \
124
+ --hash=sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374
125
+ # via pytest
126
+ mypy==1.13.0 \
127
+ --hash=sha256:0246bcb1b5de7f08f2826451abd947bf656945209b140d16ed317f65a17dc7dc \
128
+ --hash=sha256:0291a61b6fbf3e6673e3405cfcc0e7650bebc7939659fdca2702958038bd835e \
129
+ --hash=sha256:0730d1c6a2739d4511dc4253f8274cdd140c55c32dfb0a4cf8b7a43f40abfa6f \
130
+ --hash=sha256:07de989f89786f62b937851295ed62e51774722e5444a27cecca993fc3f9cd74 \
131
+ --hash=sha256:100fac22ce82925f676a734af0db922ecfea991e1d7ec0ceb1e115ebe501301a \
132
+ --hash=sha256:164f28cb9d6367439031f4c81e84d3ccaa1e19232d9d05d37cb0bd880d3f93c2 \
133
+ --hash=sha256:20c7ee0bc0d5a9595c46f38beb04201f2620065a93755704e141fcac9f59db2b \
134
+ --hash=sha256:3790ded76f0b34bc9c8ba4def8f919dd6a46db0f5a6610fb994fe8efdd447f73 \
135
+ --hash=sha256:39bb21c69a5d6342f4ce526e4584bc5c197fd20a60d14a8624d8743fffb9472e \
136
+ --hash=sha256:3ddb5b9bf82e05cc9a627e84707b528e5c7caaa1c55c69e175abb15a761cec2d \
137
+ --hash=sha256:3e38b980e5681f28f033f3be86b099a247b13c491f14bb8b1e1e134d23bb599d \
138
+ --hash=sha256:4bde84334fbe19bad704b3f5b78c4abd35ff1026f8ba72b29de70dda0916beb6 \
139
+ --hash=sha256:51f869f4b6b538229c1d1bcc1dd7d119817206e2bc54e8e374b3dfa202defcca \
140
+ --hash=sha256:581665e6f3a8a9078f28d5502f4c334c0c8d802ef55ea0e7276a6e409bc0d82d \
141
+ --hash=sha256:5c7051a3461ae84dfb5dd15eff5094640c61c5f22257c8b766794e6dd85e72d5 \
142
+ --hash=sha256:5d5092efb8516d08440e36626f0153b5006d4088c1d663d88bf79625af3d1d62 \
143
+ --hash=sha256:6607e0f1dd1fb7f0aca14d936d13fd19eba5e17e1cd2a14f808fa5f8f6d8f60a \
144
+ --hash=sha256:7029881ec6ffb8bc233a4fa364736789582c738217b133f1b55967115288a2bc \
145
+ --hash=sha256:7b2353a44d2179846a096e25691d54d59904559f4232519d420d64da6828a3a7 \
146
+ --hash=sha256:7bcb0bb7f42a978bb323a7c88f1081d1b5dee77ca86f4100735a6f541299d8fb \
147
+ --hash=sha256:7bfd8836970d33c2105562650656b6846149374dc8ed77d98424b40b09340ba7 \
148
+ --hash=sha256:7f5b7deae912cf8b77e990b9280f170381fdfbddf61b4ef80927edd813163732 \
149
+ --hash=sha256:8a21be69bd26fa81b1f80a61ee7ab05b076c674d9b18fb56239d72e21d9f4c80 \
150
+ --hash=sha256:9c250883f9fd81d212e0952c92dbfcc96fc237f4b7c92f56ac81fd48460b3e5a \
151
+ --hash=sha256:9f73dba9ec77acb86457a8fc04b5239822df0c14a082564737833d2963677dbc \
152
+ --hash=sha256:a0affb3a79a256b4183ba09811e3577c5163ed06685e4d4b46429a271ba174d2 \
153
+ --hash=sha256:a4c1bfcdbce96ff5d96fc9b08e3831acb30dc44ab02671eca5953eadad07d6d0 \
154
+ --hash=sha256:a6789be98a2017c912ae6ccb77ea553bbaf13d27605d2ca20a76dfbced631b24 \
155
+ --hash=sha256:a7b44178c9760ce1a43f544e595d35ed61ac2c3de306599fa59b38a6048e1aa7 \
156
+ --hash=sha256:bde31fc887c213e223bbfc34328070996061b0833b0a4cfec53745ed61f3519b \
157
+ --hash=sha256:c5fc54dbb712ff5e5a0fca797e6e0aa25726c7e72c6a5850cfd2adbc1eb0a372 \
158
+ --hash=sha256:de2904956dac40ced10931ac967ae63c5089bd498542194b436eb097a9f77bc8
159
+ mypy-extensions==1.0.0 \
160
+ --hash=sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d \
161
+ --hash=sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782
162
+ # via mypy
163
+ nodeenv==1.9.1 \
164
+ --hash=sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f \
165
+ --hash=sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9
166
+ # via pre-commit
167
+ packaging==24.2 \
168
+ --hash=sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759 \
169
+ --hash=sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f
170
+ # via pyproject-api
171
+ # via pytest
172
+ # via tox
173
+ platformdirs==4.3.6 \
174
+ --hash=sha256:357fb2acbc885b0419afd3ce3ed34564c13c9b95c89360cd9563f73aa5e2b907 \
175
+ --hash=sha256:73e575e1408ab8103900836b97580d5307456908a03e92031bab39e4554cc3fb
176
+ # via tox
177
+ # via virtualenv
178
+ pluggy==1.5.0 \
179
+ --hash=sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1 \
180
+ --hash=sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669
181
+ # via pytest
182
+ # via tox
183
+ pre-commit==4.0.1 \
184
+ --hash=sha256:80905ac375958c0444c65e9cebebd948b3cdb518f335a091a670a89d652139d2 \
185
+ --hash=sha256:efde913840816312445dc98787724647c65473daefe420785f885e8ed9a06878
186
+ pygments==2.18.0 \
187
+ --hash=sha256:786ff802f32e91311bff3889f6e9a86e81505fe99f2735bb6d60ae0c5004f199 \
188
+ --hash=sha256:b8e6aca0523f3ab76fee51799c488e38782ac06eafcf95e7ba832985c8e7b13a
189
+ # via devtools
190
+ pyproject-api==1.8.0 \
191
+ --hash=sha256:3d7d347a047afe796fd5d1885b1e391ba29be7169bd2f102fcd378f04273d228 \
192
+ --hash=sha256:77b8049f2feb5d33eefcc21b57f1e279636277a8ac8ad6b5871037b243778496
193
+ # via tox
194
+ pytest==8.3.3 \
195
+ --hash=sha256:70b98107bd648308a7952b06e6ca9a50bc660be218d53c257cc1fc94fda10181 \
196
+ --hash=sha256:a6853c7375b2663155079443d2e45de913a911a11d669df02a50814944db57b2
197
+ # via pytest-cov
198
+ pytest-cov==6.0.0 \
199
+ --hash=sha256:eee6f1b9e61008bd34975a4d5bab25801eb31898b032dd55addc93e96fcaaa35 \
200
+ --hash=sha256:fde0b595ca248bb8e2d76f020b465f3b107c9632e6a1d1705f17834c89dcadc0
201
+ python-dotenv==1.0.1 \
202
+ --hash=sha256:e324ee90a023d808f1959c46bcbc04446a10ced277783dc6ee09987c37ec10ca \
203
+ --hash=sha256:f7b63ef50f1b690dddf550d03497b66d609393b40b564ed0d674909a68ebf16a
204
+ # via arcanum
205
+ pyyaml==6.0.2 \
206
+ --hash=sha256:01179a4a8559ab5de078078f37e5c1a30d76bb88519906844fd7bdea1b7729ff \
207
+ --hash=sha256:0833f8694549e586547b576dcfaba4a6b55b9e96098b36cdc7ebefe667dfed48 \
208
+ --hash=sha256:0a9a2848a5b7feac301353437eb7d5957887edbf81d56e903999a75a3d743086 \
209
+ --hash=sha256:0b69e4ce7a131fe56b7e4d770c67429700908fc0752af059838b1cfb41960e4e \
210
+ --hash=sha256:0ffe8360bab4910ef1b9e87fb812d8bc0a308b0d0eef8c8f44e0254ab3b07133 \
211
+ --hash=sha256:11d8f3dd2b9c1207dcaf2ee0bbbfd5991f571186ec9cc78427ba5bd32afae4b5 \
212
+ --hash=sha256:17e311b6c678207928d649faa7cb0d7b4c26a0ba73d41e99c4fff6b6c3276484 \
213
+ --hash=sha256:1e2120ef853f59c7419231f3bf4e7021f1b936f6ebd222406c3b60212205d2ee \
214
+ --hash=sha256:1f71ea527786de97d1a0cc0eacd1defc0985dcf6b3f17bb77dcfc8c34bec4dc5 \
215
+ --hash=sha256:23502f431948090f597378482b4812b0caae32c22213aecf3b55325e049a6c68 \
216
+ --hash=sha256:24471b829b3bf607e04e88d79542a9d48bb037c2267d7927a874e6c205ca7e9a \
217
+ --hash=sha256:29717114e51c84ddfba879543fb232a6ed60086602313ca38cce623c1d62cfbf \
218
+ --hash=sha256:2e99c6826ffa974fe6e27cdb5ed0021786b03fc98e5ee3c5bfe1fd5015f42b99 \
219
+ --hash=sha256:39693e1f8320ae4f43943590b49779ffb98acb81f788220ea932a6b6c51004d8 \
220
+ --hash=sha256:3ad2a3decf9aaba3d29c8f537ac4b243e36bef957511b4766cb0057d32b0be85 \
221
+ --hash=sha256:3b1fdb9dc17f5a7677423d508ab4f243a726dea51fa5e70992e59a7411c89d19 \
222
+ --hash=sha256:41e4e3953a79407c794916fa277a82531dd93aad34e29c2a514c2c0c5fe971cc \
223
+ --hash=sha256:43fa96a3ca0d6b1812e01ced1044a003533c47f6ee8aca31724f78e93ccc089a \
224
+ --hash=sha256:50187695423ffe49e2deacb8cd10510bc361faac997de9efef88badc3bb9e2d1 \
225
+ --hash=sha256:5ac9328ec4831237bec75defaf839f7d4564be1e6b25ac710bd1a96321cc8317 \
226
+ --hash=sha256:5d225db5a45f21e78dd9358e58a98702a0302f2659a3c6cd320564b75b86f47c \
227
+ --hash=sha256:6395c297d42274772abc367baaa79683958044e5d3835486c16da75d2a694631 \
228
+ --hash=sha256:688ba32a1cffef67fd2e9398a2efebaea461578b0923624778664cc1c914db5d \
229
+ --hash=sha256:68ccc6023a3400877818152ad9a1033e3db8625d899c72eacb5a668902e4d652 \
230
+ --hash=sha256:70b189594dbe54f75ab3a1acec5f1e3faa7e8cf2f1e08d9b561cb41b845f69d5 \
231
+ --hash=sha256:797b4f722ffa07cc8d62053e4cff1486fa6dc094105d13fea7b1de7d8bf71c9e \
232
+ --hash=sha256:7c36280e6fb8385e520936c3cb3b8042851904eba0e58d277dca80a5cfed590b \
233
+ --hash=sha256:7e7401d0de89a9a855c839bc697c079a4af81cf878373abd7dc625847d25cbd8 \
234
+ --hash=sha256:80bab7bfc629882493af4aa31a4cfa43a4c57c83813253626916b8c7ada83476 \
235
+ --hash=sha256:82d09873e40955485746739bcb8b4586983670466c23382c19cffecbf1fd8706 \
236
+ --hash=sha256:8388ee1976c416731879ac16da0aff3f63b286ffdd57cdeb95f3f2e085687563 \
237
+ --hash=sha256:8824b5a04a04a047e72eea5cec3bc266db09e35de6bdfe34c9436ac5ee27d237 \
238
+ --hash=sha256:8b9c7197f7cb2738065c481a0461e50ad02f18c78cd75775628afb4d7137fb3b \
239
+ --hash=sha256:9056c1ecd25795207ad294bcf39f2db3d845767be0ea6e6a34d856f006006083 \
240
+ --hash=sha256:936d68689298c36b53b29f23c6dbb74de12b4ac12ca6cfe0e047bedceea56180 \
241
+ --hash=sha256:9b22676e8097e9e22e36d6b7bda33190d0d400f345f23d4065d48f4ca7ae0425 \
242
+ --hash=sha256:a4d3091415f010369ae4ed1fc6b79def9416358877534caf6a0fdd2146c87a3e \
243
+ --hash=sha256:a8786accb172bd8afb8be14490a16625cbc387036876ab6ba70912730faf8e1f \
244
+ --hash=sha256:a9f8c2e67970f13b16084e04f134610fd1d374bf477b17ec1599185cf611d725 \
245
+ --hash=sha256:bc2fa7c6b47d6bc618dd7fb02ef6fdedb1090ec036abab80d4681424b84c1183 \
246
+ --hash=sha256:c70c95198c015b85feafc136515252a261a84561b7b1d51e3384e0655ddf25ab \
247
+ --hash=sha256:cc1c1159b3d456576af7a3e4d1ba7e6924cb39de8f67111c735f6fc832082774 \
248
+ --hash=sha256:ce826d6ef20b1bc864f0a68340c8b3287705cae2f8b4b1d932177dcc76721725 \
249
+ --hash=sha256:d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e \
250
+ --hash=sha256:d7fded462629cfa4b685c5416b949ebad6cec74af5e2d42905d41e257e0869f5 \
251
+ --hash=sha256:d84a1718ee396f54f3a086ea0a66d8e552b2ab2017ef8b420e92edbc841c352d \
252
+ --hash=sha256:d8e03406cac8513435335dbab54c0d385e4a49e4945d2909a581c83647ca0290 \
253
+ --hash=sha256:e10ce637b18caea04431ce14fabcf5c64a1c61ec9c56b071a4b7ca131ca52d44 \
254
+ --hash=sha256:ec031d5d2feb36d1d1a24380e4db6d43695f3748343d99434e6f5f9156aaa2ed \
255
+ --hash=sha256:ef6107725bd54b262d6dedcc2af448a266975032bc85ef0172c5f059da6325b4 \
256
+ --hash=sha256:efdca5630322a10774e8e98e1af481aad470dd62c3170801852d752aa7a783ba \
257
+ --hash=sha256:f753120cb8181e736c57ef7636e83f31b9c0d1722c516f7e86cf15b7aa57ff12 \
258
+ --hash=sha256:ff3824dc5261f50c9b0dfb3be22b4567a6f938ccce4587b38952d85fd9e9afe4
259
+ # via pre-commit
260
+ ruff==0.7.3 \
261
+ --hash=sha256:10ebce7696afe4644e8c1a23b3cf8c0f2193a310c18387c06e583ae9ef284de2 \
262
+ --hash=sha256:1713e2c5545863cdbfe2cbce21f69ffaf37b813bfd1fb3b90dc9a6f1963f5a8c \
263
+ --hash=sha256:34f2339dc22687ec7e7002792d1f50712bf84a13d5152e75712ac08be565d344 \
264
+ --hash=sha256:37d0b619546103274e7f62643d14e1adcbccb242efda4e4bdb9544d7764782e9 \
265
+ --hash=sha256:3f36d56326b3aef8eeee150b700e519880d1aab92f471eefdef656fd57492aa2 \
266
+ --hash=sha256:44eb93c2499a169d49fafd07bc62ac89b1bc800b197e50ff4633aed212569299 \
267
+ --hash=sha256:4ba81a5f0c5478aa61674c5a2194de8b02652f17addf8dfc40c8937e6e7d79fc \
268
+ --hash=sha256:588a9ff2fecf01025ed065fe28809cd5a53b43505f48b69a1ac7707b1b7e4088 \
269
+ --hash=sha256:5d024301109a0007b78d57ab0ba190087b43dce852e552734ebf0b0b85e4fb16 \
270
+ --hash=sha256:5d59f0c3ee4d1a6787614e7135b72e21024875266101142a09a61439cb6e38a5 \
271
+ --hash=sha256:61b46049d6edc0e4317fb14b33bd693245281a3007288b68a3f5b74a22a0746d \
272
+ --hash=sha256:6b6224af8b5e09772c2ecb8dc9f3f344c1aa48201c7f07e7315367f6dd90ac29 \
273
+ --hash=sha256:6d0242ce53f3a576c35ee32d907475a8d569944c0407f91d207c8af5be5dae4e \
274
+ --hash=sha256:7f3eff9961b5d2644bcf1616c606e93baa2d6b349e8aa8b035f654df252c8c67 \
275
+ --hash=sha256:b8963cab06d130c4df2fd52c84e9f10d297826d2e8169ae0c798b6221be1d1d2 \
276
+ --hash=sha256:c50f95a82b94421c964fae4c27c0242890a20fe67d203d127e84fbb8013855f5 \
277
+ --hash=sha256:e1d1ba2e40b6e71a61b063354d04be669ab0d39c352461f3d789cac68b54a313 \
278
+ --hash=sha256:fb397332a1879b9764a3455a0bb1087bda876c2db8aca3a3cbb67b3dbce8cda0
279
+ six==1.16.0 \
280
+ --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \
281
+ --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254
282
+ # via asttokens
283
+ tox==4.23.2 \
284
+ --hash=sha256:452bc32bb031f2282881a2118923176445bac783ab97c874b8770ab4c3b76c38 \
285
+ --hash=sha256:86075e00e555df6e82e74cfc333917f91ecb47ffbc868dcafbd2672e332f4a2c
286
+ typing-extensions==4.12.2 \
287
+ --hash=sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d \
288
+ --hash=sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8
289
+ # via mypy
290
+ virtualenv==20.27.1 \
291
+ --hash=sha256:142c6be10212543b32c6c45d3d3893dff89112cc588b7d0879ae5a1ec03a47ba \
292
+ --hash=sha256:f11f1b8a29525562925f745563bfd48b189450f61fb34c4f9cc79dd5aa32a1f4
293
+ # via pre-commit
294
+ # via tox
@@ -0,0 +1,18 @@
1
+ # generated by rye
2
+ # use `rye lock` or `rye sync` to update this lockfile
3
+ #
4
+ # last locked with the following flags:
5
+ # pre: false
6
+ # features: []
7
+ # all-features: false
8
+ # with-sources: true
9
+ # generate-hashes: true
10
+ # universal: false
11
+
12
+ --index-url https://pypi.org/simple/
13
+
14
+ -e file:.
15
+ python-dotenv==1.0.1 \
16
+ --hash=sha256:e324ee90a023d808f1959c46bcbc04446a10ced277783dc6ee09987c37ec10ca \
17
+ --hash=sha256:f7b63ef50f1b690dddf550d03497b66d609393b40b564ed0d674909a68ebf16a
18
+ # via arcanum
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env bash
2
+
3
+ HOOK_TYPES=("pre-commit" "commit-msg" "pre-push")
4
+
5
+ is_hook_installed() {
6
+ local hook_type=$1
7
+ [[ -f ".git/hooks/${hook_type}" ]] &&
8
+ grep -q "pre-commit" ".git/hooks/${hook_type}"
9
+ }
10
+
11
+ main() {
12
+ for hook_type in "${HOOK_TYPES[@]}"; do
13
+ if ! is_hook_installed "$hook_type"; then
14
+ echo "Installing '${hook_type}' hook..."
15
+ if [[ "$hook_type" == "pre-commit" ]]; then
16
+ pre-commit install
17
+ else
18
+ pre-commit install --hook-type "$hook_type"
19
+ fi
20
+ else
21
+ echo "'${hook_type}' hook already installed"
22
+ fi
23
+ done
24
+ }
25
+
26
+ if [[ "$#" -eq 1 && "$1" == *"up"* ]]; then
27
+ pre-commit autoupdate && main
28
+ else main; fi
@@ -0,0 +1,2 @@
1
+ def main() -> int:
2
+ return 0
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ import arcanum
4
+
5
+ sys.exit(arcanum.main())
@@ -0,0 +1,41 @@
1
+ [tox]
2
+ envlist =
3
+ clean
4
+ py39
5
+ py310
6
+ py311
7
+ py312
8
+ py313
9
+ report
10
+
11
+ minversion = 4.23.2
12
+
13
+ [tool:pytest]
14
+ testpaths = tests
15
+ addopts =
16
+ --cov-report=term-missing
17
+
18
+ [testenv]
19
+ commands = pytest \
20
+ --cov=misclib \
21
+ --cov-report=xml \
22
+ --cov-append {posargs:-s}
23
+
24
+ deps =
25
+ pytest>=8
26
+ coverage>=7
27
+ pytest-cov>=5
28
+
29
+ depends =
30
+ report: py39,py310,py311,py312,py313
31
+ {py39,py310,py311,py312,py313}: clean
32
+
33
+ [testenv:clean]
34
+ skip_install = true
35
+ deps = coverage>=7
36
+ commands = coverage erase
37
+
38
+ [testenv:report]
39
+ skip_install = true
40
+ deps = coverage>=7
41
+ commands = coverage report