Skip to content

Commit

Permalink
change tool configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Nov 9, 2023
1 parent f8b02f0 commit 4e065ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ repos:
- id: ruff
args: ["--fix"]
- id: ruff-format

- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
additional_dependencies: ["bandit[toml]"]
27 changes: 7 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -166,36 +166,23 @@ report = { exclude_lines = [
[tool.bandit]
skips = ["B101", "B307", "B404", "B603"]

[tool.isort]
profile = "black"
filter_files = true
line_length = 88

[tool.black]
line-length = 88
force-exclude = '''
^/(
(
\.eggs
| \.git
| \.pytest_cache
| \.tox
)/
)
'''

[tool.ruff]
line-length = 88
exclude = [
'jdocs',
'.tox',
'.eggs',
'.git',
'.pytest_cache',
'.tox',
'jdocs',
'build',
]
ignore = [
'E741', # ambiguous variable name
]
extend-select = ['NPY']
extend-include = ["*.ipynb"]

[tool.ruff.lint.isort]

[tool.ruff.extend-per-file-ignores]
"romancal/associations/__init__.py" = ["E402"]
Expand Down

0 comments on commit 4e065ed

Please sign in to comment.