Skip to content

Commit

Permalink
Release support for Python 3.8 and above versions
Browse files Browse the repository at this point in the history
Fixes #53
  • Loading branch information
amruthvvkp committed Sep 8, 2023
1 parent c8c7ffc commit e62bb89
Show file tree
Hide file tree
Showing 5 changed files with 1,243 additions and 1,172 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ ipython_config.py
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock
poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
Expand Down Expand Up @@ -164,4 +164,7 @@ junit/*

# PYPI Secrets
.pypirc
flaui_arch
flaui_arch

# Test Applications
test_applications
87 changes: 87 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
repos:
- repo: https://github.com/python-poetry/poetry
rev: "1.5.1"
hooks:
- id: poetry-check
name: Poetry Check
description: This hook runs poetry check.

- id: poetry-lock
name: Poetry Lock
description: This hook runs poetry lock.

- id: poetry-export
name: Poetry Export
description: This hook runs poetry export to export dependencies to requirements.txt file which helps to keep this repository tool agnostic.
args:
["--with", "dev", "-f", "requirements.txt", "-o", "requirements.txt"]
verbose: true

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
name: Trailing Whitespace
description: This hook removes trailing whitespace.

- id: end-of-file-fixer
name: End of File Fixer
description: This hook makes sure files end in a newline and only a newline.
exclude: ^.*\.egg-info/

- id: check-merge-conflict
name: Check Merge Conflict
description: This hook checks for files that contain merge conflict strings.

- id: check-case-conflict
name: Check Case Conflict
description: This hook checks for files that differ only in case.

- id: check-json
name: Check JSON
description: This hook checks that JSON files are valid.
exclude: ^(\.vscode|\.devcontainer)/.*\.json$

- id: check-toml
name: Check TOML
description: This hook checks that TOML files are valid.
exclude: tests/fixtures/invalid_lock/poetry\.lock

- id: check-yaml
name: Check YAML
description: This hook checks that YAML files are valid.

- id: pretty-format-json
name: Pretty Format JSON
args: [--autofix, --no-ensure-ascii, --no-sort-keys]
exclude: ^(\.vscode|\.devcontainer)/.*\.json$

- id: check-ast
name: Check AST
description: This hook checks that Python files parse as valid Python.

- id: debug-statements
name: Debug Statements
description: This hook checks for debugger imports and py37+ breakpoint() calls.

- id: check-docstring-first
name: Check Docstring First
description: This hook checks that files have a docstring as the first statement.

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.283
hooks:
- id: ruff
name: Ruff Attempt Auto-Fixes
description: This hook runs ruff and attempts auto-fixes.
types_or: [python, pyi, jupyter]
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/econchick/interrogate
rev: 1.5.0
hooks:
- id: interrogate
name: Interrogate
description: This hook runs interrogate checks.
args: [-vv, --config, pyproject.toml, --color]
pass_filenames: false
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,24 @@
[![GitHub contributors](https://img.shields.io/github/contributors/amruthvvkp/flaui-uiautomation-wrapper)](https://github.com/amruthvvkp/flaui-uiautomation-wrapper/graphs/contributors)
[![GitHub license](https://img.shields.io/github/license/amruthvvkp/flaui-uiautomation-wrapper)](https://github.com/amruthvvkp/flaui-uiautomation-wrapper/blob/master/LICENSE)
![GitHub branch checks state](https://img.shields.io/github/checks-status/amruthvvkp/flaui-uiautomation-wrapper/master)
![GitHub language count](https://img.shields.io/github/languages/count/amruthvvkp/flaui-uiautomation-wrapper)
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/amruthvvkp/flaui-uiautomation-wrapper)
![GitHub contributors](https://img.shields.io/github/contributors/amruthvvkp/flaui-uiautomation-wrapper)
![GitHub commits since latest release (by SemVer including pre-releases)](https://img.shields.io/github/commits-since/amruthvvkp/flaui-uiautomation-wrapper/latest/master)
![GitHub last commit](https://img.shields.io/github/last-commit/amruthvvkp/flaui-uiautomation-wrapper)
![GitHub](https://img.shields.io/github/license/amruthvvkp/flaui-uiautomation-wrapper)
![PyPI - Format](https://img.shields.io/pypi/format/flaui-uiautomation-wrapper)

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flaui-uiautomation-wrapper)
![PyPI - Unsupported Versions](https://img.shields.io/badge/Python-3.9%20|%203.10%20Unsupported%20Python.Net%20Versions-yellowgreen)
![PyPI - Downloads](https://img.shields.io/pypi/dm/flaui-uiautomation-wrapper)
![GitHub release (with filter)](https://img.shields.io/github/v/release/amruthvvkp/flaui-uiautomation-wrapper)
![PyPI - Version](https://img.shields.io/pypi/v/flaui-uiautomation-wrapper?link=https%3A%2F%2Fpypi.org%2Fproject%2Fflaui-uiautomation-wrapper%2F)
![PyPI - Downloads](https://img.shields.io/pypi/dm/flaui-uiautomation-wrapper?logo=semanticuireact)

[![Python package](https://github.com/amruthvvkp/flaui-uiautomation-wrapper/actions/workflows/python-package.yml/badge.svg)](https://github.com/amruthvvkp/flaui-uiautomation-wrapper/actions/workflows/python-package.yml)
![GitHub Release Date - Published_At](<https://img.shields.io/github/release-date/amruthvvkp/flaui-uiautomation-wrapper?style=social&logo=semantic-release&label=stable%20release&labelColor=rgb(78%2C%20176%2C%20103)>)
![GitHub (Pre-)Release Date](<https://img.shields.io/github/release-date-pre/amruthvvkp/flaui-uiautomation-wrapper?style=social&logo=semver&logoColor=rgb(212%2C%2072%2C%2042)&label=Pre-release&labelColor=rgb(212%2C%2072%2C%2042)>)

![GitHub pull requests](https://img.shields.io/github/issues-pr/amruthvvkp/flaui-uiautomation-wrapper)
![GitHub milestones](https://img.shields.io/github/milestones/all/amruthvvkp/flaui-uiautomation-wrapper)
![GitHub issues](https://img.shields.io/github/issues/amruthvvkp/flaui-uiautomation-wrapper)
![GitHub pull requests](https://img.shields.io/github/issues-pr/amruthvvkp/flaui-uiautomation-wrapper)
![GitHub milestone details](https://img.shields.io/github/milestones/progress-percent/amruthvvkp/flaui-uiautomation-wrapper/1)

[FlaUI](https://github.com/FlaUI/FlaUI#:~:text=FlaUI%20is%20a%20.,of%20a%20wrapper%20around%20them.) is a .NET library that can be used to perform UI automated testing of Windows desktop applications like Win32, WinForms, WPF, etc.. It is a wrapper that works alongside Windows inbuilt UI Automation technology to perform UI automation as required.

Expand All @@ -26,8 +32,6 @@ This project is in active development over the latest version of FlaUI (3.2.0) a

If you would like to contribute or request a feature, feel free to join the discussions on the [project's GitHub page](https://github.com/amruthvvkp/flaui-uiautomation-wrapper/discussions).

This project is designed to work only on Python 3.7 or 3.8 due to the Python version dependency from Pythonnet 2.5.2, PythonNet 3.0.0 is under development and post it's release this project would support Python 3.9 & 3.10.

## Release Notes

Check out the release notes on [GitHub releases](https://github.com/amruthvvkp/flaui-uiautomation-wrapper/releases).
Loading

0 comments on commit e62bb89

Please sign in to comment.