Skip to content

Commit

Permalink
Change: Replace isort with ruff
Browse files Browse the repository at this point in the history
Use ruff for sorting imports too.
  • Loading branch information
bjoernricks committed Jan 26, 2024
1 parent 69c3dbf commit 4d2d979
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 51 deletions.
42 changes: 1 addition & 41 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 6 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ python-gvm = ">=23.4.2"
autohooks = ">=22.8.0"
autohooks-plugin-ruff = ">=23.6.1"
autohooks-plugin-black = ">=22.8.1"
autohooks-plugin-isort = ">=22.8.0"
pontos = ">=22.8.1"
sphinx = ">=5.3.0"
coverage = ">=7.2"
Expand All @@ -70,17 +69,14 @@ exclude = '''
)/
'''

[tool.isort]
profile = "black"
line_length = 80

[tool.autohooks]
mode = "poetry"
pre-commit = [
'autohooks.plugins.black',
'autohooks.plugins.ruff',
'autohooks.plugins.isort',
]
pre-commit = ['autohooks.plugins.black', 'autohooks.plugins.ruff']

[tool.ruff]
line-length = 80
target-version = "py39"
extend-select = ["I", "PLE", "PLW"]

[tool.pontos.version]
version-module-file = "gvmtools/__version__.py"

0 comments on commit 4d2d979

Please sign in to comment.