From e5d77b6a3b061eea072a5c9832a7ff931584ac08 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 20 May 2026 16:14:16 +0000 Subject: [PATCH 1/2] chore: clean up unused top-level files Remove OpenAPI-Generator boilerplate and unused CI configs that aren't referenced anywhere: - git_push.sh: generator-shipped helper, never invoked - .travis.yml, .gitlab-ci.yml: repo runs on GitHub Actions - tox.ini: not used by the GitHub workflow - .openapi-generator-ignore: contained only commented-out examples - setup.cfg: only held flake8 max-line-length=99, inlined into pyproject.toml - test-requirements.txt: dev/test deps are tracked in pyproject.toml Also fix the [tool.mypy] files entry to point at the actual hand-written test directory (test/paper_client) instead of the non-existent 'tests/'. Add publish.sh so the release flow is discoverable from the repo. Co-Authored-By: Mihail --- .gitlab-ci.yml | 28 ------------------- .openapi-generator-ignore | 23 ---------------- .travis.yml | 16 ----------- git_push.sh | 57 --------------------------------------- publish.sh | 4 +++ pyproject.toml | 5 +++- setup.cfg | 2 -- test-requirements.txt | 7 ----- tox.ini | 9 ------- 9 files changed, 8 insertions(+), 143 deletions(-) delete mode 100644 .gitlab-ci.yml delete mode 100644 .openapi-generator-ignore delete mode 100644 .travis.yml delete mode 100644 git_push.sh create mode 100755 publish.sh delete mode 100644 setup.cfg delete mode 100644 test-requirements.txt delete mode 100644 tox.ini diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index dd3ae62..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,28 +0,0 @@ -# NOTE: This file is auto generated by OpenAPI Generator. -# URL: https://openapi-generator.tech -# -# ref: https://docs.gitlab.com/ee/ci/README.html -# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml - -stages: - - test - -.pytest: - stage: test - script: - - pip install -r requirements.txt - - pip install -r test-requirements.txt - - pytest --cov=lighter --ignore-glob *api.py - -pytest-3.8: - extends: .pytest - image: python:3.8-alpine -pytest-3.9: - extends: .pytest - image: python:3.9-alpine -pytest-3.10: - extends: .pytest - image: python:3.10-alpine -pytest-3.11: - extends: .pytest - image: python:3.11-alpine diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore deleted file mode 100644 index 7484ee5..0000000 --- a/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 35830c5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -# ref: https://docs.travis-ci.com/user/languages/python -language: python -python: - - "3.8" - - "3.9" - - "3.10" - - "3.11" - # uncomment the following if needed - #- "3.11-dev" # 3.11 development branch - #- "nightly" # nightly build -# command to install dependencies -install: - - "pip install -r requirements.txt" - - "pip install -r test-requirements.txt" -# command to run tests -script: pytest --cov=lighter diff --git a/git_push.sh b/git_push.sh deleted file mode 100644 index f53a75d..0000000 --- a/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..d9094b0 --- /dev/null +++ b/publish.sh @@ -0,0 +1,4 @@ +#!/bin/bash +rm -rf dist/ build/ *.egg-info +python3.9 -m build +twine upload dist/* diff --git a/pyproject.toml b/pyproject.toml index 46eca96..67b3e92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,11 +40,14 @@ build-backend = "setuptools.build_meta" [tool.pylint.'MESSAGES CONTROL'] extension-pkg-whitelist = "pydantic" +[tool.flake8] +max-line-length = 99 + [tool.mypy] files = [ "lighter", #"test", # auto-generated tests - "tests", # hand-written tests + "test/paper_client", # hand-written tests ] # TODO: enable "strict" once all these individual checks are passing # strict = true diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 11433ee..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[flake8] -max-line-length=99 diff --git a/test-requirements.txt b/test-requirements.txt deleted file mode 100644 index 057e6ec..0000000 --- a/test-requirements.txt +++ /dev/null @@ -1,7 +0,0 @@ -pytest~=7.1.3 -pytest-cov>=2.8.1 -pytest-randomly>=3.12.0 -mypy>=1.4.1 -types-python-dateutil>=2.8.19 -eth-account>=0.13.4 - diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 8941ca0..0000000 --- a/tox.ini +++ /dev/null @@ -1,9 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - pytest --cov=lighter --ignore-glob *api.py From ca5ff3321fc26dcb461655f63e61a160b32d5784 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 20 May 2026 16:53:38 +0000 Subject: [PATCH 2/2] chore: drop inlined [tool.flake8] block Stock flake8 doesn't read pyproject.toml without flake8-pyproject, and the GitHub workflow passes --max-line-length=127 on the CLI anyway, so the setting was never picked up. Removing it rather than leaving a dead-letter config. Co-Authored-By: Mihail --- pyproject.toml | 3 --- 1 file changed, 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 67b3e92..baca60e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,9 +40,6 @@ build-backend = "setuptools.build_meta" [tool.pylint.'MESSAGES CONTROL'] extension-pkg-whitelist = "pydantic" -[tool.flake8] -max-line-length = 99 - [tool.mypy] files = [ "lighter",