Skip to content

Commit

Permalink
fix issues from sourcery's review
Browse files Browse the repository at this point in the history
  • Loading branch information
bleudev committed Jul 1, 2024
1 parent 5a22133 commit 6bcc0a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
4 changes: 2 additions & 2 deletions examples/ustack.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Introduction

Stack is list with possibility to get only top element with useful features. [Wiki](https://en.wikipedia.org/wiki/Stack_(abstract_data_type))
Stack is a list with the possibility to get only the top element with useful features. [Wiki](https://en.wikipedia.org/wiki/Stack_(abstract_data_type))

Firstly, import `Stack` from `ufpy`

Expand Down Expand Up @@ -107,7 +107,7 @@ s = Stack()
s.is_empty() # True
```

Also, you can use `if Stack` syntax for checking that stack is not empty
You can also use the `if Stack` syntax to check if the stack is not empty
```python
s = Stack()
if s:
Expand Down
15 changes: 2 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from setuptools import setup
from setuptools import setup, find_packages

from ufpy import __version__

Expand All @@ -16,17 +16,6 @@
github_url = f'https://github.com/{organization_name}/{project_name}'


def __package(name: str) -> str:
return f'{project_name}.{name}'


def __gen_packages_list(*packages: str) -> list[str]:
res = [project_name]
for i in packages:
res.append(__package(i))
return res


setup(
name=project_name,
version=__version__,
Expand All @@ -37,7 +26,7 @@ def __gen_packages_list(*packages: str) -> list[str]:
long_description=long_description,
long_description_content_type='text/markdown',
url=github_url,
packages=__gen_packages_list('typ', 'ustl', 'path', 'github'),
packages=find_packages(),
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.12',
Expand Down

0 comments on commit 6bcc0a6

Please sign in to comment.