Skip to content

Commit a461651

Browse files
committed
Testing testing
1 parent b37efb4 commit a461651

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Pre-Tests code smell validation
3232
run: |
3333
pycodestyle -v --ignore=E501,E722 bitmath/__init__.py tests/*.py
34-
pyflakes bitmath/__init__.py tests/*.py
34+
flake8 --select=F bitmath/__init__.py tests/*.py
3535
3636
- name: Run Unit Tests
3737
run: |

bitmath/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def unit(self):
304304
>>> Byte(1.1).unit == 'Bytes'
305305
>>> Gb(2).unit == 'Gbs'
306306
"""
307-
global format_plural
307+
global format_plural # noqa: F841
308308

309309
if self.prefix_value == 1:
310310
# If it's a '1', return it singular, no matter what
@@ -383,12 +383,12 @@ def from_other(cls, item):
383383
def __repr__(self):
384384
"""Representation of this object as you would expect to see in an
385385
interpreter"""
386-
global _FORMAT_REPR
386+
global _FORMAT_REPR # noqa: F841
387387
return self.format(_FORMAT_REPR)
388388

389389
def __str__(self):
390390
"""String representation of this object"""
391-
global format_string
391+
global format_string # noqa: F841
392392
return self.format(format_string)
393393

394394
def format(self, fmt):

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pyflakes
1+
flake8
22
pycodestyle
33
pytest
44
pytest-cov

0 commit comments

Comments
 (0)