-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from reagento/refactor/setup_ci
pyproject.toml, ruff
- Loading branch information
Showing
23 changed files
with
188 additions
and
96 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,42 @@ | ||
line-length = 79 | ||
target-version="py38" | ||
src = ["src"] | ||
|
||
include = ["src/**.py", "tests/**.py"] | ||
exclude = ["src/dishka/_adaptix/**"] | ||
|
||
lint.select = [ | ||
"ALL" | ||
] | ||
lint.ignore = [ | ||
"ARG", | ||
"ANN", | ||
"D", | ||
"EM101", | ||
"EM102", | ||
"PT001", | ||
"PT023", | ||
"SIM108", | ||
"SIM114", | ||
"TRY003", | ||
"PLW2901", | ||
"RET505", | ||
"RET506", | ||
"PLR0913", | ||
"UP038", | ||
"TCH001", | ||
"FA100", | ||
# tempraty disabled | ||
"PGH005", | ||
"PLR2004", | ||
"N818", # compatibility issue | ||
] | ||
|
||
[lint.per-file-ignores] | ||
"tests/**" = ["TID252", "PLR2004", "S101", "A002"] | ||
|
||
[lint.isort] | ||
no-lines-before = ["local-folder"] | ||
|
||
[lint.flake8-tidy-imports] | ||
ban-relative-imports = "parents" |
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,38 @@ | ||
[build-system] | ||
requires = ["setuptools>=66.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
|
||
[project] | ||
name = "dataclass_rest" | ||
version = "0.4" | ||
readme = "README.md" | ||
authors = [ | ||
{ name = "Andrey Tikhonov", email = "[email protected]" }, | ||
] | ||
license = { text = "Apache-2.0" } | ||
description = "An utility for writing simple clients for REST like APIs" | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Software Development :: Libraries", | ||
"Typing :: Typed", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
] | ||
dependencies = [ | ||
"adaptix", | ||
] | ||
|
||
[project.urls] | ||
"Source" = "https://github.com/reagento/dataclass-rest" | ||
"Homepage" = "https://github.com/reagento/dataclass-rest" | ||
"Bug Tracker" = "https://github.com/reagento/dataclass-rest/issues" | ||
|
||
|
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 |
---|---|---|
|
@@ -5,4 +5,6 @@ requests | |
requests-mock | ||
mypy | ||
pytest | ||
pytest-asyncio | ||
pytest-asyncio | ||
|
||
ruff==0.5.* |
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
3 changes: 2 additions & 1 deletion
3
dataclass_rest/base_client.py → src/dataclass_rest/base_client.py
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
File renamed without changes.
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
dataclass_rest/http_request.py → src/dataclass_rest/http_request.py
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
3 changes: 2 additions & 1 deletion
3
dataclass_rest/methodspec.py → src/dataclass_rest/methodspec.py
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
Empty file.
File renamed without changes.
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
Oops, something went wrong.