FastSpine 1.0.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 (108) hide show
  1. fastspine-1.0.0/.github/workflows/publish.yml +29 -0
  2. fastspine-1.0.0/.gitignore +167 -0
  3. fastspine-1.0.0/.pre-commit-config.yaml +58 -0
  4. fastspine-1.0.0/.ruff.toml +114 -0
  5. fastspine-1.0.0/.vscode/extensions.json +50 -0
  6. fastspine-1.0.0/.vscode/launch.json +12 -0
  7. fastspine-1.0.0/.vscode/settings.json +22 -0
  8. fastspine-1.0.0/LICENSE +21 -0
  9. fastspine-1.0.0/Makefile +34 -0
  10. fastspine-1.0.0/PKG-INFO +372 -0
  11. fastspine-1.0.0/README.md +340 -0
  12. fastspine-1.0.0/_docs/caching.md +214 -0
  13. fastspine-1.0.0/_docs/celery.md +263 -0
  14. fastspine-1.0.0/_docs/cli.md +176 -0
  15. fastspine-1.0.0/_docs/configuration.md +177 -0
  16. fastspine-1.0.0/_docs/database.md +206 -0
  17. fastspine-1.0.0/_docs/example.md +215 -0
  18. fastspine-1.0.0/fastspine/__init__.py +48 -0
  19. fastspine-1.0.0/fastspine/abstract/owner_base.py +16 -0
  20. fastspine-1.0.0/fastspine/alembic/__init__.py +4 -0
  21. fastspine-1.0.0/fastspine/alembic/alembic.py +95 -0
  22. fastspine-1.0.0/fastspine/alembic/config.py +40 -0
  23. fastspine-1.0.0/fastspine/boostrap.py +78 -0
  24. fastspine-1.0.0/fastspine/cache/cache_decorater.py +264 -0
  25. fastspine-1.0.0/fastspine/cache/cache_encoder.py +87 -0
  26. fastspine-1.0.0/fastspine/cache/cache_exception.py +4 -0
  27. fastspine-1.0.0/fastspine/cache/cache_model.py +32 -0
  28. fastspine-1.0.0/fastspine/cache/cache_service.py +144 -0
  29. fastspine-1.0.0/fastspine/cache/key_builder.py +134 -0
  30. fastspine-1.0.0/fastspine/cache/redis_cache.py +158 -0
  31. fastspine-1.0.0/fastspine/celery/base_task.py +106 -0
  32. fastspine-1.0.0/fastspine/celery/engine.py +52 -0
  33. fastspine-1.0.0/fastspine/cli/scoped_typer.py +47 -0
  34. fastspine-1.0.0/fastspine/ctx/ctx_pool.py +73 -0
  35. fastspine-1.0.0/fastspine/database/engine.py +131 -0
  36. fastspine-1.0.0/fastspine/decorators/contextualize_decorator.py +54 -0
  37. fastspine-1.0.0/fastspine/decorators/retry_decorator.py +66 -0
  38. fastspine-1.0.0/fastspine/decorators/upsert_decorator.py +107 -0
  39. fastspine-1.0.0/fastspine/dependencies/database.py +193 -0
  40. fastspine-1.0.0/fastspine/dependencies/profiler.py +37 -0
  41. fastspine-1.0.0/fastspine/dependencies/repository_manager.py +202 -0
  42. fastspine-1.0.0/fastspine/dependencies/services.py +140 -0
  43. fastspine-1.0.0/fastspine/exception/access_exception.py +13 -0
  44. fastspine-1.0.0/fastspine/exception/action_not_allowed_exception.py +13 -0
  45. fastspine-1.0.0/fastspine/exception/base_app_exception.py +28 -0
  46. fastspine-1.0.0/fastspine/exception/exception_handler.py +9 -0
  47. fastspine-1.0.0/fastspine/exception/not_found_exception.py +13 -0
  48. fastspine-1.0.0/fastspine/exception/security_exception.py +13 -0
  49. fastspine-1.0.0/fastspine/exception/soft_delete_exception.py +13 -0
  50. fastspine-1.0.0/fastspine/lib/__init__.py +4 -0
  51. fastspine-1.0.0/fastspine/lib/contextualize.py +352 -0
  52. fastspine-1.0.0/fastspine/lib/profiler.py +284 -0
  53. fastspine-1.0.0/fastspine/mailer/mailer_service.py +44 -0
  54. fastspine-1.0.0/fastspine/middleware/request_middleware.py +67 -0
  55. fastspine-1.0.0/fastspine/middleware/session_middleware.py +38 -0
  56. fastspine-1.0.0/fastspine/mixins/__init__.py +4 -0
  57. fastspine-1.0.0/fastspine/mixins/representable.py +12 -0
  58. fastspine-1.0.0/fastspine/mixins/soft_delete.py +41 -0
  59. fastspine-1.0.0/fastspine/mixins/timestamps.py +35 -0
  60. fastspine-1.0.0/fastspine/models/base.py +18 -0
  61. fastspine-1.0.0/fastspine/redis/client.py +23 -0
  62. fastspine-1.0.0/fastspine/repositories/abstract_repository.py +267 -0
  63. fastspine-1.0.0/fastspine/repositories/base_repository.py +422 -0
  64. fastspine-1.0.0/fastspine/repositories/external_base_repository.py +12 -0
  65. fastspine-1.0.0/fastspine/repositories/repository_manager.py +101 -0
  66. fastspine-1.0.0/fastspine/schemas/pagination_model.py +26 -0
  67. fastspine-1.0.0/fastspine/services/api_service.py +292 -0
  68. fastspine-1.0.0/fastspine/services/base_service.py +18 -0
  69. fastspine-1.0.0/fastspine/settings/__init__.py +74 -0
  70. fastspine-1.0.0/fastspine/settings/app_settings.py +5 -0
  71. fastspine-1.0.0/fastspine/settings/cache_settings.py +32 -0
  72. fastspine-1.0.0/fastspine/settings/celery_settings.py +10 -0
  73. fastspine-1.0.0/fastspine/settings/mailer_settings.py +12 -0
  74. fastspine-1.0.0/fastspine/settings/profiler_settings.py +10 -0
  75. fastspine-1.0.0/fastspine/types/__init__.py +3 -0
  76. fastspine-1.0.0/fastspine/types/types.py +6 -0
  77. fastspine-1.0.0/fastspine/util/class_util.py +110 -0
  78. fastspine-1.0.0/fastspine/util/conversion.py +37 -0
  79. fastspine-1.0.0/fastspine/util/dataframe_util.py +30 -0
  80. fastspine-1.0.0/fastspine/util/dates.py +34 -0
  81. fastspine-1.0.0/fastspine/util/debug_util.py +29 -0
  82. fastspine-1.0.0/fastspine/util/emails.py +14 -0
  83. fastspine-1.0.0/fastspine/util/files.py +29 -0
  84. fastspine-1.0.0/fastspine/util/math.py +3 -0
  85. fastspine-1.0.0/pyproject.toml +73 -0
  86. fastspine-1.0.0/tests/__init__.py +0 -0
  87. fastspine-1.0.0/tests/conftest.py +76 -0
  88. fastspine-1.0.0/tests/test_base_repository.py +299 -0
  89. fastspine-1.0.0/tests/test_base_task.py +70 -0
  90. fastspine-1.0.0/tests/test_batch_decorater.py +313 -0
  91. fastspine-1.0.0/tests/test_cache_decorater.py +356 -0
  92. fastspine-1.0.0/tests/test_cache_service.py +93 -0
  93. fastspine-1.0.0/tests/test_class_util.py +100 -0
  94. fastspine-1.0.0/tests/test_contextualize_decorator.py +305 -0
  95. fastspine-1.0.0/tests/test_ctxpool.py +62 -0
  96. fastspine-1.0.0/tests/test_database_dependencies.py +105 -0
  97. fastspine-1.0.0/tests/test_emails.py +48 -0
  98. fastspine-1.0.0/tests/test_files.py +36 -0
  99. fastspine-1.0.0/tests/test_key_builder.py +71 -0
  100. fastspine-1.0.0/tests/test_math.py +8 -0
  101. fastspine-1.0.0/tests/test_redis_cache.py +171 -0
  102. fastspine-1.0.0/tests/test_repository_manager.py +90 -0
  103. fastspine-1.0.0/tests/test_repository_manager_dependencies.py +124 -0
  104. fastspine-1.0.0/tests/test_scoped_typer.py +74 -0
  105. fastspine-1.0.0/tests/test_services_dependencies.py +118 -0
  106. fastspine-1.0.0/tests/test_session_middleware.py +77 -0
  107. fastspine-1.0.0/uv.lock +2663 -0
  108. fastspine-1.0.0/uv.toml +5 -0
