Skip to content

Commit 7109a9c

Browse files
author
bkwi
authored
Added static code analysis (#55)
1 parent 3c96ce1 commit 7109a9c

File tree

4 files changed

+23
-8
lines changed

4 files changed

+23
-8
lines changed

.flake8

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[flake8]
2+
max-line-length = 120
3+
per-file-ignores =
4+
filestack/__init__.py:F401,E402
5+
filestack/models/__init__.py:F401
6+
filestack/mixins/__init__.py:F401

.github/workflows/tests.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ name: Run Tests
33
on: [push]
44

55
jobs:
6-
build:
7-
6+
tests:
87
runs-on: ${{ matrix.os }}
98
strategy:
109
matrix:
1110
os: [ubuntu-latest, macos-latest, windows-latest]
1211
python-version: [3.5, 3.6, 3.7, 3.8]
13-
1412
steps:
1513
- uses: actions/checkout@v2
1614
- name: Set up Python ${{ matrix.python-version }}
@@ -21,3 +19,18 @@ jobs:
2119
run: pip install -r requirements.txt
2220
- name: Run tests
2321
run: pytest -v --cov=filestack tests
22+
23+
static-analysis:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Set up Python
28+
uses: actions/setup-python@v2
29+
with:
30+
python-version: 3.8
31+
- name: Install tools
32+
run: pip install flake8 bandit
33+
- name: Run analysis
34+
run: |
35+
flake8 filestack/
36+
bandit -r -lll filestack/

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def read_version():
3434
'Programming Language :: Python :: 3.5',
3535
'Programming Language :: Python :: 3.6',
3636
'Programming Language :: Python :: 3.7',
37+
'Programming Language :: Python :: 3.8',
3738
'Topic :: Internet :: WWW/HTTP',
3839
],
3940
)

tox.ini

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)