File tree 4 files changed +23
-8
lines changed
4 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,13 @@ jobs:
33
33
run : |
34
34
python -m pip install --upgrade pip
35
35
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
44
43
- name : Test with pytest
45
44
run : |
46
45
pip install pytest==5.3.5 coverage==4.5.4
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ pytest>=6.0.2,<7
Original file line number Diff line number Diff line change
1
+ pytest>=6.0.2,<7
You can’t perform that action at this time.
0 commit comments