Skip to content

Commit

Permalink
drop black
Browse files Browse the repository at this point in the history
  • Loading branch information
nisimond authored and juledwar committed Jul 21, 2024
1 parent f1e7c07 commit 986181a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 29 deletions.
4 changes: 1 addition & 3 deletions dbtesttools/engines/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ def pull_image(self):
self.client.images.pull(self.image)

def start_container(self):
env = dict(
POSTGRES_PASSWORD='postgres', PGDATA=self.pg_data # noqa: S106
)
env = dict(POSTGRES_PASSWORD='postgres', PGDATA=self.pg_data) # noqa: S106
ports = {'5432': self.local_port}
print("Starting Postgres container ...", file=sys.stderr)
# Uniq-ify the name as threaded tests will create multiple containers.
Expand Down
27 changes: 4 additions & 23 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
[tool.black]
line-length = 79
target_version = ['py36']
skip-string-normalization = 1
# Needed for the vim plugin
string-normalization = 0
exclude = '''
(
/(
\.eggs
| \.git
| .tox
| \.venv
| dist
| build
| _build
| db-testtools-venv
)/
)
'''

[tool.coverage.run]
omit = [
'*dbtesttools/tests*',
Expand All @@ -29,6 +8,7 @@ omit = [
[tool.ruff]
line-length = 79
output-format = "full"
target-version = 'py37'
exclude = [
".git",
".tox",
Expand All @@ -41,13 +21,14 @@ exclude = [
".eggs",
]

[tool.ruff.format]
quote-style = 'preserve'

[tool.ruff.lint]
select = ["B", "C9", "D", "E", "F", "I", "S", "W"]
ignore = [
"D10", # ignore missing docstrings (for now)
"D202", # No blank lines allowed after function docstring (caused by Black)
"D203", # Allow One Blank Line Before Class
"D213", # Allow "Multi-line docstring summary should start at the second line"
"E203", # Whitespace before ':' (caused by Black)
]
mccabe.max-complexity = 13
1 change: 0 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
black==22.3.0
build>=0.7.0
coverage[toml]==6.0.2
ipython==7.28.0
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ commands =
[testenv:formatcheck]
commands =
ruff check --select I --show-fixes dbtesttools
black --check dbtesttools
ruff format --check dbtesttools

[testenv:format]
commands =
ruff check --select I --fix-only --show-fixes dbtesttools
black dbtesttools
ruff format dbtesttools

0 comments on commit 986181a

Please sign in to comment.