datajunction-reflection 0.0.1a74__tar.gz → 0.0.34__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 (29) hide show
  1. datajunction_reflection-0.0.34/.pre-commit-config.yaml +53 -0
  2. datajunction_reflection-0.0.34/Dockerfile +15 -0
  3. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/PKG-INFO +4 -5
  4. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/datajunction_reflection/__about__.py +2 -1
  5. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/datajunction_reflection/config.py +1 -0
  6. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/datajunction_reflection/worker/app.py +1 -0
  7. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/datajunction_reflection/worker/tasks.py +1 -0
  8. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/datajunction_reflection/worker/utils.py +1 -0
  9. datajunction_reflection-0.0.34/pdm.lock +1321 -0
  10. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/pyproject.toml +2 -3
  11. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/tests/conftest.py +1 -0
  12. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/tests/test_tasks.py +1 -0
  13. datajunction_reflection-0.0.1a74/.pre-commit-config.yaml +0 -100
  14. datajunction_reflection-0.0.1a74/Dockerfile +0 -4
  15. datajunction_reflection-0.0.1a74/pdm.lock +0 -1276
  16. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/.coveragerc +0 -0
  17. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/.flake8 +0 -0
  18. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/.gitignore +0 -0
  19. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/.isort.cfg +0 -0
  20. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/.pylintrc +0 -0
  21. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/CODE_OF_CONDUCT.md +0 -0
  22. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/LICENSE +0 -0
  23. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/Makefile +0 -0
  24. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/README.md +0 -0
  25. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/datajunction_reflection/__init__.py +0 -0
  26. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/datajunction_reflection/worker/__init__.py +0 -0
  27. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/setup.cfg +0 -0
  28. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/tests/__init__.py +0 -0
  29. {datajunction_reflection-0.0.1a74 → datajunction_reflection-0.0.34}/tox.ini +0 -0
@@ -0,0 +1,53 @@
1
+ files: ^datajunction-reflection/
2
+
3
+ repos:
4
+ - repo: https://github.com/pre-commit/pre-commit-hooks
5
+ rev: v5.0.0
6
+ hooks:
7
+ - id: trailing-whitespace
8
+ - id: check-ast
9
+ exclude: ^templates/
10
+ - id: check-merge-conflict
11
+ - id: debug-statements
12
+ exclude: ^templates/
13
+ - id: requirements-txt-fixer
14
+ exclude: ^templates/
15
+
16
+ - repo: https://github.com/astral-sh/ruff-pre-commit
17
+ rev: v0.11.10
18
+ hooks:
19
+ - id: ruff
20
+ args: [ --fix ]
21
+ - id: ruff-format
22
+
23
+ - repo: https://github.com/pre-commit/mirrors-mypy
24
+ rev: 'v0.981' # Use the sha / tag you want to point at
25
+ hooks:
26
+ - id: mypy
27
+ exclude: ^templates/
28
+ additional_dependencies:
29
+ - types-requests
30
+ - types-freezegun
31
+ - types-python-dateutil
32
+ - types-setuptools
33
+ - types-PyYAML
34
+ - types-tabulate
35
+
36
+ - repo: https://github.com/asottile/add-trailing-comma
37
+ rev: v3.1.0
38
+ hooks:
39
+ - id: add-trailing-comma
40
+
41
+ - repo: https://github.com/kynan/nbstripout
42
+ rev: 0.6.1
43
+ hooks:
44
+ - id: nbstripout
45
+ - repo: https://github.com/tomcatling/black-nb
46
+ rev: "0.7"
47
+ hooks:
48
+ - id: black-nb
49
+ files: '\.ipynb$'
50
+ - repo: https://github.com/pdm-project/pdm
51
+ rev: 2.6.1
52
+ hooks:
53
+ - id: pdm-lock-check
@@ -0,0 +1,15 @@
1
+ FROM python:3.11-slim
2
+
3
+ RUN addgroup --system celery && \
4
+ adduser --system --ingroup celery --home /code celery
5
+
6
+ WORKDIR /code
7
+
8
+ COPY . .
9
+
10
+ RUN pip install --no-cache-dir -e .
11
+
12
+ RUN chown -R celery:celery /code
13
+ USER celery
14
+
15
+ CMD ["celery", "--app", "datajunction_reflection.celery_app", "beat", "--loglevel=info"]
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: datajunction-reflection
3
- Version: 0.0.1a74
3
+ Version: 0.0.34
4
4
  Summary: OSS Implementation of a DataJunction Reflection Service
5
5
  Project-URL: repository, https://github.com/DataJunction/dj
6
6
  Author-email: DataJunction Authors <roberto@dealmeida.net>
@@ -8,16 +8,15 @@ License: MIT
8
8
  License-File: LICENSE
9
9
  Classifier: License :: OSI Approved :: MIT License
10
10
  Classifier: Operating System :: OS Independent
11
- Classifier: Programming Language :: Python :: 3.8
12
- Classifier: Programming Language :: Python :: 3.9
13
11
  Classifier: Programming Language :: Python :: 3.10
14
12
  Classifier: Programming Language :: Python :: 3.11
15
13
  Classifier: Programming Language :: Python :: 3.12
16
- Requires-Python: <4.0,>=3.8
14
+ Requires-Python: <4.0,>=3.10
17
15
  Requires-Dist: celery[redis]>=5.2.3
18
16
  Requires-Dist: importlib-metadata
19
17
  Requires-Dist: pydantic<2.0
20
18
  Requires-Dist: python-dotenv==0.19.2
19
+ Requires-Dist: pytz
21
20
  Requires-Dist: requests>=2.26.0
22
21
  Provides-Extra: uvicorn
23
22
  Requires-Dist: uvicorn[standard]>=0.21.1; extra == 'uvicorn'
@@ -1,4 +1,5 @@
1
1
  """
2
2
  Version for Hatch
3
3
  """
4
- __version__ = "0.0.1a74"
4
+
5
+ __version__ = "0.0.34"
@@ -1,4 +1,5 @@
1
1
  """Reflection service settings."""
2
+
2
3
  from functools import lru_cache
3
4
 
4
5
  from pydantic import BaseSettings
@@ -2,6 +2,7 @@
2
2
  Celery app that does the polling of nodes in DJ and then subsequent
3
3
  queueing of reflection tasks.
4
4
  """
5
+
5
6
  from datajunction_reflection.worker.utils import get_celery
6
7
 
7
8
  celery_app = get_celery()
@@ -1,4 +1,5 @@
1
1
  """Reflection service celery tasks."""
2
+
2
3
  from abc import ABC
3
4
 
4
5
  import celery
@@ -1,4 +1,5 @@
1
1
  """Utility functions for retrieving API clients."""
2
+
2
3
  import os
3
4
 
4
5
  from celery import Celery