Skip to content

Commit 986181a

Browse files
nisimondjuledwar
authored andcommitted
drop black
1 parent f1e7c07 commit 986181a

File tree

4 files changed

+7
-29
lines changed

4 files changed

+7
-29
lines changed

dbtesttools/engines/postgres.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ def pull_image(self):
111111
self.client.images.pull(self.image)
112112

113113
def start_container(self):
114-
env = dict(
115-
POSTGRES_PASSWORD='postgres', PGDATA=self.pg_data # noqa: S106
116-
)
114+
env = dict(POSTGRES_PASSWORD='postgres', PGDATA=self.pg_data) # noqa: S106
117115
ports = {'5432': self.local_port}
118116
print("Starting Postgres container ...", file=sys.stderr)
119117
# Uniq-ify the name as threaded tests will create multiple containers.

pyproject.toml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,3 @@
1-
[tool.black]
2-
line-length = 79
3-
target_version = ['py36']
4-
skip-string-normalization = 1
5-
# Needed for the vim plugin
6-
string-normalization = 0
7-
exclude = '''
8-
(
9-
/(
10-
\.eggs
11-
| \.git
12-
| .tox
13-
| \.venv
14-
| dist
15-
| build
16-
| _build
17-
| db-testtools-venv
18-
)/
19-
)
20-
'''
21-
221
[tool.coverage.run]
232
omit = [
243
'*dbtesttools/tests*',
@@ -29,6 +8,7 @@ omit = [
298
[tool.ruff]
309
line-length = 79
3110
output-format = "full"
11+
target-version = 'py37'
3212
exclude = [
3313
".git",
3414
".tox",
@@ -41,13 +21,14 @@ exclude = [
4121
".eggs",
4222
]
4323

24+
[tool.ruff.format]
25+
quote-style = 'preserve'
26+
4427
[tool.ruff.lint]
4528
select = ["B", "C9", "D", "E", "F", "I", "S", "W"]
4629
ignore = [
4730
"D10", # ignore missing docstrings (for now)
48-
"D202", # No blank lines allowed after function docstring (caused by Black)
4931
"D203", # Allow One Blank Line Before Class
5032
"D213", # Allow "Multi-line docstring summary should start at the second line"
51-
"E203", # Whitespace before ':' (caused by Black)
5233
]
5334
mccabe.max-complexity = 13

test-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
black==22.3.0
21
build>=0.7.0
32
coverage[toml]==6.0.2
43
ipython==7.28.0

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ commands =
2323
[testenv:formatcheck]
2424
commands =
2525
ruff check --select I --show-fixes dbtesttools
26-
black --check dbtesttools
26+
ruff format --check dbtesttools
2727

2828
[testenv:format]
2929
commands =
3030
ruff check --select I --fix-only --show-fixes dbtesttools
31-
black dbtesttools
31+
ruff format dbtesttools

0 commit comments

Comments
 (0)