Skip to content
This repository was archived by the owner on Jun 28, 2023. It is now read-only.

Commit 1e27f8d

Browse files
committed
Fix Pylint errors
1 parent 0013813 commit 1e27f8d

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

everywhere/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
'''
2+
project interface
3+
'''
4+
5+
16
from .base import fib, hello, add42
27

3-
version = "0.0.3"
8+
VERSION = "0.0.4"

everywhere/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4+
'''
5+
basic functions
6+
'''
7+
48

59
def fib(number: int) -> int:
610
'''

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import find_packages, setup
22

33

4-
version = __import__('everywhere').version
4+
version = __import__('everywhere').VERSION
55
exclude_from_packages = []
66
requires = []
77

tests/test_everywhere.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
from everywhere import fib, hello, add42
1+
'''
2+
Project's testing code
3+
'''
4+
25
import pytest
6+
from everywhere import fib, hello, add42
37

48

59
@pytest.mark.parametrize("test_input, expected", [
@@ -12,10 +16,16 @@
1216
(6, 8),
1317
])
1418
def test_fib(test_input, expected):
19+
'''
20+
test fib
21+
'''
1522
assert fib(test_input) == expected
1623

1724

1825
def test_hello():
26+
'''
27+
test hello
28+
'''
1929
assert hello() == "Hello World"
2030

2131

@@ -26,4 +36,7 @@ def test_hello():
2636
(-2, 40),
2737
])
2838
def test_add42(test_input, expected):
39+
'''
40+
test add42
41+
'''
2942
assert add42(test_input) == expected

0 commit comments

Comments
 (0)