mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-29 06:02:55 +08:00
rename folder
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
---
|
||||
description: Specifies how to use the custom Drawscape Factorio Python module in Python files.
|
||||
globs: **/*.py
|
||||
---
|
||||
- When working with Python files in this project, always utilize the custom Drawscape Factorio module.
|
||||
- Use the `createFactorio` and `importFUE5` functions from the `drawscape_factorio` module.
|
||||
- Ensure the following import statements are present: `from drawscape_factorio import create as createFactorio` and `from drawscape_factorio import importFUE5`.
|
||||
- When using `importFUE5`, load the exported entities JSON file and pass the data to the function.
|
||||
- When calling `createFactorio`, provide the imported data and a configuration dictionary with `theme_name`, `color_scheme`, and `show_layers`.
|
||||
- Write the resulting SVG string to an output file.
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
description: Defines general Python version and dependency management rules for the project.
|
||||
globs: **/*.py
|
||||
---
|
||||
- Always use UV when installing dependencies.
|
||||
- Always use Python 3.12.
|
||||
- Always use classes instead of functions when appropriate.
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
description: Ensures proper JSON data handling when working with Drawscape Factorio.
|
||||
globs: **/*.py
|
||||
---
|
||||
- When dealing with JSON data for Drawscape Factorio, use the `json` module to load the data from a file.
|
||||
- Ensure proper error handling and file path management for JSON files.
|
||||
- Use the loaded JSON data as input for the `importFUE5` function within the Drawscape Factorio module.
|
||||
Reference in New Issue
Block a user