Skip to content

Commit

Permalink
FS-4941 - Replace black, flake8 and isort with ruff in dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wjrm500 committed Dec 23, 2024
1 parent 315a802 commit 6f34b09
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 102 deletions.
32 changes: 20 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,33 +29,41 @@ dependencies = [
"sqlalchemy[mypy]==2.0.36",
]

[tool.black]
[tool.ruff]
line-length = 120
target-version = "py310"

[tool.flake8]
max-line-length = 120
ignore = ['E203', 'W503']
count = true

[tool.isort]
profile = "black"
force_single_line = "true"
[tool.ruff.lint]
select = [
"E", # pycodestyle
"W", # pycodestyle
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C90", # mccabe cyclomatic complexity
"G", # flake8-logging-format
]
ignore = []
exclude = [
"venv*",
".venv*",
"__pycache__",
]
mccabe.max-complexity = 12

[tool.uv]

[dependency-groups]
dev = [
"beautifulsoup4==4.12.3",
"black==24.8.0",
"debugpy==1.8.9",
"djlint==1.34.1",
"flake8-pyproject==1.2.3",
"flake8==7.1.1",
"invoke==2.2.0",
"pre-commit==3.8.0",
"pytest-env==1.1.3",
"pytest-html==4.1.1",
"pytest-mock==3.14.0",
"pytest==8.3.3",
"python-dotenv==1.0.1",
"ruff==0.8.3",
]
Loading

0 comments on commit 6f34b09

Please sign in to comment.