Skip to content

Commit

Permalink
fix: 🐛 Flake8 cannot be configured via pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoQi99 committed Aug 28, 2024
1 parent 7118e83 commit d9f6778
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ jobs:
- name: Install dependencies
run: |
pip install --upgrade pip
pip install setuptools
pip install .[dev]
- name: Lint with flake8
run: |
# Run flake8 on Python files
flake8 pyencrypt --count --show-source --max-complexity=10 --statistics
pflake8 pyencrypt --count --show-source --max-complexity=10 --statistics
# Run flake8 on test files
flake8 tests --count --show-source --max-complexity=10 --statistics --ignore F401,W503
pflake8 tests --count --show-source --max-complexity=10 --statistics --ignore F401,W503
- name: Test with pytest
run: |
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ dev = [
"pytest",
"ipython",
"flake8",
"pyproject-flake8",
]

[project.scripts]
Expand Down

0 comments on commit d9f6778

Please sign in to comment.