Skip to content

Commit 231351c

Browse files
committed
Pull flake8 out of tox
1 parent 948621a commit 231351c

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

.flake8

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
max-line-length=120
3+
exclude = docs/*,.tox/*

.github/workflows/flake8.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Check flake8
2+
3+
on:
4+
- pull_request
5+
jobs:
6+
check:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: TrueBrain/actions-flake8@v2

setup.cfg

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[metadata]
22
description_file = README.md
33
license_file = LICENSE.rst
4-
5-
[flake8]
6-
max-line-length=120

tox.ini

+3-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
[tox]
22
skipsdist = True
3-
envlist = py{36,37,38,39,py3,ston}-sqlalchemy{13,14}-{sqlite,mysql,mariadb,postgres}, flake8
3+
envlist = py{36,37,38,39,py3,ston}-sqlalchemy{13,14}-{sqlite,mysql,mariadb,postgres}
44

55
[gh-actions]
66
python =
77
3.6: py36
88
3.7: py37
99
3.8: py38
10-
3.9: py39, flake8
10+
3.9: py39
1111
pypy-3.7: pypy3
1212

1313
[testenv]
1414
commands =
1515
py.test --cov {envsitepackagesdir}/opentaxii {posargs}
1616
deps =
17-
sqlite,flake8: -rrequirements-dev.txt
17+
sqlite: -rrequirements-dev.txt
1818
mysql,mariadb: -rrequirements-dev-mysql.txt
1919
postgres-!pypy3: -rrequirements-dev-postgres.txt
2020
postgres-pypy3: -rrequirements-dev-postgres-pypy.txt
@@ -28,11 +28,3 @@ setenv =
2828
postgres: DBTYPE=postgres
2929
pypy3: PYTEST_ADDOPTS="--no-cov"
3030
usedevelop = True
31-
32-
[testenv:flake8]
33-
basepython = python3
34-
deps = flake8
35-
commands = flake8
36-
37-
[flake8]
38-
exclude = docs/*,.tox/*

0 commit comments

Comments
 (0)