Skip to content

Commit 7614ee7

Browse files
committed
lint: remove safety checks (not open source anymore)
1 parent aacda92 commit 7614ee7

File tree

6 files changed

+4
-157
lines changed

6 files changed

+4
-157
lines changed

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ jobs:
3636
run: tox -e check-copyright
3737
- name: Misc checks
3838
run: |
39-
tox -e bandit,safety
39+
tox -e bandit

CONTRIBUTING.md

-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ We have various commands which are helpful during development.
6666
```
6767
make lint-all
6868
make static
69-
make safety
7069
make bandit
7170
```
7271

Makefile

+1-5
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ clean-test: ## remove test and coverage artifacts
6767
rm -fr coverage.xml
6868

6969
.PHONY: lint-all
70-
lint-all: black check-copyright ruff static bandit safety vulture darglint ## run all linters
70+
lint-all: black check-copyright ruff static bandit vulture darglint ## run all linters
7171

7272
.PHONY: lint-all-files
7373
lint-all-files: black-files ruff-files static-files bandit-files vulture-files darglint-files ## run all linters for specific files (specified with files="file1 file2 somedir ...")
@@ -130,10 +130,6 @@ bandit-files: ## run bandit for specific files (specified with files="file1 file
130130
$(call check_defined, files)
131131
bandit $(files)
132132

133-
.PHONY: safety
134-
safety: ## run safety
135-
safety check
136-
137133
.PHONY: vulture
138134
vulture: ## run vulture
139135
vulture black_it scripts/whitelists/package_whitelist.py

poetry.lock

+1-142
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ pytest = "^7.4.2"
8181
pytest-cov = "^4.1.0"
8282
pytest-randomly = "^3.15.0"
8383
ruff = "^0.0.290"
84-
safety = "^2.4.0b1"
8584
tox = "^4.4.12"
8685
twine = "^4.0.2"
8786
vulture = "^2.9.1"

tox.ini

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
isolated_build = True
3-
envlist = bandit, safety, check-copyright, black-check, vulture, mypy, py3{9,10,11,12}, docs
3+
envlist = bandit, check-copyright, black-check, vulture, mypy, py3{9,10,11,12}, docs
44

55
[tox:.package]
66
# note tox will use the same python version as under what tox is installed to package
@@ -79,12 +79,6 @@ skip_install = True
7979
deps = bandit==1.7.5
8080
commands = bandit --configfile .bandit.yaml --recursive black_it tests scripts examples
8181

82-
[testenv:safety]
83-
skipsdist = False
84-
skip_install = False
85-
deps = safety==2.4.0b1
86-
commands = safety check
87-
8882
[testenv:vulture]
8983
skipsdist = True
9084
skip_install = True

0 commit comments

Comments
 (0)