diff --git a/.gitea/workflows/python-container.yml b/.gitea/workflows/python-container.yml index a45a87a..e90aef4 100644 --- a/.gitea/workflows/python-container.yml +++ b/.gitea/workflows/python-container.yml @@ -1,3 +1,7 @@ +# WARNING! +# THIS IS AN AUTOGENERATED FILE! +# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! + name: Build Python Container on: push: diff --git a/.gitea/workflows/python-package.yml b/.gitea/workflows/python-package.yml index 2ee342a..0e41ec0 100644 --- a/.gitea/workflows/python-package.yml +++ b/.gitea/workflows/python-package.yml @@ -1,3 +1,7 @@ +# WARNING! +# THIS IS AN AUTOGENERATED FILE! +# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! + name: Package Python on: push: diff --git a/.gitea/workflows/python-test.yml b/.gitea/workflows/python-test.yml index 40cd5da..4fbcac9 100644 --- a/.gitea/workflows/python-test.yml +++ b/.gitea/workflows/python-test.yml @@ -1,3 +1,7 @@ +# WARNING! +# THIS IS AN AUTOGENERATED FILE! +# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! + name: Run Python tests (through Pytest) on: diff --git a/.gitea/workflows/python-version-check.yml b/.gitea/workflows/python-version-check.yml index 28092b4..5bc2c07 100644 --- a/.gitea/workflows/python-version-check.yml +++ b/.gitea/workflows/python-version-check.yml @@ -1,3 +1,7 @@ +# WARNING! +# THIS IS AN AUTOGENERATED FILE! +# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! + name: Verify Python project can be installed, loaded and have version checked on: diff --git a/CONVENTIONS.md b/CONVENTIONS.md index 7fc9a32..9bdf447 100644 --- a/CONVENTIONS.md +++ b/CONVENTIONS.md @@ -1,3 +1,7 @@ + + + + # Conventions When contributing code to this project, you MUST follow the requirements diff --git a/README.md b/README.md index 8cb53cf..ac8989e 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ - - - - - + + + # Aider Gitea @@ -18,6 +16,9 @@ When such an issue is found, it: 3. Runs tests and code quality checks. 4. Creates a pull request with the solution. +Inspired by [the AI workflows](https://github.com/oscoreio/ai-workflows/) +project. + ## Usage An application token must be supplied for the `gitea_token` secret. This must @@ -87,12 +88,10 @@ pip install -r requirements.txt Full list of requirements: - [secret_loader](https://gitfub.space/Jmaa/secret_loader) - ## Contributing Feel free to submit pull requests. Please follow the [Code Conventions](CONVENTIONS.md) when doing so. - ### Testing Testing requires the [pytest](https://docs.pytest.org/en/stable/) library. @@ -109,7 +108,6 @@ Test coverage can be run using the [`pytest-cov`](https://pypi.org/project/pytes pytest --cov=aider_gitea test ``` - ## License ``` diff --git a/setup.py b/setup.py index d5c5dfe..330fa53 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,6 @@ -# WARNING -# -# THIS IS AN AUTOGENERATED FILE. -# -# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN. +# WARNING! +# THIS IS AN AUTOGENERATED FILE! +# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! import re @@ -23,6 +21,9 @@ When such an issue is found, it: 3. Runs tests and code quality checks. 4. Creates a pull request with the solution. +Inspired by [the AI workflows](https://github.com/oscoreio/ai-workflows/) +project. + ## Usage An application token must be supplied for the `gitea_token` secret. This must @@ -83,7 +84,6 @@ The tool uses environment variables for sensitive information: PACKAGE_DESCRIPTION_SHORT = """ A code automation tool that integrates Gitea with Aider to automatically solve issues.""".strip() - def parse_version_file(text: str) -> str: match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text) if match is None: @@ -91,17 +91,14 @@ def parse_version_file(text: str) -> str: raise Exception(msg) return match.group(2) - with open(PACKAGE_NAME + '/_version.py') as f: version = parse_version_file(f.read()) - REQUIREMENTS_MAIN = [ 'secret_loader @ git+https://gitfub.space/Jmaa/secret_loader.git', ] REQUIREMENTS_TEST = [] - setup( name=PACKAGE_NAME, version=version,