Skip to content

Commit efcd2ad

Browse files
author
Jinay Shah
committed
Test 22
1 parent 93df5e3 commit efcd2ad

File tree

4 files changed

+23
-8
lines changed

4 files changed

+23
-8
lines changed

.github/workflows/continous_integration.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,13 @@ jobs:
3333
run: |
3434
python -m pip install --upgrade pip
3535
pip install -r requirements.txt
36-
# - name: Lint with flake8
37-
# run: |
38-
# pip install -q wemake-python-styleguide
39-
# wget "https://raw.githubusercontent.com/ebot7/eb7-styleguide/master/settings/setup_ml_githooks.cfg"
40-
# flake8 pgb/ --config=setup_ml_githooks.cfg
41-
# rm setup_ml_githooks.cfg
42-
# with:
43-
# - fail_ci_if_error: true
36+
- name: Formatting check
37+
run: |
38+
pip install -qU autoflake==1.4 docformatter==1.3.1 black==20.8b1
39+
autoflake --check --expand-star-imports --remove-all-unused-imports --ignore-init-module-imports --remove-duplicate-keys --remove-unused-variables {{ env.PYTHON_FILES }}
40+
docformatter --check --make-summary-multi-line --pre-summary-newline {{ env.PYTHON_FILES }}
41+
isort --check-only {{ env.PYTHON_FILES }}
42+
black --check {{ env.PYTHON_FILES }} -l 79
4443
- name: Test with pytest
4544
run: |
4645
pip install pytest==5.3.5 coverage==4.5.4

pgb/pow4.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from pgb import pow3
2+
import os
3+
def pow(a: int, b: int) -> int:
4+
"""
5+
Power of two number
6+
7+
Args:
8+
a (somethibng): First argument
9+
b (int): Second argument
10+
11+
Returns:
12+
Power of second arguments on the base of first argument
13+
"""
14+
return a ** b

requirements.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest>=6.0.2,<7

requirements4.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest>=6.0.2,<7

0 commit comments

Comments
 (0)