Skip to content

Commit

Permalink
drop flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
nisimond authored and juledwar committed Jul 21, 2024
1 parent 2a5e5fe commit f1e7c07
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 33 deletions.
22 changes: 21 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,26 @@ omit = [

[tool.ruff]
line-length = 79
output-format = "full"
exclude = [
".git",
".tox",
"__pycache__",
"alembic",
"bin",
"lib",
"build",
"dist",
".eggs",
]

[tool.ruff.lint]
select = ["I", "S"]
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
3 changes: 0 additions & 3 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
black==22.3.0
build>=0.7.0
coverage[toml]==6.0.2
flake8==4.0.1
flake8-bugbear==21.9.2
flake8-docstrings==1.6.0
ipython==7.28.0
pdbpp==0.10.3
ruff>=0.5.3
Expand Down
31 changes: 2 additions & 29 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = pep8, bandit, formatcheck
envlist = pep8, formatcheck

[testenv]
passenv =
Expand All @@ -15,8 +15,7 @@ deps = -r{toxinidir}/requirements.txt

commands =
repl: ipython {posargs}
pep8: flake8 dbtesttools {posargs}
bandit: ruff check dbtesttools
pep8: ruff check dbtesttools {posargs}
build-python-package: python -m build {posargs}
pypi: python -m twine upload {posargs}
testpypi: python -m twine upload --repository testpypi {posargs}
Expand All @@ -30,29 +29,3 @@ commands =
commands =
ruff check --select I --fix-only --show-fixes dbtesttools
black dbtesttools

[flake8]
max-line-length = 79
max-complexity = 13
doctests = True
filename= *.py
exclude =
.git
.tox
__pycache__
alembic
bin
lib
build
dist
.eggs
show-source = true
ignore =
# ignore missing docstrings (for now)
D10
# No blank lines allowed after function docstring (caused by Black)
D202
# Whitespace before ':' (caused by Black)
E203
# line breaks after operators (caused by Black)
W503

0 comments on commit f1e7c07

Please sign in to comment.