rastr 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.
Potentially problematic release.
This version of rastr might be problematic. Click here for more details.
- rastr-0.1.0/.copier-answers.yml +17 -0
- rastr-0.1.0/.github/ISSUE_TEMPLATE/bug-report.md +20 -0
- rastr-0.1.0/.github/ISSUE_TEMPLATE/enhancement.md +12 -0
- rastr-0.1.0/.github/copilot-instructions.md +93 -0
- rastr-0.1.0/.github/workflows/ci.yml +125 -0
- rastr-0.1.0/.github/workflows/release.yml +32 -0
- rastr-0.1.0/.gitignore +241 -0
- rastr-0.1.0/.pre-commit-config.yaml +138 -0
- rastr-0.1.0/.python-version +1 -0
- rastr-0.1.0/LICENSE +21 -0
- rastr-0.1.0/PKG-INFO +44 -0
- rastr-0.1.0/README.md +10 -0
- rastr-0.1.0/docs/index.md +3 -0
- rastr-0.1.0/mkdocs.yml +3 -0
- rastr-0.1.0/pyproject.toml +247 -0
- rastr-0.1.0/requirements.txt +1242 -0
- rastr-0.1.0/src/archive/.gitkeep +0 -0
- rastr-0.1.0/src/notebooks/.gitkeep +0 -0
- rastr-0.1.0/src/rastr/__init__.py +0 -0
- rastr-0.1.0/src/rastr/_version.py +21 -0
- rastr-0.1.0/src/rastr/arr/__init__.py +0 -0
- rastr-0.1.0/src/rastr/arr/fill.py +24 -0
- rastr-0.1.0/src/rastr/create.py +261 -0
- rastr-0.1.0/src/rastr/gis/__init__.py +0 -0
- rastr-0.1.0/src/rastr/gis/fishnet.py +72 -0
- rastr-0.1.0/src/rastr/gis/smooth.py +139 -0
- rastr-0.1.0/src/rastr/io.py +29 -0
- rastr-0.1.0/src/rastr/meta.py +48 -0
- rastr-0.1.0/src/rastr/raster.py +654 -0
- rastr-0.1.0/src/scripts/.gitkeep +0 -0
- rastr-0.1.0/tasks/ABOUT_TASKS.md +8 -0
- rastr-0.1.0/tasks/dev_sync.ps1 +4 -0
- rastr-0.1.0/tasks/scripts/activate_venv.sh +37 -0
- rastr-0.1.0/tasks/scripts/configure_project.sh +54 -0
- rastr-0.1.0/tasks/scripts/dev_sync.sh +9 -0
- rastr-0.1.0/tasks/scripts/install_backend.sh +64 -0
- rastr-0.1.0/tasks/scripts/install_venv.sh +37 -0
- rastr-0.1.0/tasks/scripts/recover_corrupt_venv.sh +55 -0
- rastr-0.1.0/tasks/scripts/sh_runner.ps1 +37 -0
- rastr-0.1.0/tasks/scripts/sync_requirements.sh +12 -0
- rastr-0.1.0/tasks/scripts/sync_template.sh +24 -0
- rastr-0.1.0/tasks/shims/activate_venv +2 -0
- rastr-0.1.0/tasks/shims/activate_venv.cmd +12 -0
- rastr-0.1.0/tasks/shims/activate_venv.ps1 +3 -0
- rastr-0.1.0/tasks/shims/configure_project +2 -0
- rastr-0.1.0/tasks/shims/configure_project.cmd +12 -0
- rastr-0.1.0/tasks/shims/configure_project.ps1 +3 -0
- rastr-0.1.0/tasks/shims/dev_sync +2 -0
- rastr-0.1.0/tasks/shims/dev_sync.cmd +12 -0
- rastr-0.1.0/tasks/shims/dev_sync.ps1 +3 -0
- rastr-0.1.0/tasks/shims/install_backend +2 -0
- rastr-0.1.0/tasks/shims/install_backend.cmd +12 -0
- rastr-0.1.0/tasks/shims/install_backend.ps1 +3 -0
- rastr-0.1.0/tasks/shims/install_venv +2 -0
- rastr-0.1.0/tasks/shims/install_venv.cmd +12 -0
- rastr-0.1.0/tasks/shims/install_venv.ps1 +3 -0
- rastr-0.1.0/tasks/shims/recover_corrupt_venv +2 -0
- rastr-0.1.0/tasks/shims/recover_corrupt_venv.cmd +12 -0
- rastr-0.1.0/tasks/shims/recover_corrupt_venv.ps1 +3 -0
- rastr-0.1.0/tasks/shims/sync_requirements +2 -0
- rastr-0.1.0/tasks/shims/sync_requirements.cmd +12 -0
- rastr-0.1.0/tasks/shims/sync_requirements.ps1 +3 -0
- rastr-0.1.0/tasks/shims/sync_template +2 -0
- rastr-0.1.0/tasks/shims/sync_template.cmd +12 -0
- rastr-0.1.0/tasks/shims/sync_template.ps1 +3 -0
- rastr-0.1.0/tasks/sync_template.ps1 +4 -0
- rastr-0.1.0/tests/assets/.gitkeep +0 -0
- rastr-0.1.0/tests/assets/pga_g_clipped.grd +0 -0
- rastr-0.1.0/tests/assets/pga_g_clipped.tif +0 -0
- rastr-0.1.0/tests/conftest.py +12 -0
- rastr-0.1.0/tests/rastr/.gitkeep +0 -0
- rastr-0.1.0/tests/rastr/gis/test_fishnet.py +84 -0
- rastr-0.1.0/tests/rastr/gis/test_smooth.py +172 -0
- rastr-0.1.0/tests/rastr/regression_test_data/test_plot_raster.png +0 -0
- rastr-0.1.0/tests/rastr/regression_test_data/test_write_raster_to_file.tif +0 -0
- rastr-0.1.0/tests/rastr/test_create.py +584 -0
- rastr-0.1.0/tests/rastr/test_io.py +53 -0
- rastr-0.1.0/tests/rastr/test_meta.py +72 -0
- rastr-0.1.0/tests/rastr/test_raster.py +873 -0
- rastr-0.1.0/uv.lock +3428 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Changes here will be overwritten by Copier
|
|
2
|
+
_commit: v0.5.6
|
|
3
|
+
_src_path: git+https://bitbucket.org/tonkintaylor/python-template
|
|
4
|
+
is_advanced: true
|
|
5
|
+
is_confluence_used: false
|
|
6
|
+
is_doc_used: false
|
|
7
|
+
is_jira_used: false
|
|
8
|
+
is_projectwide_config_used: false
|
|
9
|
+
is_rstyle_config_used: false
|
|
10
|
+
is_sonarqube_used: false
|
|
11
|
+
is_ttpy_namespace: false
|
|
12
|
+
max_line_length: '88'
|
|
13
|
+
name_slug: rastr
|
|
14
|
+
project_name: rastr
|
|
15
|
+
project_short_description: Geospatial Raster datatype library for Python.
|
|
16
|
+
py_version: 3.12.11
|
|
17
|
+
tt_job_num: YYYTTNZ.0700
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug Report
|
|
3
|
+
about: Describe a bug or anything else that seems wrong
|
|
4
|
+
title: ''
|
|
5
|
+
labels: 'bug'
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
**Background**
|
|
10
|
+
Give some context for how you encountered the problem. What were you doing?
|
|
11
|
+
|
|
12
|
+
**Summary of the problem**
|
|
13
|
+
A clear and concise description of the problem that seems to be happening.
|
|
14
|
+
|
|
15
|
+
**Expected behaviour**
|
|
16
|
+
What did you expect to happen instead?
|
|
17
|
+
|
|
18
|
+
**Reproduction**
|
|
19
|
+
Are you able to reproduce the error or is it intermittent? Which version of rastr
|
|
20
|
+
are you using? Which operating system are you using?
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Enhancement Request
|
|
3
|
+
about: A high-level description of a feature or other enhancement you'd like
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
**Motivation**
|
|
9
|
+
A clear and concise description of what benefit you would get from this enhancement.
|
|
10
|
+
|
|
11
|
+
**Summary**
|
|
12
|
+
A clear and concise description of what you want to happen, at a high level.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Custom Instructions
|
|
2
|
+
|
|
3
|
+
## General Guidelines
|
|
4
|
+
|
|
5
|
+
- We are using Windows for development and Linux for deployment/CI. When running commands in terminal, use Windows commands for local development (like ";" instead of "&&" to separate commands) and Linux commands when running in CI environments.
|
|
6
|
+
- Every time I ask you to fix linter errors and provide the error messages, update the Linter section in `.github/copilot-instructions.md` accordingly. Use concise, oneliner instruction. Ensure your future responses avoid repeating the same errors.
|
|
7
|
+
- Never create notebooks (ipynb files) unless asked explicitly.
|
|
8
|
+
|
|
9
|
+
## Testing
|
|
10
|
+
|
|
11
|
+
- Write unit tests using `pytest` inside `tests/`, structured based on `src/`.
|
|
12
|
+
- Example: `src/x/y/z` → `tests/x/y/test_z.py`
|
|
13
|
+
- Use test fixtures and group tests into classes when appropriate.
|
|
14
|
+
- After modifying a function, run its unit tests using pytest.
|
|
15
|
+
- Run tests in virtual environment: `.\.venv\Scripts\activate; python -m pytest tests/path/to/test_file.py -v`
|
|
16
|
+
|
|
17
|
+
## Python
|
|
18
|
+
|
|
19
|
+
- We use Python 3.12, so ensure that the code is compatible and up to date with this version.
|
|
20
|
+
- When adding a new package that requires installation, list it under dependencies in `pyproject.toml`, then run `tasks\dev_sync.ps1`.
|
|
21
|
+
- Limit line length to 100 characters.
|
|
22
|
+
- We are using uv to install packages.
|
|
23
|
+
- Never create functions that return more than one output value.
|
|
24
|
+
- Never return tuples; use dictionaries for multiple return values.
|
|
25
|
+
- Do not add exceptions to functions unless explicitly requested.
|
|
26
|
+
- Prefer to type hint strictly with the likes of `Literal["a", "b"]` instead of hinting broader types like `str`. This means the constraints on the input arguments to a function can reside in the type annotation rather than the docstring. Consider @validate_call (from pydantic import validate_call) to avoid boilerplate case-checking in such cases.
|
|
27
|
+
- Refrain from backslash unescaping in raw strings (e.g., `r"\\path"` should be `r"\path"`).
|
|
28
|
+
- When writing scripts, always use "Scripting Style" (Top-Level Code) unless stated otherwise. Write code directly at the module level instead of wrapping in functions or `if __name__ == "__main__":` blocks.
|
|
29
|
+
- For scripts that need to access package files (e.g., templates, data files):
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
from importlib.resources import files
|
|
33
|
+
|
|
34
|
+
# Define package path as a module-level constant
|
|
35
|
+
PACKAGE_PATH = files('package.subpackage.module')
|
|
36
|
+
|
|
37
|
+
# Use joinpath for accessing files
|
|
38
|
+
file_path = Path(str(PACKAGE_PATH.joinpath('filename')))
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
This ensures consistent path resolution in both interactive and script modes.
|
|
42
|
+
|
|
43
|
+
## Documenting Functions
|
|
44
|
+
|
|
45
|
+
- Remove dtype specifications from all `Args:` sections (e.g., `text (str):` → `text:`)
|
|
46
|
+
- Use "Args:" instead of "Parameters:" for consistency
|
|
47
|
+
|
|
48
|
+
## Code Structure & Data Handling
|
|
49
|
+
|
|
50
|
+
- Use value objects stored in `src/<package_name>/domain/value_object.py`, implemented using Pandera > v0.2 and Pydantic. Prefer passing DataFrame when possible.
|
|
51
|
+
- Use Pandera > v0.2 syntax, such as `DataFrameModel` when possible.
|
|
52
|
+
- When importing internal modules, do not include the "src" folder in the import path as it is already defined in pyproject.toml
|
|
53
|
+
|
|
54
|
+
## Linter
|
|
55
|
+
|
|
56
|
+
- For file-level linter suppressions, use `# ruff: noqa: RULE1, RULE2` format (not `# ruff noqa:`)
|
|
57
|
+
- For line-level suppressions, use `# noqa: RULE1, RULE2` format
|
|
58
|
+
- Use `pathlib.Path` for all filesystem operations instead of `os.path`. Path objects provide a more readable and maintainable object-oriented interface (e.g., `Path('dir') / 'file.txt'` instead of `os.path.join()`, `path.exists()` instead of `os.path.exists()`, etc.)
|
|
59
|
+
- Exception messages must not use string literals directly, assign to variables first
|
|
60
|
+
- Try-except patterns: Use bare `raise` in except blocks to preserve the original traceback, put return statements in the `else` block when using try-except (e.g., `try: result = process() except Exception: raise else: return result`)
|
|
61
|
+
- Remove trailing whitespace from blank lines (W293)
|
|
62
|
+
- Move statements after try blocks into else blocks when the statements depend on the try block's success (TRY300)
|
|
63
|
+
- Use logging.exception instead of logging.error in except blocks (TRY400)
|
|
64
|
+
- Do not include the exception object in logging.exception calls (TRY401)
|
|
65
|
+
- Use keyword arguments for boolean parameters (FBT003) instead of positional arguments
|
|
66
|
+
- Make boolean default arguments keyword-only using `*` to prevent positional passing (FBT002)
|
|
67
|
+
- Avoid variable names that shadow Python builtins (A001)
|
|
68
|
+
- Use snake_case for all variables in global scope (N816), not camelCase or mixedCase
|
|
69
|
+
- Remove unused code instead of commenting it out (ERA001)
|
|
70
|
+
- Break long docstring lines at logical points to stay under the 88 character limit (E501)
|
|
71
|
+
- Include a blank line between docstring summary and description (D205)
|
|
72
|
+
- Add type annotations to function signatures (ANN201, ANN204)
|
|
73
|
+
- Add `# noqa: N806` comment for scikit-learn convention of uppercase X in tests
|
|
74
|
+
- Use `dict` instead of `Dict` for type annotation (UP006)
|
|
75
|
+
- Avoid importing deprecated types like `typing.Dict` (UP035)
|
|
76
|
+
- Remove unused code instead of commenting it out (ERA001)
|
|
77
|
+
- Never use `from __future__ import annotations` in any file; Python 3.11+ does not require it.
|
|
78
|
+
|
|
79
|
+
## Testing
|
|
80
|
+
|
|
81
|
+
- Use `pytest` for testing, and ensure all tests are passing before committing changes.
|
|
82
|
+
- Do not perform equality checks with floating point values; instead, use `pytest.approx`.
|
|
83
|
+
- Use only one assert statement per test function to ensure clarity and simplicity.
|
|
84
|
+
|
|
85
|
+
## Documentation & Workflow Management
|
|
86
|
+
|
|
87
|
+
- Document reusable knowledge (e.g., library versions, fixes, corrections) in the `Lessons` section of `.github/scratchpad.md`.
|
|
88
|
+
- Use `.github/scratchpad.md` to organise tasks:
|
|
89
|
+
- Clear old tasks when starting a new one.
|
|
90
|
+
- Plan steps and track progress using TODO markers:
|
|
91
|
+
- [X] Task 1
|
|
92
|
+
- [ ] Task 2
|
|
93
|
+
- Update task progress, especially after milestones.
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
permissions:
|
|
3
|
+
contents: read
|
|
4
|
+
pull-requests: write
|
|
5
|
+
on:
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
push:
|
|
8
|
+
branches: ['master', 'develop']
|
|
9
|
+
paths-ignore:
|
|
10
|
+
- 'docs/**'
|
|
11
|
+
- '**/*.md'
|
|
12
|
+
- 'mkdocs.yml'
|
|
13
|
+
pull_request:
|
|
14
|
+
branches: ['master', 'develop']
|
|
15
|
+
paths-ignore:
|
|
16
|
+
- 'docs/**'
|
|
17
|
+
- '**/*.md'
|
|
18
|
+
- 'mkdocs.yml'
|
|
19
|
+
concurrency:
|
|
20
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
21
|
+
cancel-in-progress: true
|
|
22
|
+
jobs:
|
|
23
|
+
tests:
|
|
24
|
+
runs-on: ${{ matrix.os }}
|
|
25
|
+
env:
|
|
26
|
+
PYTHONIOENCODING: utf-8
|
|
27
|
+
steps:
|
|
28
|
+
- name: Checkout code
|
|
29
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
30
|
+
|
|
31
|
+
- name: Setup git user config
|
|
32
|
+
run: |
|
|
33
|
+
git config --global user.name placeholder
|
|
34
|
+
git config --global user.email placeholder@example.com
|
|
35
|
+
|
|
36
|
+
- name: Set up uv
|
|
37
|
+
uses: astral-sh/setup-uv@f94ec6bedd8674c4426838e6b50417d36b6ab231 # v5.3.1
|
|
38
|
+
with:
|
|
39
|
+
version: "0.8.3" # Sync with pyproject.toml
|
|
40
|
+
enable-cache: true
|
|
41
|
+
|
|
42
|
+
- name: Set up Python
|
|
43
|
+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
|
|
44
|
+
with:
|
|
45
|
+
python-version: ${{ matrix.python-version }}
|
|
46
|
+
|
|
47
|
+
- name: Setup dependencies
|
|
48
|
+
run: |
|
|
49
|
+
uv python pin ${{ matrix.python-version }}
|
|
50
|
+
uv export --no-managed-python --no-group doc --resolution ${{ matrix.resolution }} > ci-requirements.txt
|
|
51
|
+
uv pip install --system -r ci-requirements.txt
|
|
52
|
+
|
|
53
|
+
- name: Run pre-commit
|
|
54
|
+
if: matrix.pre-commit
|
|
55
|
+
run: |
|
|
56
|
+
uv run --frozen pre-commit run --all-files
|
|
57
|
+
|
|
58
|
+
- name: Run pytest
|
|
59
|
+
uses: pavelzw/pytest-action@510c5e90c360a185039bea56ce8b3e7e51a16507 # v2.2.0
|
|
60
|
+
if: matrix.pytest
|
|
61
|
+
with:
|
|
62
|
+
custom-arguments: --cov --junitxml=junit.xml -o junit_family=legacy --cov-report=xml
|
|
63
|
+
|
|
64
|
+
- name: Create test reports directory
|
|
65
|
+
if: matrix.pytest && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13'
|
|
66
|
+
run: mkdir -p ./test-reports
|
|
67
|
+
|
|
68
|
+
- name: Upload coverage reports
|
|
69
|
+
if: matrix.pytest && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13'
|
|
70
|
+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
|
|
71
|
+
with:
|
|
72
|
+
name: coverage-reports
|
|
73
|
+
path: test-reports/coverage.xml
|
|
74
|
+
|
|
75
|
+
strategy:
|
|
76
|
+
matrix:
|
|
77
|
+
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
|
|
78
|
+
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
79
|
+
resolution: ["highest"]
|
|
80
|
+
pre-commit: [true]
|
|
81
|
+
pytest: [true]
|
|
82
|
+
include:
|
|
83
|
+
- os: "ubuntu-latest"
|
|
84
|
+
python-version: "3.10"
|
|
85
|
+
resolution: "lowest-direct"
|
|
86
|
+
pre-commit: false
|
|
87
|
+
pytest: true
|
|
88
|
+
|
|
89
|
+
code-analysis:
|
|
90
|
+
name: Analyse Code Quality
|
|
91
|
+
runs-on: ubuntu-latest
|
|
92
|
+
needs: tests
|
|
93
|
+
if: always() && needs.tests.result == 'success'
|
|
94
|
+
|
|
95
|
+
steps:
|
|
96
|
+
- name: Checkout code
|
|
97
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
98
|
+
with:
|
|
99
|
+
fetch-depth: 0 # Shallow clones should be disabled for better relevancy of analysis
|
|
100
|
+
|
|
101
|
+
- name: Download coverage reports
|
|
102
|
+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
|
103
|
+
with:
|
|
104
|
+
name: coverage-reports
|
|
105
|
+
path: test-reports/
|
|
106
|
+
continue-on-error: true
|
|
107
|
+
|
|
108
|
+
- name: Create SonarQube properties
|
|
109
|
+
run: |
|
|
110
|
+
cat > sonar-project.properties << EOF
|
|
111
|
+
sonar.projectKey=${{ vars.SONAR_PROJECT_KEY }}
|
|
112
|
+
sonar.language=py
|
|
113
|
+
sonar.python.version=3.13
|
|
114
|
+
sonar.sources=./src
|
|
115
|
+
sonar.tests=./tests
|
|
116
|
+
sonar.python.coverage.reportPaths=./test-reports/coverage.xml
|
|
117
|
+
sonar.exclusions=**/Dockerfile,**/notebooks/**,**/scripts/**
|
|
118
|
+
sonar.verbose=false
|
|
119
|
+
EOF
|
|
120
|
+
|
|
121
|
+
- name: Run SonarQube analysis
|
|
122
|
+
uses: SonarSource/sonarqube-scan-action@884b79409bbd464b2a59edc326a4b77dc56b2195 # v3.1.0
|
|
123
|
+
env:
|
|
124
|
+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
125
|
+
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
name: Release to PyPI
|
|
3
|
+
permissions:
|
|
4
|
+
contents: read
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
tags:
|
|
8
|
+
- 'v*'
|
|
9
|
+
jobs:
|
|
10
|
+
deploy:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
environment: release
|
|
13
|
+
permissions:
|
|
14
|
+
id-token: write
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout code
|
|
17
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
18
|
+
|
|
19
|
+
- name: Set up uv
|
|
20
|
+
uses: astral-sh/setup-uv@3b9817b1bf26186f03ab8277bab9b827ea5cc254 # v3.2.0
|
|
21
|
+
with:
|
|
22
|
+
version: "0.8.3" # Sync with pyproject.toml
|
|
23
|
+
|
|
24
|
+
- name: "Set up Python"
|
|
25
|
+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
|
|
26
|
+
with:
|
|
27
|
+
python-version: 3.13
|
|
28
|
+
|
|
29
|
+
- name: Release
|
|
30
|
+
run: |
|
|
31
|
+
uv build
|
|
32
|
+
uv publish --trusted-publishing always
|
rastr-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
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
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
#poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
#pdm.lock
|
|
116
|
+
#pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
#pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# SageMath parsed files
|
|
135
|
+
*.sage.py
|
|
136
|
+
|
|
137
|
+
# Environments
|
|
138
|
+
.env
|
|
139
|
+
.envrc
|
|
140
|
+
.venv
|
|
141
|
+
env/
|
|
142
|
+
venv/
|
|
143
|
+
ENV/
|
|
144
|
+
env.bak/
|
|
145
|
+
venv.bak/
|
|
146
|
+
|
|
147
|
+
# Spyder project settings
|
|
148
|
+
.spyderproject
|
|
149
|
+
.spyproject
|
|
150
|
+
|
|
151
|
+
# Rope project settings
|
|
152
|
+
.ropeproject
|
|
153
|
+
|
|
154
|
+
# mkdocs documentation
|
|
155
|
+
/site
|
|
156
|
+
|
|
157
|
+
# mypy
|
|
158
|
+
.mypy_cache/
|
|
159
|
+
.dmypy.json
|
|
160
|
+
dmypy.json
|
|
161
|
+
|
|
162
|
+
# Pyre type checker
|
|
163
|
+
.pyre/
|
|
164
|
+
|
|
165
|
+
# pytype static type analyzer
|
|
166
|
+
.pytype/
|
|
167
|
+
|
|
168
|
+
# Cython debug symbols
|
|
169
|
+
cython_debug/
|
|
170
|
+
|
|
171
|
+
# PyCharm
|
|
172
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
173
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
174
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
175
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
176
|
+
#.idea/
|
|
177
|
+
|
|
178
|
+
# Abstra
|
|
179
|
+
# Abstra is an AI-powered process automation framework.
|
|
180
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
181
|
+
# Learn more at https://abstra.io/docs
|
|
182
|
+
.abstra/
|
|
183
|
+
|
|
184
|
+
# Visual Studio Code
|
|
185
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
186
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
188
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
189
|
+
# .vscode/
|
|
190
|
+
|
|
191
|
+
# Ruff stuff:
|
|
192
|
+
.ruff_cache/
|
|
193
|
+
|
|
194
|
+
# PyPI configuration file
|
|
195
|
+
.pypirc
|
|
196
|
+
|
|
197
|
+
# Cursor
|
|
198
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
199
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
200
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
201
|
+
.cursorignore
|
|
202
|
+
.cursorindexingignore
|
|
203
|
+
|
|
204
|
+
# Marimo
|
|
205
|
+
marimo/_static/
|
|
206
|
+
marimo/_lsp/
|
|
207
|
+
__marimo__/
|
|
208
|
+
|
|
209
|
+
# Profiling output
|
|
210
|
+
*.prof
|
|
211
|
+
|
|
212
|
+
# Black formatter temp files
|
|
213
|
+
*.py.*.tmp
|
|
214
|
+
|
|
215
|
+
# Draw.io temp files
|
|
216
|
+
~drawio~*~*.drawio.tmp
|
|
217
|
+
|
|
218
|
+
# VS Code config
|
|
219
|
+
.vscode/
|
|
220
|
+
!.vscode/settings.template.json
|
|
221
|
+
|
|
222
|
+
# Windows thumbnail cache files
|
|
223
|
+
Thumbs.db
|
|
224
|
+
|
|
225
|
+
# Project Configuration file
|
|
226
|
+
.config.yaml
|
|
227
|
+
|
|
228
|
+
# Cached datasets
|
|
229
|
+
.datasetcache
|
|
230
|
+
|
|
231
|
+
# Microsoft Office lock files
|
|
232
|
+
~$*.xlsx
|
|
233
|
+
|
|
234
|
+
# Automatically generated version file
|
|
235
|
+
src/**/_version.py
|
|
236
|
+
|
|
237
|
+
# Automatically generated Sphinx API documentation
|
|
238
|
+
doc/source/_apidoc/
|
|
239
|
+
|
|
240
|
+
# GitHub Copilot scratchpad
|
|
241
|
+
.github/scratchpad.md
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
ci:
|
|
2
|
+
autofix_prs: false
|
|
3
|
+
repos:
|
|
4
|
+
- repo: local
|
|
5
|
+
hooks:
|
|
6
|
+
# Prevent committing .rej files from copier
|
|
7
|
+
- id: forbidden-copier-rej-files
|
|
8
|
+
name: forbidden copier rej files
|
|
9
|
+
entry: found Copier update rejection files; review them and remove them
|
|
10
|
+
language: fail
|
|
11
|
+
files: \.rej$
|
|
12
|
+
|
|
13
|
+
- repo: local
|
|
14
|
+
hooks:
|
|
15
|
+
# Prevent committing test.py files within the tests directory
|
|
16
|
+
- id: forbidden-testpy-files
|
|
17
|
+
name: forbidden testpy files
|
|
18
|
+
entry: found test.py file inside tests directory; rename or remove them
|
|
19
|
+
language: fail
|
|
20
|
+
files: ((./tests/.*/test.py)|(./tests/test.py))$
|
|
21
|
+
|
|
22
|
+
- repo: https://github.com/abravalheri/validate-pyproject
|
|
23
|
+
rev: v0.23
|
|
24
|
+
hooks:
|
|
25
|
+
- id: validate-pyproject
|
|
26
|
+
|
|
27
|
+
- repo: local
|
|
28
|
+
hooks:
|
|
29
|
+
- id: uv-lock
|
|
30
|
+
name: uv-lock
|
|
31
|
+
entry: uv lock --offline
|
|
32
|
+
files: ^(uv\.lock|pyproject\.toml|uv\.toml)$
|
|
33
|
+
additional_dependencies:
|
|
34
|
+
- uv==0.8.3
|
|
35
|
+
language: python
|
|
36
|
+
always_run: true
|
|
37
|
+
pass_filenames: false
|
|
38
|
+
- id: uv-sync
|
|
39
|
+
name: uv-sync
|
|
40
|
+
entry: uv sync --no-active --offline
|
|
41
|
+
args: [--locked]
|
|
42
|
+
additional_dependencies:
|
|
43
|
+
- uv==0.8.3
|
|
44
|
+
language: python
|
|
45
|
+
always_run: true
|
|
46
|
+
pass_filenames: false
|
|
47
|
+
stages: [manual, pre-commit, pre-push, post-checkout, post-merge,
|
|
48
|
+
post-rewrite]
|
|
49
|
+
- id: uv-export
|
|
50
|
+
name: uv-export
|
|
51
|
+
files: ^uv\.lock|requirements.txt$
|
|
52
|
+
entry: uv export --frozen --offline --quiet --no-default-groups
|
|
53
|
+
-o="requirements.txt"
|
|
54
|
+
additional_dependencies:
|
|
55
|
+
- uv==0.8.3
|
|
56
|
+
language: python
|
|
57
|
+
pass_filenames: false
|
|
58
|
+
require_serial: true
|
|
59
|
+
|
|
60
|
+
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
61
|
+
rev: v2.6.0
|
|
62
|
+
hooks:
|
|
63
|
+
- id: pyproject-fmt
|
|
64
|
+
- repo: https://github.com/python-formate/flake8-dunder-all
|
|
65
|
+
rev: v0.4.1
|
|
66
|
+
hooks:
|
|
67
|
+
- id: ensure-dunder-all
|
|
68
|
+
files: .*/__init__\.py$
|
|
69
|
+
exclude: tests/assets/
|
|
70
|
+
|
|
71
|
+
- repo: local
|
|
72
|
+
hooks:
|
|
73
|
+
- id: ruff-format
|
|
74
|
+
name: ruff-format
|
|
75
|
+
always_run: true
|
|
76
|
+
entry: uv run --frozen --offline ruff format --force-exclude
|
|
77
|
+
types_or: [python, pyi, jupyter]
|
|
78
|
+
additional_dependencies:
|
|
79
|
+
- uv==0.8.3
|
|
80
|
+
language: python
|
|
81
|
+
pass_filenames: false
|
|
82
|
+
- id: ruff-check
|
|
83
|
+
name: ruff-check
|
|
84
|
+
always_run: true
|
|
85
|
+
entry: uv run --frozen --offline ruff check --fix --force-exclude
|
|
86
|
+
--ignore "FIX"
|
|
87
|
+
types_or: [python, pyi, jupyter]
|
|
88
|
+
additional_dependencies:
|
|
89
|
+
- uv==0.8.3
|
|
90
|
+
language: python
|
|
91
|
+
pass_filenames: false
|
|
92
|
+
|
|
93
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
94
|
+
rev: v5.0.0
|
|
95
|
+
hooks:
|
|
96
|
+
- id: check-added-large-files
|
|
97
|
+
args: [--maxkb=100000]
|
|
98
|
+
- id: trailing-whitespace
|
|
99
|
+
exclude: (.*\.sh|.*\.d2|.*\.md|.*\.drawio|.*egg-info.*|)$
|
|
100
|
+
- id: check-merge-conflict
|
|
101
|
+
args: [--assume-in-merge]
|
|
102
|
+
|
|
103
|
+
- repo: local
|
|
104
|
+
hooks:
|
|
105
|
+
- id: nbstripout
|
|
106
|
+
name: nbstripout
|
|
107
|
+
entry: uv run --frozen --offline nbstripout
|
|
108
|
+
additional_dependencies:
|
|
109
|
+
- uv==0.8.3
|
|
110
|
+
language: python
|
|
111
|
+
files: .*\.(ipynb)$
|
|
112
|
+
exclude: .*\.(example|template|keepoutput|)\.ipynb$
|
|
113
|
+
|
|
114
|
+
- repo: local
|
|
115
|
+
hooks:
|
|
116
|
+
- id: deptry
|
|
117
|
+
name: deptry
|
|
118
|
+
entry: uv run --frozen --offline deptry src
|
|
119
|
+
additional_dependencies:
|
|
120
|
+
- uv==0.8.3
|
|
121
|
+
language: python
|
|
122
|
+
always_run: true
|
|
123
|
+
pass_filenames: false
|
|
124
|
+
- repo: https://github.com/codespell-project/codespell
|
|
125
|
+
rev: v2.4.1
|
|
126
|
+
hooks:
|
|
127
|
+
- id: codespell
|
|
128
|
+
additional_dependencies:
|
|
129
|
+
- tomli
|
|
130
|
+
default_install_hook_types:
|
|
131
|
+
- pre-commit
|
|
132
|
+
- pre-push
|
|
133
|
+
- post-checkout
|
|
134
|
+
- post-merge
|
|
135
|
+
- post-rewrite
|
|
136
|
+
default_stages:
|
|
137
|
+
- pre-commit
|
|
138
|
+
- pre-push
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.12.11
|