-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added documentation and job to publish
- Loading branch information
dmy.berezovskyi
committed
Jan 2, 2025
1 parent
0cad139
commit 2f8b43b
Showing
7 changed files
with
111 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright (c) 2011-2024 GitHub Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Ruff Configuration | ||
line-length = 85 | ||
indent-width = 4 | ||
output-format = "grouped" | ||
respect-gitignore = true | ||
target-version = "py312" | ||
|
||
[lint] | ||
select = [ | ||
"E", # Error codes | ||
"F", # Pyflakes | ||
"W", # Warnings | ||
"C", # Complexity | ||
"N", # Naming conventions | ||
"I", # Ignored errors | ||
"E501", # Line too long | ||
"N805", # First argument should be 'self' | ||
] | ||
fixable = ["ALL"] # All fixable errors will be automatically corrected | ||
|
||
# Ignored Errors | ||
ignore = [ | ||
"E731", # Do not assign a lambda expression, use a def instead | ||
"N801", # Function name should be lowercase | ||
"I001", # Import convention violation | ||
"F631", # Assert should not be used with a literal | ||
] | ||
|
||
# Regular expression for dummy variables | ||
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | ||
|
||
# Excluded Directories and Files | ||
exclude = [ | ||
".pytest_cache", | ||
"poetry.lock", | ||
"__pypackages__", | ||
".git", | ||
".env", | ||
".ruff_cache" | ||
] | ||
|
||
[format] | ||
exclude = ["__init__.py"] # Exclude __init__.py from formatting | ||
skip-magic-trailing-comma = true # Skip the trailing comma for magic trailing commas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from setuptools import setup, find_packages | ||
|
||
setup( | ||
name="turbopi_fast_sdk", | ||
version="0.1.0", | ||
description="Це Python SDK для керування апаратним забезпеченням Turbopi через швидку комунікацію.", | ||
long_description=open('README.md').read(), # Довгий опис буде зчитуватися з README.md | ||
long_description_content_type='text/markdown', | ||
author="Ваше ім'я", | ||
author_email="ваш_email@example.com", | ||
license="MIT", | ||
url="https://github.com/yourusername/turbopi_fast_sdk", | ||
packages=find_packages(), | ||
install_requires=[ | ||
# Ваші залежності | ||
], | ||
classifiers=[ | ||
"Programming Language :: Python :: 3.12", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
], | ||
) |