Skip to content

Commit 35c0014

Browse files
committed
ci: increase allowed code like length to 100
1 parent ef09664 commit 35c0014

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
max-line-length = 100
3+
exclude = venv

.github/workflows/pipeline.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ permissions:
1515
jobs:
1616
linting:
1717
runs-on: ubuntu-latest
18-
defaults:
19-
run:
20-
working-directory: rates
2118
steps:
2219
- uses: actions/checkout@v3
2320

@@ -27,16 +24,11 @@ jobs:
2724
python-version: ${{ env.PYTHON_VERSION }}
2825
cache: "pip"
2926

30-
- name: Create and start virtual environment
31-
run: |
32-
python -m venv venv
33-
source venv/bin/activate
34-
3527
- name: Install dependencies
36-
run: pip install -r requirements.txt.lock
28+
run: pip install black flake8
3729

3830
- name: Check Formatting and linting
39-
run: black ./ --check && flake8 --exclude ./venv/
31+
run: black ./ --check && flake8
4032

4133
static-code-analysis:
4234
runs-on: ubuntu-latest
@@ -51,11 +43,6 @@ jobs:
5143
python-version: ${{ env.PYTHON_VERSION }}
5244
cache: "pip"
5345

54-
- name: Create and start virtual environment
55-
run: |
56-
python -m venv venv
57-
source venv/bin/activate
58-
5946
- name: Install dependencies
6047
run: pip install bandit
6148

@@ -78,11 +65,6 @@ jobs:
7865
python-version: ${{ env.PYTHON_VERSION }}
7966
cache: "pip"
8067

81-
- name: Create and start virtual environment
82-
run: |
83-
python -m venv venv
84-
source venv/bin/activate
85-
8668
- name: Install dependencies
8769
run: pip install safety
8870

0 commit comments

Comments
 (0)