Refactoring, more tests, lint fixes, optimise

* Refactoring, more tests, lint fixes, optimise
* Lint CI fixes
* Changing version, readme help fixes
* Validation rule, validation tests, minor improvements
This commit is contained in:
Farkhod Sadykov
2023-04-02 02:52:55 +02:00
committed by GitHub
parent a0eb1ad720
commit 763fef15d3
17 changed files with 514 additions and 237 deletions
+8 -9
View File
@@ -1,4 +1,4 @@
name: Run linters and unittests
name: Lint and Test
on:
push:
@@ -30,19 +30,18 @@ jobs:
- name: Analysing the code with pylint
run: |
pylint \
*.py \
./sgpt \
./tests \
--disable=fixme \
--disable=cyclic-import \
--disable=useless-import-alias \
--disable=missing-function-docstring \
--disable=too-many-arguments \
--disable=missing-module-docstring \
--disable=import-error \
--disable=missing-class-docstring \
--disable=too-many-instance-attributes \
--disable=too-many-function-args \
--disable=unspecified-encoding \
--max-line-length=120
- name: Analysing the code with black
run: |
black --target-version py310 -l 120 *.py
run: black ./sgpt ./tests --check --target-version py310
- name: Run unittests
run: |
export OPENAI_API_KEY=test_api_key