diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..72f70a1 --- /dev/null +++ b/.flake8 @@ -0,0 +1,4 @@ +[flake8] +exclude = build/*,.venv,venv +max-line-length = 128 +statistics = True \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7ace04..afcc35a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,4 +18,4 @@ jobs: python -m pip install --upgrade pip pip install flake8 - name: Run linting - run: flake8 --count --show-source --statistics \ No newline at end of file + run: flake8 --count --show-source --statistics --max-line-length=120 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index eb14eb2..2736606 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ name = "nanposweb" description = "" requires-python= ">=3.9" license = {text = "MIT"} -version = "1.1.2" +version = "1.1.3" dependencies = [ "Flask==2.2.3", "Flask-SQLAlchemy", @@ -22,15 +22,4 @@ dependencies = [ ] [project.optional-dependencies] -dev = ['flake8'] - -[tool.flake8] -max-line-length = 120 -exclude = [ - # No need to traverse our git directory - ".git", - # There's no value in checking cache directories - "__pycache__", - # Build directories - "build/*" -] \ No newline at end of file +dev = ['flake8'] \ No newline at end of file