Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: manual linting corrections to pass flake8 #85

Closed
wants to merge 3 commits into from

Conversation

glasnt
Copy link
Contributor

@glasnt glasnt commented Oct 24, 2024

Black, manual "re-wrapping" on prompts, and other manual cleanup steps.

Not tested for functional equivelence.

@glasnt glasnt marked this pull request as ready for review October 24, 2024 23:24
@glasnt glasnt requested review from davenportjw, bradmiro and a team as code owners October 24, 2024 23:24
@@ -11,5 +11,3 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from .app import EMBEDDING_MODEL_NAME, init_app, parse_config
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was removed because linting, but this breaks the process because of current imports in run_app

@@ -11,5 +11,3 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
Copy link
Contributor Author

@glasnt glasnt Oct 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on previous, at a guess this is what was meant? (Based on a similar pattern in src/retrieval_service/datastore/init.py, datastore/providers/init.py)

Suggested change
# limitations under the License.
# limitations under the License.
from .app import EMBEDDING_MODEL_NAME, init_app, parse_config
__ALL__ = [EMBEDDING_MODEL_NAME, init_app, parse_config]

@@ -11,5 +11,3 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above, presumed import pattern to help with importing but also pass linting

Suggested change
# limitations under the License.
# limitations under the License.
from .models import Airport, Amenity, Flight, Ticket
__ALL__ = [Airport, Amenity, Flight, Ticket

@glasnt
Copy link
Contributor Author

glasnt commented Nov 19, 2024

Major codebase drift, many conflicting files, closing.

@glasnt glasnt closed this Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants