Skip to content

Commit aed6e06

Browse files
committed
Adds prospector static code analysis tool
1 parent abc50ec commit aed6e06

File tree

3 files changed

+111
-4
lines changed

3 files changed

+111
-4
lines changed

.github/workflows/tool-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
3939
- name: Install python requirements
4040
run: python -m pip install -r packaging_automation/requirements.txt
4141

42+
- name: Run static code analysis
43+
run: python -m prospector
44+
4245
- name: Unit tests for "Update Package Properties"
4346
run: python -m pytest -q packaging_automation/tests/test_update_package_properties.py
4447

packaging_automation/requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ SQLAlchemy
1515
urllib3
1616
wheel
1717
python-dotenv
18+
prospector[with_everything]

packaging_automation/requirements.txt

Lines changed: 107 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@
44
#
55
# pip-compile
66
#
7+
astroid==2.7.3
8+
# via
9+
# pylint
10+
# pylint-celery
11+
# pylint-flask
12+
# requirements-detector
713
attrs==21.2.0
814
# via pytest
15+
bandit==1.7.0
16+
# via prospector
917
certifi==2021.5.30
1018
# via requests
1119
cffi==1.14.5
@@ -16,44 +24,112 @@ deprecated==1.2.12
1624
# via pygithub
1725
docker==5.0.0
1826
# via -r requirements.in
27+
docutils==0.17.1
28+
# via pyroma
29+
dodgy==0.2.1
30+
# via prospector
31+
flake8-polyfill==1.0.2
32+
# via pep8-naming
33+
flake8==3.8.4
34+
# via flake8-polyfill
35+
frosted==1.4.1
36+
# via prospector
1937
gitdb==4.0.7
2038
# via gitpython
2139
gitpython==3.1.18
22-
# via -r requirements.in
40+
# via
41+
# -r requirements.in
42+
# bandit
2343
greenlet==1.1.0
2444
# via sqlalchemy
2545
idna==2.10
2646
# via requests
2747
iniconfig==1.1.1
2848
# via pytest
49+
isort==5.9.3
50+
# via pylint
2951
jinja2==3.0.1
3052
# via -r requirements.in
53+
lazy-object-proxy==1.6.0
54+
# via astroid
3155
markupsafe==2.0.1
3256
# via jinja2
57+
mccabe==0.6.1
58+
# via
59+
# flake8
60+
# prospector
61+
# pylint
62+
mypy-extensions==0.4.3
63+
# via mypy
64+
mypy==0.910
65+
# via prospector
3366
packaging==20.9
3467
# via pytest
3568
parameters-validation==1.2.0
3669
# via -r requirements.in
3770
pathlib2==2.3.5
3871
# via -r requirements.in
72+
pbr==5.6.0
73+
# via stevedore
74+
pep8-naming==0.10.0
75+
# via prospector
76+
pies==2.6.7
77+
# via frosted
78+
platformdirs==2.3.0
79+
# via pylint
3980
pluggy==0.13.1
4081
# via pytest
82+
prospector[with_everything]==1.5.0.1
83+
# via -r requirements.in
4184
psycopg2==2.9.1
4285
# via -r requirements.in
4386
py==1.10.0
4487
# via pytest
88+
pycodestyle==2.6.0
89+
# via
90+
# flake8
91+
# prospector
4592
pycparser==2.20
4693
# via cffi
4794
pycurl==7.43.0.6
4895
# via -r requirements.in
96+
pydocstyle==6.1.1
97+
# via prospector
98+
pyflakes==2.2.0
99+
# via
100+
# flake8
101+
# prospector
49102
pygithub==1.55
50103
# via -r requirements.in
104+
pygments==2.10.0
105+
# via pyroma
51106
pyjwt==2.1.0
52107
# via pygithub
108+
pylint-celery==0.3
109+
# via prospector
110+
pylint-django==2.4.4
111+
# via prospector
112+
pylint-flask==0.6
113+
# via prospector
114+
pylint-plugin-utils==0.6
115+
# via
116+
# prospector
117+
# pylint-celery
118+
# pylint-django
119+
# pylint-flask
120+
pylint==2.10.2
121+
# via
122+
# prospector
123+
# pylint-celery
124+
# pylint-django
125+
# pylint-flask
126+
# pylint-plugin-utils
53127
pynacl==1.4.0
54128
# via pygithub
55129
pyparsing==2.4.7
56130
# via packaging
131+
pyroma==3.2
132+
# via prospector
57133
pytest==6.2.4
58134
# via -r requirements.in
59135
python-dotenv==0.19.0
@@ -63,29 +139,56 @@ python-gnupg==0.4.7
63139
python-string-utils==1.0.0
64140
# via -r requirements.in
65141
pyyaml==5.4.1
66-
# via -r requirements.in
142+
# via
143+
# -r requirements.in
144+
# bandit
145+
# prospector
67146
requests==2.25.1
68147
# via
69148
# -r requirements.in
70149
# docker
71150
# pygithub
151+
# pyroma
152+
requirements-detector==0.7
153+
# via prospector
154+
setoptconf==0.2.0
155+
# via prospector
72156
six==1.16.0
73157
# via
158+
# bandit
74159
# pathlib2
75160
# pynacl
76161
smmap==4.0.0
77162
# via gitdb
163+
snowballstemmer==2.1.0
164+
# via pydocstyle
78165
sqlalchemy==1.4.20
79166
# via -r requirements.in
167+
stevedore==3.4.0
168+
# via bandit
80169
toml==0.10.2
81-
# via pytest
170+
# via
171+
# mypy
172+
# prospector
173+
# pylint
174+
# pytest
175+
# vulture
176+
typing-extensions==3.10.0.2
177+
# via mypy
82178
urllib3==1.26.6
83179
# via
84180
# -r requirements.in
85181
# requests
182+
vulture==2.3
183+
# via prospector
86184
websocket-client==1.1.0
87185
# via docker
88186
wheel==0.36.2
89187
# via -r requirements.in
90188
wrapt==1.12.1
91-
# via deprecated
189+
# via
190+
# astroid
191+
# deprecated
192+
193+
# The following packages are considered to be unsafe in a requirements file:
194+
# setuptools

0 commit comments

Comments
 (0)