Skip to content

Commit 564f07d

Browse files
author
Christian
committed
change dependabot
1 parent 93133ea commit 564f07d

File tree

7 files changed

+19
-11
lines changed

7 files changed

+19
-11
lines changed

.flake8

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
[flake8]
2-
select = B,B9,C,D,DAR,E,F,N,RST,S,W
2+
select = B,B9,C,D,DAR,E,F,N,RST,W
33
ignore = E203,E501,RST201,RST203,RST301,W503
44
max-line-length = 80
55
max-complexity = 10
66
docstring-convention = google
7-
per-file-ignores = tests/*:S101
87
rst-roles = class,const,func,meth,mod,ref
98
rst-directives = deprecated

.github/dependabot.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ updates:
33
- package-ecosystem: github-actions
44
directory: "/"
55
schedule:
6-
interval: daily
6+
interval: weekly
77
- package-ecosystem: pip
88
directory: "/.github/workflows"
99
schedule:
10-
interval: daily
10+
interval: weekly
1111
- package-ecosystem: pip
1212
directory: "/docs"
1313
schedule:
14-
interval: daily
14+
interval: weekly
1515
- package-ecosystem: pip
1616
directory: "/"
1717
schedule:
18-
interval: daily
18+
interval: weekly
1919
versioning-strategy: lockfile-only
2020
allow:
21-
- dependency-type: "all"
21+
- dependency-type: "direct"

.github/workflows/tests.yml

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
include:
1515
- { python: "3.10", os: "ubuntu-latest", session: "pre-commit" }
1616
- { python: "3.10", os: "ubuntu-latest", session: "mypy" }
17-
- { python: "3.9", os: "ubuntu-latest", session: "mypy" }
18-
- { python: "3.8", os: "ubuntu-latest", session: "mypy" }
1917
- { python: "3.10", os: "ubuntu-latest", session: "tests" }
2018
- { python: "3.9", os: "ubuntu-latest", session: "tests" }
2119
- { python: "3.8", os: "ubuntu-latest", session: "tests" }

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ __pycache__/
1111
local_files
1212
.vscode
1313
/tests/mni_test_data/*
14+
/Dockerfile
15+
/.dockerignore
16+
/docker-compose.yaml

.pre-commit-config.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,13 @@ repos:
6060
language: system
6161
types: [text]
6262
stages: [commit, push, manual]
63-
63+
- id: bandit
64+
name: bandit
65+
entry: bandit
66+
language: system
67+
types: [python]
68+
require_serial: true
69+
args: ["-c", "bandit.yml"]
6470
- repo: https://github.com/pre-commit/mirrors-prettier
6571
rev: v2.6.0
6672
hooks:

bandit.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
assert_used:
2+
skips: ["*/test_*.py"]

noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def activate_virtualenv_in_precommit_hooks(session: Session) -> None:
4545
Args:
4646
session: The Session object.
4747
"""
48-
assert session.bin is not None # noqa: S101
48+
assert session.bin is not None # nosec
4949

5050
# Only patch hooks containing a reference to this session's bindir. Support
5151
# quoting rules for Python and bash, but strip the outermost quotes so we

0 commit comments

Comments
 (0)