-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.bellybutton.yml
47 lines (41 loc) · 1.01 KB
/
.bellybutton.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
settings:
all_files: &all_files !settings
included:
- ~+/bellybutton/*
excluded:
- ~+/.tox/*
allow_ignore: yes
tests_only: &tests_only !settings
included:
- ~+/tests/*
excluded:
- ~+/.tox/*
allow_ignore: yes
excluding_tests: &excluding_tests !settings
included:
- ~+/bellybutton/*
excluded:
- ~+/tests/*
- ~+/.tox/*
allow_ignore: yes
excluding_cli: &excluding_cli !settings
<<: *excluding_tests
excluded:
- ~+/tests/*
- ~+/.tox/*
- ~+/bellybutton/cli.py
default_settings: *excluding_tests
rules:
IllicitPrint:
description: Use of print outside the CLI module is disallowed.
expr: //Print | //Call[func/Name[@id='print' or @id='pprint']]
example: |
print(x)
settings: *excluding_cli
IllicitOpen:
description: Performing I/O outside the CLI module is disallowed.
expr: //Call[func/Name/@id='open']
example: |
with open('x') as f:
pass
settings: *excluding_cli