Skip to content

Commit 633525b

Browse files
committed
init commit
0 parents  commit 633525b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+7768
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @Toloka/dbxio-developers

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: ['https://www.buymeacoffee.com/tolokadataplatform']

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Cloud provider**
27+
- [x] Azure
28+
- [ ] AWS
29+
- [ ] GCP
30+
31+
**Additional context**
32+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
permissions:
8+
id-token: write
9+
contents: read
10+
11+
jobs:
12+
build:
13+
name: Build wheels and source distribution
14+
runs-on: ubuntu-latest
15+
environment: release
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.10"
24+
25+
- name: Azure CLI login
26+
uses: azure/login@v1
27+
with:
28+
client-id: ${{ secrets.TLK_DEVTOOLS_ACTIONS_MI_CLIENT_ID }}
29+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
30+
subscription-id: ${{ secrets.TEST_INFRA_TLK_SUBSCRIPTION_ID }}
31+
32+
- name: Install Poetry
33+
uses: snok/install-poetry@v1
34+
35+
- name: Install project
36+
run: |
37+
poetry install --with=dev --all-extras
38+
poetry self add poetry-version-plugin
39+
40+
- name: Build and publish release
41+
run: |
42+
poetry config http-basic.azure "$USER" "$(az account get-access-token --resource 499b84ac-1321-427f-aa17-267ca6975798 | jq .accessToken --raw-output)"
43+
poetry config repositories.azure https://pkgs.dev.azure.com/toloka/_packaging/Python/pypi/upload/
44+
poetry -vv publish --build -r azure

.github/workflows/tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
test:
9+
runs-on: [ ubuntu-latest ]
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
python-version: [ "3.9", "3.10", "3.11" ]
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Install Poetry
21+
uses: snok/install-poetry@v1
22+
- name: Install project
23+
run: |
24+
poetry install --with=dev
25+
- name: ruff
26+
uses: chartboost/ruff-action@v1
27+
- name: Mypy Check
28+
run: |
29+
poetry run mypy dbxio
30+
- name: Test with pytest
31+
run: |
32+
poetry run pytest -q -s -vv --log-cli-level=INFO --cov=dbxio --cov-report=term tests

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.idea/
2+
logs/
3+
4+
.coverage
5+
6+
**/__pycache__/**

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.3.7 # ruff version
4+
hooks:
5+
- id: ruff
6+
args: [ --fix ]
7+
- id: ruff-format
8+
- repo: https://github.com/pre-commit/mirrors-mypy
9+
rev: 'v1.7.1'
10+
hooks:
11+
- id: mypy
12+
files: ./dbxio

CONTRIBUTING.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Notice to external contributors
2+
3+
4+
## General info
5+
6+
Hello! In order for us to accept patches and other contributions from you, you will have to adopt our Toloka Contributor License Agreement (the “**CLA**”). The current version of the CLA can be found here:
7+
1) https://toloka.ai/legal/cla_individual (for individuals) and
8+
2) https://toloka.ai/legal/cla_corporate (for corporate contributors).
9+
10+
By adopting the CLA, you state the following:
11+
12+
* You obviously wish and are willingly licensing your contributions to us for our open source projects under the terms of the CLA,
13+
* You have read the terms and conditions of the CLA and agree with them in full,
14+
* You are legally able to provide and license your contributions as stated,
15+
* We may use your contributions for our open source projects and for any other project too,
16+
* We rely on your assurances concerning the rights of third parties in relation to your contributions.
17+
18+
If you agree with these principles, please read and adopt our CLA. By providing us your contributions, you hereby declare that you have already read and adopt our CLA, and we may freely merge your contributions with our corresponding open source project and use it further in accordance with terms and conditions of the CLA.
19+
20+
## Provide contributions
21+
22+
If you have already adopted terms and conditions of the CLA, you are able to provide your contributions. When you submit your first pull request, please add the following information into it:
23+
24+
```
25+
I hereby agree to the terms of either individual CLA available at: https://toloka.ai/legal/cla_individual or corporate CLA available at: https://toloka.ai/legal/cla_corporate, whichever is applicable to me, as it pertains to direct contributions to dbt-af only.
26+
```
27+
28+
It is enough to provide this notification only once.
29+
30+
## Other questions
31+
32+
If you have any questions, please mail us at [email protected].

LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2024 Toloka AI BV
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

0 commit comments

Comments
 (0)