datajunction-reflection 0.0.1a98__tar.gz → 0.0.1a100__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.

Potentially problematic release.


This version of datajunction-reflection might be problematic. Click here for more details.

Files changed (28) hide show
  1. datajunction_reflection-0.0.1a100/.pre-commit-config.yaml +53 -0
  2. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/PKG-INFO +1 -1
  3. datajunction_reflection-0.0.1a100/datajunction_reflection/__about__.py +5 -0
  4. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/datajunction_reflection/config.py +1 -0
  5. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/datajunction_reflection/worker/app.py +1 -0
  6. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/datajunction_reflection/worker/tasks.py +1 -0
  7. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/datajunction_reflection/worker/utils.py +1 -0
  8. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/tests/conftest.py +1 -0
  9. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/tests/test_tasks.py +1 -0
  10. datajunction_reflection-0.0.1a98/.pre-commit-config.yaml +0 -101
  11. datajunction_reflection-0.0.1a98/datajunction_reflection/__about__.py +0 -4
  12. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/.coveragerc +0 -0
  13. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/.flake8 +0 -0
  14. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/.gitignore +0 -0
  15. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/.isort.cfg +0 -0
  16. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/.pylintrc +0 -0
  17. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/CODE_OF_CONDUCT.md +0 -0
  18. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/Dockerfile +0 -0
  19. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/LICENSE +0 -0
  20. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/Makefile +0 -0
  21. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/README.md +0 -0
  22. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/datajunction_reflection/__init__.py +0 -0
  23. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/datajunction_reflection/worker/__init__.py +0 -0
  24. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/pdm.lock +0 -0
  25. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/pyproject.toml +0 -0
  26. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/setup.cfg +0 -0
  27. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/tests/__init__.py +0 -0
  28. {datajunction_reflection-0.0.1a98 → datajunction_reflection-0.0.1a100}/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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datajunction-reflection
3
- Version: 0.0.1a98
3
+ Version: 0.0.1a100
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>
@@ -0,0 +1,5 @@
1
+ """
2
+ Version for Hatch
3
+ """
4
+
5
+ __version__ = "0.0.1a100"
@@ -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
@@ -1,4 +1,5 @@
1
1
  """Test configuration."""
2
+
2
3
  import threading
3
4
 
4
5
  import pytest
@@ -1,4 +1,5 @@
1
1
  """Tests the celery app."""
2
+
2
3
  from unittest.mock import call
3
4
 
4
5
  from datajunction_reflection.worker.tasks import reflect_source, refresh
@@ -1,101 +0,0 @@
1
- files: ^datajunction-reflection/
2
-
3
- repos:
4
- - repo: https://github.com/pre-commit/pre-commit-hooks
5
- rev: v4.1.0
6
- hooks:
7
- - id: trailing-whitespace
8
- - id: check-added-large-files
9
- - id: check-ast
10
- exclude: ^templates/
11
- - id: check-json
12
- - id: check-merge-conflict
13
- - id: check-xml
14
- - id: check-yaml
15
- - id: debug-statements
16
- exclude: ^templates/
17
- - id: end-of-file-fixer
18
- exclude: openapi.json
19
- - id: requirements-txt-fixer
20
- exclude: ^templates/
21
- - id: mixed-line-ending
22
- args: ['--fix=auto'] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows
23
-
24
- ## If you want to avoid flake8 errors due to unused vars or imports:
25
- # - repo: https://github.com/myint/autoflake.git
26
- # rev: v1.4
27
- # hooks:
28
- # - id: autoflake
29
- # args: [
30
- # --in-place,
31
- # --remove-all-unused-imports,
32
- # --remove-unused-variables,
33
- # ]
34
-
35
- - repo: https://github.com/pycqa/isort
36
- rev: 5.12.0
37
- hooks:
38
- - id: isort
39
-
40
- - repo: https://github.com/psf/black
41
- rev: 22.8.0
42
- hooks:
43
- - id: black
44
- language_version: python3
45
- exclude: ^templates/
46
-
47
- ## If like to embrace black styles even in the docs:
48
- # - repo: https://github.com/asottile/blacken-docs
49
- # rev: v1.9.1
50
- # hooks:
51
- # - id: blacken-docs
52
- # additional_dependencies: [black]
53
-
54
- - repo: https://github.com/PyCQA/flake8
55
- rev: 3.9.2
56
- hooks:
57
- - id: flake8
58
- exclude: ^templates/
59
- ## You can add flake8 plugins via `additional_dependencies`:
60
- # additional_dependencies: [flake8-bugbear]
61
-
62
- - repo: https://github.com/pre-commit/mirrors-mypy
63
- rev: 'v0.981' # Use the sha / tag you want to point at
64
- hooks:
65
- - id: mypy
66
- exclude: ^templates/
67
- additional_dependencies:
68
- - types-requests
69
- - types-freezegun
70
- - types-python-dateutil
71
- - types-setuptools
72
- - types-PyYAML
73
- - types-tabulate
74
- - repo: https://github.com/asottile/add-trailing-comma
75
- rev: v2.2.1
76
- hooks:
77
- - id: add-trailing-comma
78
- #- repo: https://github.com/asottile/reorder_python_imports
79
- # rev: v2.5.0
80
- # hooks:
81
- # - id: reorder-python-imports
82
- # args: [--application-directories=.:src]
83
- ## Removing this for now due to this bug: https://github.com/hadialqattan/pycln/issues/249
84
- # - repo: https://github.com/hadialqattan/pycln
85
- # rev: v2.4.0 # Possible releases: https://github.com/hadialqattan/pycln/tags
86
- # hooks:
87
- # - id: pycln
88
- # args: [--config=pyproject.toml]
89
- # exclude: ^templates/
90
- - repo: local
91
- hooks:
92
- - id: pylint
93
- name: pylint
94
- entry: pylint --disable=duplicate-code,use-implicit-booleaness-not-comparison
95
- language: system
96
- types: [python]
97
- exclude: ^templates/
98
- - repo: https://github.com/pdm-project/pdm
99
- rev: 2.6.1
100
- hooks:
101
- - id: pdm-lock-check
@@ -1,4 +0,0 @@
1
- """
2
- Version for Hatch
3
- """
4
- __version__ = "0.0.1a98"