Skip to content

Commit 1d52012

Browse files
adding an AGENTS.md file with minor updates to the license, manifist, and setup.py
1 parent 87bbb9d commit 1d52012

File tree

4 files changed

+65
-4
lines changed

4 files changed

+65
-4
lines changed

AGENTS.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# AI Agent Guidelines (AGENTS.md)
2+
3+
This repository is a small Django test-runner package intended to make test output more human-friendly by highlighting the most relevant portions of tracebacks and messages.
4+
5+
## Goals
6+
7+
- Prefer small, focused changes.
8+
- Preserve existing behavior unless the task explicitly requires a behavior change.
9+
- Keep the library usable as a drop-in Django `TEST_RUNNER`.
10+
11+
## Local setup
12+
13+
- Use a virtual environment.
14+
- Install in editable mode for development:
15+
16+
```bash
17+
python -m venv .venv
18+
. .venv/bin/activate
19+
python -m pip install -U pip
20+
python -m pip install -e .
21+
```
22+
23+
- Install Django appropriate to the change you’re making (this project historically targeted older Django, but modernization work may change that).
24+
25+
## How to validate changes
26+
27+
- Run any existing test/lint commands already present in the repo.
28+
- At minimum, ensure the code still imports and compiles:
29+
30+
```bash
31+
python -m compileall rainbowtests setup.py
32+
```
33+
34+
- If you have a sample Django project handy, validate integration by setting:
35+
36+
```python
37+
TEST_RUNNER = 'rainbowtests.test.runner.RainbowDiscoverRunner'
38+
```
39+
40+
…and running `python manage.py test`.
41+
42+
## Code & style conventions
43+
44+
- Do not do repo-wide reformatting unless explicitly requested.
45+
- Avoid adding new dependencies for minor changes.
46+
- Keep color/output behavior changes isolated to the existing modules (`rainbowtests/colors.py`, `rainbowtests/messages.py`, and `rainbowtests/test/*`) when possible.
47+
48+
## Packaging / docs
49+
50+
- Keep packaging metadata consistent with documentation files in the repo root (e.g., `README.md`, `LICENSE.md`).
51+
- Prefer Markdown for documentation.
52+
53+
## Safety & privacy
54+
55+
- Do not add secrets (API keys, tokens) to code, tests, docs, or CI.
56+
- Do not print environment variables or filesystem paths that could contain sensitive info.

LICENSE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Copyright (c) 2016, Brad Montgomery <brad@bradmontgomery.net>
1+
# MIT License
2+
3+
Copyright (c) 2026, Brad Montgomery <brad@bradmontgomery.net>
24

35
Permission is hereby granted, free of charge, to any person obtaining a copy of
46
this software and associated documentation files (the "Software"), to deal in

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
include README.rst LICENSE.txt
1+
include README.md LICENSE.md
22
recursive-include rainbowtests *.py

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1+
import io
2+
13
from setuptools import setup
24
from rainbowtests import __version__
35

46
setup(
57
name='django-rainbowtests',
68
version=__version__,
79
description="A colorful Django Test Runner.",
8-
long_description=open('README.rst').read(),
10+
long_description=io.open('README.md', encoding='utf-8').read(),
11+
long_description_content_type='text/markdown',
912
author='Brad Montgomery',
1013
author_email='brad@bradmontgomery.net',
1114
url='https://github.com/bradmontgomery/django-rainbowtests',
1215
license='MIT',
1316
packages=['rainbowtests'],
1417
include_package_data=True,
15-
package_data={'': ['README.rst', 'LICENSE.txt']},
18+
package_data={'': ['README.md', 'LICENSE.md']},
1619
zip_safe=False,
1720
install_requires=['django'],
1821
classifiers=[

0 commit comments

Comments
 (0)