Skip to content

Commit ebbe94c

Browse files
authored
Merge pull request #20 from chhsiao1981/lint
add flake8 and lint
2 parents bb634ce + c49f868 commit ebbe94c

4 files changed

Lines changed: 22 additions & 2 deletions

File tree

File renamed without changes.

project/{{cookiecutter.project}}/pyproject.toml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ authors = [
1414
]
1515
description = ''
1616
readme = 'README.md'
17-
license = {file = 'LICENSE.txt'}
17+
license = {file = 'LICENSE'}
1818
keywords = [
1919
]
2020
classifiers = [
@@ -35,3 +35,17 @@ classifiers = [
3535
exclude = [
3636
'tests*',
3737
]
38+
[tool.flake8]
39+
max-line-length = 100
40+
extend-ignore = [
41+
# See https://github.com/PyCQA/pycodestyle/issues/373
42+
'E203',
43+
]
44+
exclude = [
45+
'.git',
46+
'__pycache__',
47+
'.cc',
48+
'.github',
49+
'__init__.py',
50+
'.venv',
51+
]

requirements-dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
cookiecutter==2.6.0
2-
pytest==7.4.3
2+
pytest==8.3.4
3+
Flake8-pyproject==1.2.3

scripts/lint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
echo -e "\x1b[1;32m[INFO]\x1b[m to flake8 pyutil_cfg tests"
4+
flake8 .
5+
echo -e "\x1b[1;32m[INFO]\x1b[m flake8 done"

0 commit comments

Comments
 (0)