File tree 2 files changed +5
-20
lines changed
2 files changed +5
-20
lines changed Original file line number Diff line number Diff line change
1
+ [flake8]
2
+ max-line-length = 100
3
+ exclude = venv
Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ permissions:
15
15
jobs :
16
16
linting :
17
17
runs-on : ubuntu-latest
18
- defaults :
19
- run :
20
- working-directory : rates
21
18
steps :
22
19
- uses : actions/checkout@v3
23
20
@@ -27,16 +24,11 @@ jobs:
27
24
python-version : ${{ env.PYTHON_VERSION }}
28
25
cache : " pip"
29
26
30
- - name : Create and start virtual environment
31
- run : |
32
- python -m venv venv
33
- source venv/bin/activate
34
-
35
27
- name : Install dependencies
36
- run : pip install -r requirements.txt.lock
28
+ run : pip install black flake8
37
29
38
30
- name : Check Formatting and linting
39
- run : black ./ --check && flake8 --exclude ./venv/
31
+ run : black ./ --check && flake8
40
32
41
33
static-code-analysis :
42
34
runs-on : ubuntu-latest
51
43
python-version : ${{ env.PYTHON_VERSION }}
52
44
cache : " pip"
53
45
54
- - name : Create and start virtual environment
55
- run : |
56
- python -m venv venv
57
- source venv/bin/activate
58
-
59
46
- name : Install dependencies
60
47
run : pip install bandit
61
48
78
65
python-version : ${{ env.PYTHON_VERSION }}
79
66
cache : " pip"
80
67
81
- - name : Create and start virtual environment
82
- run : |
83
- python -m venv venv
84
- source venv/bin/activate
85
-
86
68
- name : Install dependencies
87
69
run : pip install safety
88
70
You can’t perform that action at this time.
0 commit comments