Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump dependencies versions #277

Merged
merged 5 commits into from
Apr 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changes/unreleased/Dependencies-20230406-155907.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Dependencies
body: Bump black from 22.12.0 to 23.3.0
time: 2023-04-06T15:59:07.829542+02:00
custom:
Author: damian3031
Issue: ""
PR: "277"
7 changes: 7 additions & 0 deletions .changes/unreleased/Dependencies-20230406-160125.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Dependencies
body: Bump flake8 from 5.0.4 to 6.0.0
time: 2023-04-06T16:01:25.379068+02:00
custom:
Author: damian3031
Issue: ""
PR: "277"
7 changes: 7 additions & 0 deletions .changes/unreleased/Dependencies-20230406-160407.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Dependencies
body: Bump tox from 3.27.1 to 4.4
time: 2023-04-06T16:04:07.579674+02:00
custom:
Author: damian3031
Issue: ""
PR: "277"
7 changes: 7 additions & 0 deletions .changes/unreleased/Dependencies-20230406-160756.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Dependencies
body: Add compatibility pin for dependencies. Remove obsolete ones.
time: 2023-04-06T16:07:56.968787+02:00
custom:
Author: damian3031
Issue: ""
PR: "277"
7 changes: 7 additions & 0 deletions .changes/unreleased/Dependencies-20230407-110511.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Dependencies
body: Bump mypy from 1.1.1 to 1.2.0
time: 2023-04-07T11:05:11.255362+02:00
custom:
Author: damian3031
Issue: ""
PR: "277"
10 changes: 5 additions & 5 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ select =
W
F
ignore =
W503 # makes Flake8 work like black
W504
E203 # makes Flake8 work like black
E741
E501
W503,
W504,
E203,
E741,
E501,
exclude = test
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- "markdown"
- id: check-case-conflict
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.3.0
hooks:
- id: black
args:
Expand All @@ -37,14 +37,14 @@ repos:
- id: isort
args: [ "--profile", "black", "--filter-files" ]
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
rev: 6.0.0
hooks:
- id: flake8
- id: flake8
alias: flake8-check
stages: [manual]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
rev: v1.2.0
hooks:
- id: mypy
# N.B.: Mypy is... a bit fragile.
Expand Down
1 change: 0 additions & 1 deletion dbt/adapters/trino/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,6 @@ def cancel(self, connection):
connection.handle.cancel()

def add_query(self, sql, auto_begin=True, bindings=None, abridge_sql_log=False):

connection = None
cursor = None

Expand Down
20 changes: 5 additions & 15 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
black==22.12.0
dbt-tests-adapter==1.4.5
flake8>=3.5.0
flaky>=3.5.3,<4
freezegun==1.2.2
ipdb
isort
mypy==1.1.1
pre-commit
pytest
pytest-xdist>=2.1.0,<4
pytz
tox==3.27.1
twine
wheel
dbt-tests-adapter~=1.4.5
mypy==1.2.0 # patch updates have historically introduced breaking changes
pre-commit~=3.2
pytest~=7.2
tox~=4.4
hovaesco marked this conversation as resolved.
Show resolved Hide resolved
1 change: 0 additions & 1 deletion tests/functional/adapter/test_session_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def models(self):
return {"session_property_model.sql": self.session_property_model(set_session_property)}

def test_custom_schema_trino(self, project):

# Run models.
results = run_dbt(["run"], expect_pass=True)
assert len(results) == 1
Expand Down
8 changes: 5 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@ skipsdist = True
envlist = unit, integration

[testenv:unit]
description = unit testing
basepython = python3
commands = /bin/bash -c '{envpython} -m pytest -v {posargs} tests/unit'
commands = {envpython} -m pytest -v {posargs} tests/unit
passenv = DBT_INVOCATION_ENV
deps =
-r{toxinidir}/dev_requirements.txt
-e.

[testenv:integration]
description = adapter plugin integration testing
basepython = python3
commands = /bin/bash -c '{envpython} -m pytest tests/functional'
passenv = DBT_INVOCATION_ENV DBT_TEST_TRINO_HOST DBT_TEST_USER_1 DBT_TEST_USER_2 DBT_TEST_USER_3
commands = {envpython} -m pytest {posargs} tests/functional
passenv = DBT_INVOCATION_ENV, DBT_TEST_TRINO_HOST, DBT_TEST_USER_1, DBT_TEST_USER_2, DBT_TEST_USER_3
deps =
-r{toxinidir}/dev_requirements.txt
-e.