Skip to content

Commit 4af3929

Browse files
committed
add conf to pyproject
1 parent 823b1f6 commit 4af3929

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
2-
max-line-length = 89
2+
max-line-length = 100
33
exclude = _version.py
44
# F403: unable to detect undefined names
55
# F405: may be defined from * imports

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ci:
22
autofix_prs: false
33
autoupdate_schedule: monthly
44

5-
exclude: '^docs/exts/'
5+
exclude: '(?i)(^src/tests/cextern/|^drizzle/tests/data/|\.(?:c|h)$)'
66

77
repos:
88
# basic checks

pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ exclude = [
8383
".tox",
8484
".eggs",
8585
"build",
86+
"docs/exts",
8687
]
8788

8889
lint.ignore = [
@@ -156,11 +157,6 @@ lint.ignore = [
156157
"docs/*.py" = [
157158
"INP001", # implicit-namespace-package. The examples are not a package.
158159
]
159-
"examples/*.py" = [
160-
"E402", # Imports are done as needed.
161-
"INP001", # implicit-namespace-package. The examples are not a package.
162-
"T203" # pprint found
163-
]
164160

165161
[tool.ruff.lint.flake8-annotations]
166162
ignore-fully-untyped = true

tox.ini

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,16 @@ commands =
5151
skip_install = true
5252
changedir = {toxinidir}
5353
description = check code style with flake8
54-
deps = flake8
55-
commands = flake8 stsci --count
54+
deps =
55+
ruff
56+
commands =
57+
ruff check . {posargs}
5658

5759
[testenv:bandit]
5860
skip_install = true
5961
changedir = {toxinidir}
6062
description = Security audit with bandit
61-
deps = bandit
63+
deps = bandit>=1.7
6264
commands =
6365
pip freeze
6466
bandit stsci -r -x stsci/imagestats/tests

0 commit comments

Comments
 (0)