Skip to content

Commit

Permalink
feat(app):
Browse files Browse the repository at this point in the history
- test llm model capacity
- add flake8 config
  • Loading branch information
MorvanZhou committed Jun 21, 2024
1 parent fa55eab commit d106295
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 30 deletions.
27 changes: 0 additions & 27 deletions .flake8

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:
- name: Lint with tests
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 ./src --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 ./src --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test
run: |
python -m unittest discover -s tests -t . -p "test_*.py"
Expand Down
28 changes: 28 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,31 @@ remote =
motor>=3.3.2
elasticsearch[async]~=8.11.0
cos-python-sdk-v5~=1.9.29

[flake8]
per-file-ignores =
*/__init__.py: F401
ignore = C901,E126,E501
exclude =
/venv,
/.tox,
/**/.data,
/tests,
/**/*.egg-info,
/dist,
/logs,
**/__pycache__,
/.run,
**/.env*,
/.gitignore,
/.pylintrc,
/.dockerignore,
.idea,
.git,
.vscode,
*.suo,
*.ntvs*,
*.njsproj,
*.sln,
*.sw?,
/temp,
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
requires = tox-conda
minversion = 3.8.0
envlist = py{38,39,310,311}
envlist = py{38,39,310,311,312}
isolated_build = true
skipsdist = true
skip_missing_interpreters = true
Expand Down

0 comments on commit d106295

Please sign in to comment.