Skip to content

Commit

Permalink
fix: adopt recommended configurations of isort and flake
Browse files Browse the repository at this point in the history
  • Loading branch information
tilsche committed Mar 14, 2024
1 parent 9580370 commit c016ac9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ build-backend = "setuptools.build_meta"
# The default is just fine

[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 88
profile = "black"


[tool.setuptools_scm]
write_to = "metricq_sink_websocket/version.py"
18 changes: 6 additions & 12 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ uvloop =
lint =
black ~= 24.2.0
flake8
flake8-bugbear
isort ~= 5.13.2
typing =
mypy >= 1.9.0
Expand All @@ -50,18 +51,11 @@ extend-exclude =
venv
show-source = True
statistics = True
select =
# Regular flake8 rules
C, E, F, W
# pep8-naming rules
N
ignore =
# E203: whitespace before ':' (not PEP8 compliant)
E203
# E501: line too long (black does that)
E501
# W503: line break before binary operator (not PEP8 compliant)
W503
# Recommendations of black as per
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8
max-line-length = 80
extend-select = B950
extend-ignore = E203,E501,E701

[tox:tox]
envlist =
Expand Down

0 comments on commit c016ac9

Please sign in to comment.