-
Notifications
You must be signed in to change notification settings - Fork 4
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 #15 from mmzeynalli/feature/v2
New Structure
- Loading branch information
Showing
48 changed files
with
2,033 additions
and
1,220 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 |
---|---|---|
|
@@ -163,4 +163,6 @@ cython_debug/ | |
#.idea/ | ||
|
||
# User Defined | ||
test.py | ||
test.py | ||
*.lcov | ||
site |
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 |
---|---|---|
@@ -1,4 +1,36 @@ | ||
## v2.0.0 | ||
|
||
[GitHub release](https://github.com/mmzeynalli/integrify/releases/tag/v2.0.0) | ||
|
||
### What's Changed | ||
|
||
#### Fixes | ||
|
||
* Changed the whole structure and released a new version with better handling of requests and responses. | ||
|
||
## v1.0.3 (2024-10-07) | ||
|
||
[GitHub release](https://github.com/mmzeynalli/integrify/releases/tag/v1.0.3) | ||
|
||
### What's Changed | ||
|
||
#### Fixes | ||
|
||
* Replaced `StrEnum` with `str, Enum` to be python <3.11 friendly. | ||
|
||
## v1.0.1 (2024-09-08) | ||
|
||
### What's Changed | ||
|
||
#### Fixes | ||
|
||
* Updated version for PyPI | ||
|
||
## v1.0.0 (2024-09-27) | ||
|
||
### What's Changed | ||
|
||
#### New integrations | ||
|
||
* Added EPoint intergration | ||
* Added EPoint documentation |
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,24 @@ | ||
# This CITATION.cff file was generated with cffinit. | ||
# Visit https://bit.ly/cffinit to generate yours today! | ||
|
||
cff-version: 1.2.0 | ||
title: Integrify | ||
message: >- | ||
If you use this software, please cite it using the | ||
metadata from this file. | ||
type: software | ||
authors: | ||
- given-names: Miradil | ||
family-names: Zeynalli | ||
email: [email protected] | ||
- given-names: Vahid | ||
family-names: Hasanzada | ||
email: [email protected] | ||
repository-code: 'https://github.com/mmzeynalli/integrify' | ||
url: 'https://integrify.mmzeynalli.dev/' | ||
abstract: >- | ||
Integrify is a request library that eases the API | ||
integrations. | ||
keywords: | ||
- integrify | ||
license: GPL-3.0-or-later |
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 @@ | ||
Proyektə öz tövhənizi qatmaq üçün, zəhmət olmazsa, [bu dokumentasiyanı](http://integrify.mmzeynalli.dev/resources/contributing/) oxuyun. |
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 |
---|---|---|
@@ -1,25 +1,118 @@ | ||
ifdef OS | ||
PYTHON ?= .venv/Scripts/python.exe | ||
TYPE_CHECK_COMMAND ?= echo Pytype package doesn't support Windows OS | ||
else | ||
PYTHON ?= .venv/bin/python | ||
TYPE_CHECK_COMMAND ?= ${PYTHON} -m pytype --config=pytype.cfg src | ||
endif | ||
.PHONY: .poetry ## Check that Poetry is installed | ||
.poetry: | ||
@poetry -V || echo 'Please install Poetry: https://python-poetry.org/docs/#installation' | ||
|
||
SETTINGS_FILENAME = pyproject.toml | ||
.PHONY: .pre-commit ## Check that pre-commit is installed | ||
.pre-commit: | ||
@pre-commit -V || echo 'Please install pre-commit: https://pre-commit.com/' | ||
|
||
.PHONY: install | ||
install: | ||
.PHONY: install ## Install the package, dependencies, and pre-commit for local development | ||
install: .poetry | ||
poetry install --no-interaction | ||
|
||
.PHONY: install-main | ||
install-main: | ||
install-main: .poetry | ||
poetry install --no-interaction --only main | ||
|
||
.PHONY: refresh-lockfiles ## Sync lockfiles with requirements files. | ||
refresh-lockfiles: .poetry | ||
poetry lock --no-update | ||
|
||
.PHONY: rebuild-lockfiles ## Rebuild lockfiles from scratch, updating all dependencies | ||
rebuild-lockfiles: .poetry | ||
poetry lock | ||
|
||
.PHONY: format ## Auto-format python source files | ||
format: .poetry | ||
poetry run ruff check --fix | ||
poetry run ruff format | ||
|
||
.PHONY: lint ## Lint python source files | ||
lint: .poetry | ||
poetry run ruff check | ||
poetry run ruff format --check | ||
|
||
.PHONY: type-check ## Type-check python source files | ||
type-check: .poetry | ||
poetry run mypy . | ||
|
||
.PHONY: test ## Run all tests | ||
test: .poetry | ||
poetry run coverage run -m pytest --durations=10 | ||
|
||
.PHONY: testcov ## Run tests and generate a coverage report | ||
testcov: test | ||
@echo "building coverage html" | ||
@poetry run coverage html | ||
@echo "building coverage lcov" | ||
@poetry run coverage lcov | ||
|
||
.PHONY: testcov-badge ## Generate badge after tests | ||
testcov-badge: | ||
@poetry run coverage-badge -o coverage.svg | ||
|
||
lang=az | ||
|
||
.PHONY: docs ## Generate the docs | ||
docs: | ||
poetry run mkdocs build -f docs/${lang}/mkdocs.yml --strict | ||
|
||
.PHONY: docs-serve ## Serve the docs | ||
docs-serve: | ||
poetry run mkdocs serve -f docs/${lang}/mkdocs.yml | ||
|
||
.PHONY: secure | ||
secure: | ||
poetry run bandit -r integrify --config ${SETTINGS_FILENAME} | ||
poetry run bandit -r integrify --config pyproject.toml | ||
|
||
.PHONY: all ## Run the standard set of checks performed in CI | ||
all: lint testcov | ||
|
||
.PHONY: clean ## Clear local caches and build artifacts | ||
clean: | ||
ifeq ($(OS),Windows_NT) | ||
del /s /q __pycache__ | ||
del /s /q *.pyc *.pyo | ||
del /s /q *~ .*~ | ||
del /s /q .cache | ||
del /s /q .pytest_cache | ||
del /s /q .ruff_cache | ||
del /s /q htmlcov | ||
del /s /q *.egg-info | ||
del /s /q .coverage .coverage.* | ||
del /s /q build | ||
del /s /q dist | ||
del /s /q site | ||
del /s /q docs\_build | ||
del /s /q coverage.xml | ||
else | ||
rm -rf `find . -name __pycache__` | ||
rm -f `find . -type f -name '*.py[co]'` | ||
rm -f `find . -type f -name '*~'` | ||
rm -f `find . -type f -name '.*~'` | ||
rm -rf .cache | ||
rm -rf .pytest_cache | ||
rm -rf .ruff_cache | ||
rm -rf htmlcov | ||
rm -rf *.egg-info | ||
rm -f .coverage | ||
rm -f .coverage.* | ||
rm -rf build | ||
rm -rf dist | ||
rm -rf site | ||
rm -rf docs/_build | ||
rm -rf coverage.xml | ||
endif | ||
|
||
.PHONY: new-integration ## Create new integration folder | ||
new-integration: | ||
mkdir src/integrify/${name} | ||
touch src/integrify/${name}/__init__.py src/integrify/${name}/client.py src/integrify/${name}/handlers.py src/integrify/${name}/env.py | ||
mkdir src/integrify/${name}/schemas | ||
touch src/integrify/${name}/schemas/__init__.py src/integrify/${name}/schemas/request.py src/integrify/${name}/schemas/response.py; | ||
|
||
mkdir tests/${name} | ||
touch tests/${name}/__init__.py tests/${name}/conftest.py tests/${name}/mocks.py | ||
|
||
.PHONY: test | ||
test: | ||
poetry run pytest -s | ||
mkdir docs/${lang}/docs/${name} | ||
touch docs/${lang}/docs/${name}/about.md docs/${lang}/docs/${name}/api-reference.md |
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
File renamed without changes
File renamed without changes
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
11 changes: 7 additions & 4 deletions
11
docs/epoint/api-reference.md → docs/az/docs/epoint/api-reference.md
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.