mirror of
https://github.com/TheR1D/shell_gpt.git
synced 2026-07-03 14:10:18 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user