mirror of
https://github.com/JackHopkins/factorio-learning-environment.git
synced 2025-09-06 13:23:58 +00:00
Restructure (#274)
* add changes * refactor: clean up unused Docker scripts and redundant files Remove unused and redundant files from fle/cluster/docker/: - main.py: Redundant Python script that duplicates run_local.sh functionality with hardcoded ports and basic container management. Not used in workflow. - install-docker.sh: AWS EC2-specific setup script with hardcoded instance (ec2-18-133-239-115) and outdated Amazon Linux commands. Current workflow uses docker-compose instead. - probe.sh: Simple port checking script using lsof. Redundant since docker-compose handles health checks and container status monitoring. - setup_docker_repo.sh: AWS ECR-specific setup with hardcoded AWS account (216370203482). Contains mostly commented code and unused ECR repository configuration. Not used in current workflow. - requirements.txt: Redundant Python dependency file. Docker is a system dependency, not a Python package. The Python docker SDK is already included in pyproject.toml dependencies. Kept essential files: Dockerfile, build scripts, run scripts, config/, mods/, and README.md which are actively used in the Docker workflow. * refactor: move lib/ and tools/ to mods/, clean up fle/env/utils/ (all deleted files were unused), prep for entrypoints/ refactor * readd * last undo * refactor: move evaluator.py to algorithms/mcts, move experiment entrypoints to entrypoints/, update imports accordingly * version info * incorrect gitignore * style: replace all relative imports in fle.agents with absolute imports * simplify gitignore * commit * gitignore * redo * update * No code is importing the fle.agents.data package/module * exclude data/prompts from ruff lint/format in pre-commit * yaml * Files were cleared but not deleted * finalize Neel's suggestions * Jul 12, 2025 at 13:29 * Jul 12, 2025 at 15:47 * push * Jul 12, 2025 at 16:03 * Jul 12, 2025 at 16:03 * Jul 12, 2025 at 16:03 * fix * fix * fix * push * push * Jul 12, 2025 at 17:48 * remove publish on merge
This commit is contained in:
9
.github/workflows/publish-testpypi.yml
vendored
9
.github/workflows/publish-testpypi.yml
vendored
@@ -1,17 +1,14 @@
|
||||
name: "Publish to TestPyPI"
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
if_merged:
|
||||
if: github.event.pull_request.merged == true
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -29,4 +26,4 @@ jobs:
|
||||
run: uv build
|
||||
|
||||
- name: Publish to TestPyPI
|
||||
run: uv publish --trusted-publishing always --index testpypi
|
||||
run: uv publish --trusted-publishing always --index testpypi
|
@@ -6,7 +6,7 @@ repos:
|
||||
# Run the linter.
|
||||
- id: ruff-check
|
||||
types_or: [ python, pyi ]
|
||||
args: [ --fix, --exclude=fle/agents/data/prompts, --ignore=E722,--ignore=F405 ]
|
||||
args: [ --fix, --exclude=data/prompts, --ignore=E722,--ignore=F405 ]
|
||||
# Run the formatter.
|
||||
- id: ruff-format
|
||||
types_or: [ python, pyi ]
|
||||
|
13
clean.sh
13
clean.sh
@@ -1,13 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Clean script to remove build artifacts before creating a new package
|
||||
|
||||
echo "Cleaning build artifacts..."
|
||||
|
||||
# Remove build directories
|
||||
rm -rf dist/
|
||||
rm -rf factorio_learning_environment/
|
||||
|
||||
# Remove any __pycache__ directories
|
||||
find . -type d -name "__pycache__" -exec rm -rf {} +
|
||||
|
||||
echo "Clean complete."
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user