Skip to content

Commit d9d0064

Browse files
committed
revert unnecesary changes
more simplification revert linting more simplification fix don’t need it
1 parent e9fd7fd commit d9d0064

12 files changed

Lines changed: 29 additions & 58 deletions

.github/workflows/schema-check.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
target_branch:
2323
description: "The branch to check against"
2424
type: string
25-
default: "main"
25+
default: 'main'
2626
required: true
2727

2828
# no special access is needed
@@ -48,8 +48,8 @@ jobs:
4848
- name: Checkout dbt repo
4949
uses: actions/checkout@v4
5050
with:
51-
path: ${{ env.DBT_REPO_DIRECTORY }}
52-
ref: ${{ inputs.target_branch }}
51+
path: ${{ env.DBT_REPO_DIRECTORY }}
52+
ref: ${{ inputs.target_branch }}
5353

5454
- name: Check for changes in core/dbt/artifacts
5555
# https://github.com/marketplace/actions/paths-changes-filter
@@ -72,7 +72,7 @@ jobs:
7272
uses: actions/checkout@v4
7373
with:
7474
repository: dbt-labs/schemas.getdbt.com
75-
ref: "main"
75+
ref: 'main'
7676
path: ${{ env.SCHEMA_REPO_DIRECTORY }}
7777

7878
- name: Generate current schema
@@ -82,7 +82,7 @@ jobs:
8282
python3 -m venv env
8383
source env/bin/activate
8484
pip install --upgrade pip
85-
pip install -r dev-requirements.txt
85+
pip install -r dev-requirements.txt -r editable-requirements.txt
8686
python scripts/collect-artifact-schema.py --path ${{ env.LATEST_SCHEMA_PATH }}
8787
8888
# Copy generated schema files into the schemas.getdbt.com repo
@@ -99,5 +99,5 @@ jobs:
9999
uses: actions/upload-artifact@v4
100100
if: ${{ failure() && steps.check_artifact_changes.outputs.artifacts_changed == 'true' }}
101101
with:
102-
name: "schema_changes.txt"
103-
path: "${{ env.SCHEMA_DIFF_ARTIFACT }}"
102+
name: 'schema_changes.txt'
103+
path: '${{ env.SCHEMA_DIFF_ARTIFACT }}'

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,9 @@ make dev
121121
```
122122
or, alternatively:
123123
```sh
124-
pip install -r editable-requirements.txt -r dev-requirements.txt
124+
pip install -r dev-requirements.txt -r editable-requirements.txt
125125
pre-commit install
126126
```
127-
The `dev` extra now pins the versions that pre-commit runs locally. When installing directly (outside this requirements file), be sure to quote the extra in shells like `zsh`, for example: `pip install -e 'core[dev]'`.
128127

129128
When installed in this way, any changes you make to your local copy of the source code will be reflected immediately in your next `dbt` run.
130129

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ CI_FLAGS =\
3030
.PHONY: dev_req
3131
dev_req: ## Installs dbt-* packages in develop mode along with only development dependencies.
3232
@\
33-
pip install -r editable-requirements.txt -r dev-requirements.txt
33+
pip install -r dev-requirements.txt -r editable-requirements.txt
3434

3535
.PHONY: dev
3636
dev: dev_req ## Installs dbt-* packages in develop mode along with development dependencies and pre-commit.

core/MANIFEST.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
recursive-include dbt/include *
2-
recursive-exclude dbt/include __pycache__ *.pyc *.pyo
1+
recursive-include dbt/include *.py *.sql *.yml *.html *.md .gitkeep .gitignore
32
include dbt/py.typed
43
recursive-include dbt/task/docs *.html
54
recursive-include dbt/jsonschemas *.json

core/pyproject.toml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,18 @@ include = [
1313
# this needs to match MANIFEST.in for the wheels
1414
[tool.setuptools.package-data]
1515
"dbt" = [
16-
"include/**/*",
16+
"include/**/*.py",
17+
"include/**/*.sql",
18+
"include/**/*.yml",
19+
"include/**/*.html",
20+
"include/**/*.md",
21+
"include/**/.gitkeep",
22+
"include/**/.gitignore",
1723
"task/docs/**/*.html",
1824
"jsonschemas/**/*.json",
1925
"py.typed",
2026
]
2127

22-
[tool.setuptools.exclude-package-data]
23-
"dbt" = [
24-
"include/__pycache__/*",
25-
"include/**/*.pyc",
26-
"include/**/*.pyo",
27-
]
28-
2928
[project]
3029
name = "dbt-core"
3130
version = "1.11.0b4"

dev-requirements.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
# Dev dependencies with git URLs (excluded from package METADATA to avoid PyPI rejection)
2-
dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git@main#subdirectory=dbt-adapters
3-
dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git@main#subdirectory=dbt-tests-adapter
4-
dbt-common @ git+https://github.com/dbt-labs/dbt-common.git@main
5-
dbt-postgres @ git+https://github.com/dbt-labs/dbt-adapters.git@main#subdirectory=dbt-postgres
6-
# black must match what's in .pre-commit-config.yaml to be sure local env matches CI
1+
git+https://github.com/dbt-labs/dbt-adapters.git@main#subdirectory=dbt-adapters
2+
git+https://github.com/dbt-labs/dbt-adapters.git@main#subdirectory=dbt-tests-adapter
3+
git+https://github.com/dbt-labs/dbt-common.git@main
4+
git+https://github.com/dbt-labs/dbt-adapters.git@main#subdirectory=dbt-postgres
75
black==24.3.0
86
bumpversion
97
ddtrace==2.21.3

editable-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
-e core
1+
-e ./core

pyproject.toml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,6 @@
77
files = 'core/dbt'
88
mypy_path = "third-party-stubs/"
99
namespace_packages = true
10-
ignore_missing_imports = true
11-
12-
[[tool.mypy.overrides]]
13-
module = [
14-
"dbtlabs.*",
15-
"dbt_semantic_interfaces.*",
16-
"dbt_common.*",
17-
"click.parser",
18-
]
19-
ignore_missing_imports = true
20-
21-
[[tool.mypy.overrides]]
22-
# Mirror legacy mypy behaviour by excluding modules previously unchecked in the pre-commit mirror environment.
23-
module = [
24-
"dbt.events.types",
25-
"dbt.events.core_types_pb2",
26-
"dbt.jsonschemas.jsonschemas",
27-
"dbt.cli.option_types",
28-
"dbt.cli.options",
29-
"dbt.cli.flags",
30-
"dbt.utils.utils",
31-
"dbt.env_vars",
32-
"dbt.context.providers",
33-
"dbt.artifacts.resources.v1.semantic_layer_components",
34-
]
35-
ignore_errors = true
3610

3711
[tool.black]
3812
line-length = 99

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
core
1+
./core

scripts/build-dist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ rm -rf "$DBT_PATH"/dist
1414
rm -rf "$DBT_PATH"/build
1515
rm -rf "$DBT_PATH"/core/dist
1616
rm -rf "$DBT_PATH"/core/build
17+
1718
mkdir -p "$DBT_PATH"/dist
1819

1920
# Copy License.md to core/ for inclusion in distribution (required by Apache 2.0)
@@ -27,5 +28,4 @@ $PYTHON_BIN -m build --outdir "$DBT_PATH/dist"
2728
# Clean up License.md that was copied to core/ for build
2829
rm -f "$DBT_PATH/core/License.md"
2930

30-
3131
set +x

0 commit comments

Comments
 (0)