Skip to content
Agentmart
Submit a tool

AGENTS.md · pyecharts/pyecharts

AGENTS.md from pyecharts/pyecharts: 294 lines covering Build/Lint/Test Commands, Code Style Guidelines, Development Workflow, Additional Notes.

Template by pyecharts

IndexedMIT★ 15,780
Write a review

Chalk Labs

Need help deploying AGENTS.md · pyecharts/pyecharts?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.

curl -fsSL https://raw.githubusercontent.com/pyecharts/pyecharts/master/AGENTS.md -o AGENTS.md

Read it and adapt it to your project before use.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The AGENTS.md file that pyecharts/pyecharts (15,780 stars) keeps for coding agents. It has 294 lines in 4 sections: Build/Lint/Test Commands; Code Style Guidelines; Development Workflow; Additional Notes. Use it as a model for your own project's instructions.

Use cases: code-generation, testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

What's in it

An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.

For
Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
Length
294 lines
File
AGENTS.md

Sections

  1. Build/Lint/Test Commands
  2. Code Style Guidelines
  3. Development Workflow
  4. Additional Notes

First lines (shown under the repo's MIT license)

# AGENTS.md

This file contains guidelines for agents working on the pyecharts project.

## Build/Lint/Test Commands

### Running Tests

The project uses multiple testing frameworks. Here are the commands to run tests:

1. **Run all tests**:
   ```bash
   make test
   # or
   python test.py
   # or
   nose2 --with-coverage --coverage pyecharts --coverage-config .coveragerc -s test
   # or
   pytest -cov-config=.coveragerc --cov=./ test/
   ```

2. **Run a single test file**:
   ```bash
   # Using pytest (recommended)
   pytest test/test_chart.py
   
   # Using nose2
   nose2 --with-coverage --coverage pyecharts --coverage-config .coveragerc test.test_chart
   ```

3. **Run a specific test method**:
   ```bash
   # Using pytest
   pytest test/test_chart.py::TestChartClass::test_chart_dark_mode
   
   # Using nose2
   nose2 --with-coverage --coverage pyecharts --coverage-config .coveragerc test.test_chart.TestChartClass.test_chart_dark_mode
   ```

4. **Run tests with verbose output**:
   ```bash
   pytest -v test/test_chart.py
   ```

5. **Run tests with coverage reporting**:
   ```bash
   pytest -v --cov=./ --cov-report=html test/test_chart.py
   ```

### Linting

1. **Run linter**:
   ```bash
   make lint
   # or
   flake8 --exclude=build,images,example,examples --max-line-length=89 --ignore=F401
   ```

2. **Lint a specific file**:
   ```bash
   flake8 --exclude=build,images,example,examples --max-line-length=89 --ignore=F401 test/test_chart.py
   ```

### Formatting

The project uses black and isort for code formatting:

1. **Run black formatter**:
   ```bash
   black .
   ```

2. **Run isort for imports**:
   ```bash
   isort .
   ```

### Building

1. **Build the package**:
   ```bash
   python setup.py sdist bdist_wheel
   ```

2. **Upload to PyPI**:
   ```bash
   make upload
   # This runs the UploadCommand defined in setup.py
   ```

## Code Style Guidelines

### Imports

1. **Import organization**:
   - Standard library imports
   - Related third party imports
   - Local application/library specific imports

2. **Import style**:
   ```python
   # Good
   from pyecharts import options as opts
   from pyecharts.charts import Line, Bar
   
   # Avoid
   from pyecharts.options import *
   import pyecharts.charts.Line
   ```

3. **Use aliases** for commonly used modules:
   ```python
   import pyecharts.options as opts
   import pyecharts.globals as globals
   ```

### Formatting

1. **Line length**: 89 characters max (as specified in flake8 command)

2. **Indentation**: 4 spaces (no tabs)

3. **Quotes**: Use double quotes " for strings, single quotes ' for char literals

4. **Blank lines**:
   - Top-level functions and classes: 2 blank lines
   - Methods within a class: 1 blank line

5. **Use black formatter** to ensure consistent code style

### Naming Conventions

1. **Variables and functions**: snake_case
   ```python
   def add_yaxis(self, series_name, y_axis, *args, **kwargs):
       pass
   ```

2. **Classes**: PascalCase
   ```python
   class TestChartClass(unittest.TestCase):
       pass
   ```

3. **Constants**: UPPER_CASE
   ```python
   MAX_RETRIES = 3
   ```

4. **Private members**: prefix with _
   ```python
   def _internal_method(self):
       pass
   ```

### Error Handling

1. **Use exceptions** for error conditions, not return codes

2. **Be specific** with exception types:

Signals

Stars
15,780
Forks
2,842
Open issues
2
Last commit (this folder)
Feb 10, 2026 (8 months ago)
Last release
Feb 10, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get AGENTS.md · pyecharts/pyecharts running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying AGENTS.md · pyecharts/pyecharts?

CallGet help
Cite this page

AGENTS.md · pyecharts/pyecharts. Agent Mart. https://agentmart.dev/templates/pyecharts-pyecharts-agents-md (last updated 2026-10-24)