Skip to content

Commit

Permalink
Merge pull request #105 from jamesgetx/fix_workflow2
Browse files Browse the repository at this point in the history
ci: update tool.flake8 & tool.black in pyproject.toml
  • Loading branch information
jamesgetx authored Jul 19, 2023
2 parents af72d7c + c70e54c commit c6fc613
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/bkpaas-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
jobs:
check:
runs-on: macos-latest
continue-on-error: true
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand Down Expand Up @@ -92,4 +93,4 @@ jobs:
with:
files: |
Release.txt
sdks/bkpaas-auth/dist/*
sdks/bkpaas-auth/dist/*
16 changes: 16 additions & 0 deletions sdks/bkpaas-auth/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ skip-string-normalization = 'true'
exclude = '''
/(
.*/migrations/.*
| .+/dist/.*
)/
'''

Expand All @@ -45,3 +46,18 @@ include_trailing_comma = 'true'
force_grid_wrap = 0
use_parentheses = 'true'
line_length = 119
# ignore example
skip_glob = ["*/dist/**"]

[tool.flake8]
ignore = "C901,E203,W503"
max-line-length = 119
max-complexity = 12
format = "pylint"
# ignore example
exclude = "*.pyc,.git,__pycache__,*/dist/*,*migrations*"

[tool.mypy]
ignore_missing_imports = true
show_error_codes = true
check_untyped_defs = true

0 comments on commit c6fc613

Please sign in to comment.