Skip to content

Commit

Permalink
Merge pull request #20 from chhsiao1981/lint
Browse files Browse the repository at this point in the history
add flake8 and lint
  • Loading branch information
chhsiao1981 authored Feb 7, 2025
2 parents bb634ce + c49f868 commit ebbe94c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
File renamed without changes.
16 changes: 15 additions & 1 deletion project/{{cookiecutter.project}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ authors = [
]
description = ''
readme = 'README.md'
license = {file = 'LICENSE.txt'}
license = {file = 'LICENSE'}
keywords = [
]
classifiers = [
Expand All @@ -35,3 +35,17 @@ classifiers = [
exclude = [
'tests*',
]
[tool.flake8]
max-line-length = 100
extend-ignore = [
# See https://github.com/PyCQA/pycodestyle/issues/373
'E203',
]
exclude = [
'.git',
'__pycache__',
'.cc',
'.github',
'__init__.py',
'.venv',
]
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
cookiecutter==2.6.0
pytest==7.4.3
pytest==8.3.4
Flake8-pyproject==1.2.3
5 changes: 5 additions & 0 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

echo -e "\x1b[1;32m[INFO]\x1b[m to flake8 pyutil_cfg tests"
flake8 .
echo -e "\x1b[1;32m[INFO]\x1b[m flake8 done"

0 comments on commit ebbe94c

Please sign in to comment.