File tree Expand file tree Collapse file tree 4 files changed +37
-5
lines changed Expand file tree Collapse file tree 4 files changed +37
-5
lines changed Original file line number Diff line number Diff line change 15
15
tests /htmlcov /*
16
16
.DS_Store
17
17
.python-version
18
- .pre-commit-config.yaml
Original file line number Diff line number Diff line change
1
+ # Automatically run checks over changed files prior to `git commit`.
2
+ # Required one-time setup:
3
+ #
4
+ # pip install pre-commit
5
+ # pre-commit install
6
+ #
7
+ # See https://pre-commit.com for details.
8
+ repos :
9
+ - repo : https://github.com/pre-commit/pre-commit-hooks
10
+ rev : v4.4.0
11
+ hooks :
12
+ - id : trailing-whitespace
13
+ - id : end-of-file-fixer
14
+
15
+ - repo : https://github.com/psf/black
16
+ rev : 23.3.0
17
+ hooks :
18
+ - id : black
19
+ args : ["."]
20
+
21
+ - repo : https://github.com/pycqa/isort
22
+ rev : 5.12.0
23
+ hooks :
24
+ - id : isort
25
+ args : ["."]
Original file line number Diff line number Diff line change @@ -64,3 +64,13 @@ include = [
64
64
" /CHANGELOG.md" ,
65
65
" /.coveragerc" ,
66
66
]
67
+
68
+ [tool .black ]
69
+ line-length =80
70
+ extend-exclude =" _vendor"
71
+
72
+ [tool .isort ]
73
+ profile =" black"
74
+ line_length =80
75
+ known_first_party = [" securesystemslib" ]
76
+ extend_skip_glob =[" */_vendor/*" ]
Original file line number Diff line number Diff line change @@ -72,10 +72,8 @@ deps =
72
72
-r{toxinidir}/requirements-pinned.txt
73
73
-r{toxinidir}/requirements-lint.txt
74
74
commands =
75
- # TODO: Move configs to pyproject.toml
76
- black --check --diff --line-length =80 --extend-exclude =_vendor .
77
- isort --check --diff --line-length =80 --extend-skip-glob =' */_vendor/*' \
78
- --profile =black --project =securesystemslib .
75
+ black --check --diff .
76
+ isort --check --diff .
79
77
80
78
pylint -j 0 --rcfile =pylintrc securesystemslib tests
81
79
bandit --recursive securesystemslib --exclude _vendor
You can’t perform that action at this time.
0 commit comments