-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
33 lines (33 loc) · 1.08 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
repos:
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
args: [ --skip-string-normalization, --skip-magic-trailing-comma, --line-length=79 ]
language_version: python3
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args: [ --remove-all-unused-imports, --in-place ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: flake8
- repo: local
hooks:
- id: check_env_exists
name: check if bandit_agents_dev_env.yml exists
entry: echo -e bandit_agents_dev_env.yml
language: system
- id: check_env_lock_exists
name: check that bandit-agents-dev-env-64.lock file exists
entry: echo -e bandit-agents-dev-env-64.lock
language: system
- id: run unit tests
name: unit tests running if code change
entry: conda run -n bandit_agents_dev_env python3 -m unittest discover
language: system
'types': [python]
pass_filenames: false
stages: [pre-commit]