setting up a development environment is difficult
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 18.8k
- Forks
- 2.8k
- Ø Merge
- 16 Std. 26 Min.
- Gemergte PRs (30 T.)
- 21
Beschreibung
I recently spun up a dev environment for contributing a PR to plotly.py and ran into some issues that I think can be addressed fairly readily.
- pytest is pinned to 3.5.1 in
packages/python/plotly/optional-requirements.txtand this version simply didn't run, failing with an internalTypeError. I upgraded it to 7.4.2 and it worked. Is there a reason its pinned to such an old version? can this be unpinned? contributing.mddoes not currently mention the dependancy on Plotly Orca. I was rather surprised to come back to all my tests failing, and somewhat hilariously theorcaUbuntu screen reader reading a large chunk of Pytest's terminal output to me. Just adding an external dependency in the testing section would do the trick I reckon.- There were a number of missing packages required by optional tests that aren't in
packages/python/plotly/optional-requirements.txtso those tests failed. The following packages need to be added:polars vaex scikit-image statsmodels pyarrow
btw for 1,the error thrown by pytest 3.5.1 is:
File "/home/ned/.pyenv/versions/3.11.6/envs/book/lib/python3.11/site-packages/_pytest/assertion/rewrite.py", line 332, in _rewrite_test
co = compile(tree, fn.strpath, "exec", dont_inherit=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: required field "lineno" missing from alias
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit packages/python/plotly/optional-requirements.txt und contributing.md und reproduziere dann den gemeldeten pytest 3.5.1-Fehler in der Python 3.11-Umgebung. Überprüfe die Abhängigkeiten der optionalen Tests und die Dokumentation zum Testen. Als erledigt gilt die Aufgabe, wenn das dokumentierte Setup die Tests ohne den gemeldeten pytest-Fehler oder Fehler aufgrund fehlender Pakete ausführt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- build-system, documentation, testing
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100