@@ -0,0 +1,29 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: astral-sh/setup-uv@v6
14
+ - run: uv sync --locked --group dev
15
+ - run: uv run pytest
16
+ - run: uv run ruff check .
17
+ - run: uv run mypy fastspine
18
+
19
+ publish:
20
+ needs: test
21
+ runs-on: ubuntu-latest
22
+ environment: pypi
23
+ permissions:
24
+ id-token: write # required for PyPI Trusted Publishing
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+ - uses: astral-sh/setup-uv@v6
28
+ - run: uv build
29
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,167 @@
1
+ # FastSpine .gitignore
2
+ # Python library project
3
+
4
+ #########################
5
+ #### CUSTOM RULES ####
6
+ #########################
7
+
8
+ # Environment files
9
+ .env*
10
+ .venv/
11
+ venv/
12
+ env/
13
+
14
+ # Data files
15
+ *.csv
16
+ *.xlsx
17
+ *.xls
18
+ data/
19
+ backup/
20
+ volumes/
21
+ notebooks/data/
22
+ tmp/
23
+
24
+ # Logs and profiles
25
+ logs/
26
+ *.log
27
+ report.json
28
+
29
+ # IDE settings (keep some config)
30
+ !.vscode/
31
+ !.devcontainer/
32
+ !.flake8
33
+
34
+ #########################
35
+ #### PYTHON ####
36
+ #########################
37
+
38
+ # Byte-compiled / optimized / DLL files
39
+ __pycache__/
40
+ *.py[cod]
41
+ *$py.class
42
+
43
+ # C extensions
44
+ *.so
45
+
46
+ # Distribution / packaging
47
+ .Python
48
+ build/
49
+ develop-eggs/
50
+ dist/
51
+ downloads/
52
+ eggs/
53
+ .eggs/
54
+ lib64/
55
+ parts/
56
+ sdist/
57
+ var/
58
+ wheels/
59
+ *.egg-info/
60
+ .installed.cfg
61
+ *.egg
62
+ MANIFEST
63
+
64
+ # Unit test / coverage reports
65
+ htmlcov/
66
+ .tox/
67
+ .nox/
68
+ .coverage
69
+ .coverage.*
70
+ .cache
71
+ nosetests.xml
72
+ coverage.xml
73
+ *.cover
74
+ *.py,cover
75
+ .hypothesis/
76
+ .pytest_cache/
77
+ cover/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ .python-version
88
+
89
+ # Celery
90
+ celerybeat-schedule
91
+ celerybeat.pid
92
+
93
+ # Environments
94
+ ENV/
95
+ env.bak/
96
+ venv.bak/
97
+
98
+ # mkdocs
99
+ /site
100
+
101
+ # mypy
102
+ .mypy_cache/
103
+ .dmypy.json
104
+ dmypy.json
105
+
106
+ # Pyre
107
+ .pyre/
108
+
109
+ # pytype
110
+ .pytype/
111
+
112
+ # Cython debug symbols
113
+ cython_debug/
114
+
115
+ #########################
116
+ #### IDE / EDITORS ####
117
+ #########################
118
+
119
+ # JetBrains IDEs
120
+ .idea/
121
+ *.iws
122
+ *.iml
123
+ *.ipr
124
+ out/
125
+
126
+ # VSCode
127
+ .vscode/*
128
+ !.vscode/settings.json
129
+ !.vscode/tasks.json
130
+ !.vscode/launch.json
131
+ !.vscode/extensions.json
132
+ *.code-workspace
133
+ .history/
134
+
135
+ #########################
136
+ #### OS FILES ####
137
+ #########################
138
+
139
+ # macOS
140
+ .DS_Store
141
+ .AppleDouble
142
+ .LSOverride
143
+ Icon
144
+ ._*
145
+ .Trashes
146
+ .apdisk
147
+
148
+ # Windows
149
+ Thumbs.db
150
+ *.stackdump
151
+ [Dd]esktop.ini
152
+ $RECYCLE.BIN/
153
+ *.lnk
154
+
155
+ # Linux
156
+ *~
157
+ *.orig
158
+
159
+ #########################
160
+ #### PROJECT SPECIFIC ####
161
+ #########################
162
+
163
+ # Keep important config files
164
+ !.gitlab/
165
+ !.flake8
166
+ !.devcontainer/
167
+ !launch.json
@@ -0,0 +1,58 @@
1
+ ---
2
+ default_language_version:
3
+ python: python3.12
4
+ default_stages: [pre-commit, pre-push]
5
+ repos:
6
+ - repo: https://github.com/pre-commit/pre-commit-hooks
7
+ rev: v4.6.0
8
+ hooks:
9
+ - id: check-added-large-files # Prevent giant files from being committed
10
+ args: [--maxkb=5000]
11
+ - id: check-json # Attempts to load all json files to verify syntax
12
+ exclude: ^.vscode
13
+ - id: check-merge-conflict # Check for files that contain merge conflict strings
14
+ - id: check-toml # Attempts to load all TOML files to verify syntax
15
+ - id: detect-private-key # Checks for the existence of private keys
16
+ exclude: .env
17
+ - id: pretty-format-json # Checks that all your JSON files are pretty. "Pretty" here means that keys are sorted and indented. You can configure this with the following commandline options
18
+ args: [--autofix]
19
+ exclude: ^.vscode|notebooks
20
+ - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
21
+ rev: 0.2.3
22
+ hooks:
23
+ - id: yamlfmt
24
+ - repo: https://github.com/MarcoGorelli/polars-upgrade
25
+ rev: 0.3.2 # polars-upgrade version goes here
26
+ hooks:
27
+ - id: polars-upgrade
28
+ args: [--target-version=0.20.15] # Polars version goes here
29
+ - repo: https://github.com/astral-sh/ruff-pre-commit
30
+ # Ruff version.
31
+ rev: v0.15.0
32
+ hooks:
33
+ # Run the linter.
34
+ - id: ruff
35
+ args: [--fix]
36
+ # Run the formatter.
37
+ - id: ruff-format
38
+ - repo: local
39
+ hooks:
40
+ - id: uv-check
41
+ name: uv check
42
+ entry: uv check
43
+ language: system
44
+ types: [python]
45
+ pass_filenames: false
46
+ - id: uv-sync-check
47
+ name: uv sync check
48
+ entry: uv sync --check
49
+ language: system
50
+ types: [python]
51
+ pass_filenames: false
52
+ - id: deptry
53
+ name: deptry
54
+ description: deptry is a command line tool to check for issues with dependencies in a Python project, such as unused or missing dependencies.
55
+ entry: uv run deptry .
56
+ language: system
57
+ always_run: true
58
+ pass_filenames: false
@@ -0,0 +1,114 @@
1
+ line-length = 120
2
+ output-format = "grouped"
3
+ # Assume Python 3.12
4
+ target-version = "py312"
5
+
6
+ # A list of file patterns to include when linting.
7
+ include = ["**/pyproject.toml", "*.ipynb", "*.py", "*.pyi"]
8
+
9
+ # Rules: https://beta.ruff.rs/docs/rules/
10
+ # Enable Pyflakes `E` and `F` codes by default.
11
+ lint.select = [
12
+ #default
13
+ "E", # pycodestyle error
14
+ "F", # flake8 error
15
+ #extra
16
+ "A", # bultin shadowing
17
+ "B", # flake8 bugbear
18
+ "BLE", # aboid bare excepts
19
+ "C4", # simplify comprehensions
20
+ "D", # docstyle
21
+ "DTZ", # datetime errors
22
+ "FBT", # avoid boolean trap
23
+ "G", # logging format
24
+ "I", # flake8-isort import
25
+ "N", # pep8 naming
26
+ "RET", # return statements values
27
+ "S", # bandit
28
+ "YTT", # wrong usage of sys.info
29
+ "B", # flake8-bugbear
30
+ ]
31
+
32
+ lint.ignore = [
33
+ "B008", # do not perform function calls in argument defaults
34
+ "BLE001", #Do not catch blind exception: {name}
35
+ "C901", # too complex
36
+ "D107", # Missing docstring in __init__
37
+ "D203", # 1 blank line required before class docstring
38
+ "D213", # Multi-line docstring summary should start at the second line
39
+ "D417", # Missing argument description in the docstring for {definition}: {name}
40
+ "D100",
41
+ "FBT001", # Booleans as positional arguments
42
+ "FBT002", # Booleans as positional arguments
43
+ "B005", # Strip with multi characters
44
+ "N805", # First argument of a method should be self
45
+ "S608", # SQL injections
46
+ "B007", # Loop control variable
47
+ "B023", # Need to be checked
48
+ "E501", # Handled by Ruff formatter
49
+ "W191", # Handled by Ruff formatter
50
+ "E111", # Handled by Ruff formatter
51
+ "E114", # Handled by Ruff formatter
52
+ "E117", # Handled by Ruff formatter
53
+ "D206", # Handled by Ruff formatter
54
+ "D300", # Handled by Ruff formatter
55
+ "Q000", # Handled by Ruff formatter
56
+ "Q001", # Handled by Ruff formatter
57
+ "Q002", # Handled by Ruff formatter
58
+ "Q003", # Handled by Ruff formatter
59
+ "COM812", # Handled by Ruff formatter
60
+ "COM819", # Handled by Ruff formatter
61
+ "ISC001", # Handled by Ruff formatter
62
+ "ISC002", # Handled by Ruff formatter
63
+ ]
64
+
65
+ # Always autofix, but never try to fix `F401` (unused imports).
66
+ fix = true
67
+ lint.unfixable = ["F401"]
68
+ # Allow unused variables when underscore-prefixed.
69
+ lint.dummy-variable-rgx = ">=(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
70
+ # Exclude a variety of commonly ignored directories (you can have some problems)
71
+ exclude = [
72
+ "docs",
73
+ ".direnv",
74
+ ".eggs",
75
+ ".git",
76
+ ".hg",
77
+ ".mypy_cache",
78
+ ".nox",
79
+ ".pants.d",
80
+ ".ruff_cache",
81
+ ".svn",
82
+ ".tox",
83
+ ".venv",
84
+ "__pypackages__",
85
+ "_build",
86
+ "buck-out",
87
+ "build",
88
+ "dist",
89
+ "node_modules",
90
+ "venv",
91
+ ".venv",
92
+ "notebooks",
93
+ ".env",
94
+ "alembic"
95
+ ]
96
+
97
+ [lint.mccabe]
98
+ # Unlike Flake8, default to a complexity level of 10.
99
+ max-complexity = 10
100
+
101
+ [lint.flake8-quotes]
102
+ docstring-quotes = "double"
103
+
104
+ [lint.pydocstyle]
105
+ convention = "google"
106
+
107
+ [lint.per-file-ignores]
108
+ "__init__.py" = ["D104", "F401", "I002"]
109
+ "test*.py" = ["S101", "T201"]
110
+
111
+ [format]
112
+ docstring-code-format = true
113
+ indent-style = "space"
114
+ quote-style = "double"
@@ -0,0 +1,50 @@
1
+ {
2
+ "recommendations": [
3
+ "alefragnani.bookmarks",
4
+ "streetsidesoftware.code-spell-checker",
5
+ "ms-azuretools.vscode-docker",
6
+ "docsmsft.docs-markdown",
7
+ "docsmsft.docs-preview",
8
+ "docsmsft.docs-yaml",
9
+ "mikestead.dotenv",
10
+ "sleistner.vscode-fileutils",
11
+ "mhutchie.git-graph",
12
+ "donjayamanne.githistory",
13
+ "github.codespaces",
14
+ "github.copilot",
15
+ "github.remotehub",
16
+ "eamodio.gitlens",
17
+ "oderwat.indent-rainbow",
18
+ "streetsidesoftware.code-spell-checker-italian",
19
+ "ms-toolsai.jupyter",
20
+ "ms-toolsai.jupyter-keymap",
21
+ "ms-vsliveshare.vsliveshare",
22
+ "yzhang.markdown-all-in-one",
23
+ "pkief.material-icon-theme",
24
+ "s3gf4ult.monokai-vibrant",
25
+ "pnp.polacode",
26
+ "ms-ossdata.vscode-postgresql",
27
+ "ms-python.vscode-pylance",
28
+ "ms-python.python",
29
+ "njpwerner.autodocstring",
30
+ "kevinrose.vsc-python-indent",
31
+ "2gua.rainbow-brackets",
32
+ "mechatroner.rainbow-csv",
33
+ "ms-vscode-remote.remote-containers",
34
+ "ms-vscode-remote.remote-ssh",
35
+ "ms-vscode-remote.remote-ssh-edit",
36
+ "ms-vscode-remote.remote-wsl",
37
+ "ms-vscode-remote.vscode-remote-extensionpack",
38
+ "liveecommerce.vscode-remote-workspace",
39
+ "medo64.render-crlf",
40
+ "stkb.rewrap",
41
+ "mtxr.sqltools-driver-pg",
42
+ "mtxr.sqltools-driver-sqlite",
43
+ "arjun.swagger-viewer",
44
+ "wayou.vscode-todo-highlight",
45
+ "gruntfuggly.todo-tree",
46
+ "visualstudioexptteam.vscodeintellicode",
47
+ "webhint.vscode-webhint",
48
+ "redhat.vscode-yaml",
49
+ ]
50
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "name": "Debug sandbox.py",
6
+ "type": "python",
7
+ "request": "launch",
8
+ "program": "${workspaceFolder}/sandbox.py",
9
+ "console": "integratedTerminal"
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
3
+ "python.linting.flake8Enabled": true,
4
+ "python.linting.mypyEnabled": false,
5
+ "python.linting.enabled": true,
6
+ "python.testing.unittestEnabled": false,
7
+ "python.testing.pytestEnabled": true,
8
+ "editor.formatOnSave": true,
9
+ "files.autoSave": "afterDelay",
10
+ "python.formatting.provider": "none",
11
+ "python.terminal.activateEnvironment": false,
12
+ "autoDocstring.customTemplatePath": ".vscode/google_no_types.mustache",
13
+ "window.title": "CfP Assistant ${rootName} ${separator} ${activeEditorShort}",
14
+ "[python]": {
15
+ "editor.insertSpaces": true,
16
+ "editor.tabSize": 4,
17
+ "editor.defaultFormatter": "ms-python.black-formatter"
18
+ },
19
+ "files.exclude": {
20
+ "**/__pycache__": true
21
+ },
22
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Aleksandar Pavlovic
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,34 @@
1
+ PHONY: install_pre_commit
2
+ install_pre_commit: ## configure and install pre commit tool
3
+ uv run pre-commit install
4
+
5
+ .PHONY: uninstall_pre_commit
6
+ uninstall_pre_commit: ## configure and install pre commit tool
7
+ uv run pre-commit uninstall
8
+
9
+ .PHONY: install
10
+ install: ## Install the project and it's development dependencies
11
+ uv sync --group dev
12
+
13
+ .PHONY: ruff
14
+ ruff: ## Run ruff linter
15
+ uv run ruff check .
16
+ .PHONY: ruff-formatter
17
+ ruff-formatter: ## Run ruff linter
18
+ uv run ruff format .
19
+
20
+ .PHONY: deptry
21
+ deptry: ## Run deptry dependency checker
22
+ uv run deptry .
23
+
24
+ .PHONY: test
25
+ test: ## Run unittests with pytest
26
+ uv run pytest
27
+
28
+ .PHONY: check
29
+ check: test ruff-formatter ruff deptry mypy ## Run all checks
30
+
31
+ .PHONY: mypy
32
+ mypy: ## Run mypy type checker
33
+ uv run mypy fastspine
34
+