chore: resolve 23 pyright diagnostics and enable a pyright CI job
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 58/100
Direção de pesquisa
Start by running poetry run pyright and inspect the diagnostics in campus_python/__init__.py, assignments.py, oauth.py, and the named test files. Compare the configuration and CI approach with the nyxchange-timetable-v2 reference cited in the issue, then review .github/workflows/python-tests.yml. Done when the 23 diagnostics are resolved or deliberately ignored and a pyright CI job runs successfully.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Observation
With pyright's default exclude list restored (chore/pyright-exclude, PR #94), running pyright 1.1.414 against the repo reports 23 errors, 0 warnings in project code:
campus_python/sources:__init__.py×6,assignments.py×2,oauth.py×1 (reportArgumentType / reportAttributeAccessIssue / reportOptionalMemberAccess / reportCallIssue / reportReturnType)- tests:
test_unauthorized_refresh.py×6,test_campus_request.py×2,test_audit.py×1, plus 1 reportMissingImports (a test-side sys.path import, presumably)
Ask
Resolve the 23 diagnostics (or scope the config with per-file ignores where deliberate), then add a pyright job to .github/workflows/python-tests.yml following the nyxchange-timetable-v2 pattern (poetry run pyright with pyright as a dev dependency). This repo is the client every student app pins, so it should be the first place the gate lands.
Context
Found 2026-10-04 while applying the same exclude fix as nyxchange-timetable-v2#64 (PR #94). This repo currently gates on pytest only; the nyxchange fix (PR there: #66) is the reference for config + gate.
- Linguagem predominante
- Python
- Estrelas
- 0
- Forks
- 0
- Merge médio
- 35min
- PRs com merge (30d)
- 43
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de nyjc-computing/campus-api-python
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
nyjc-computing/campus-api-python#19 ·
Mantenedores costumam responder em até 1 dia
-
Add Timetable resourceTalvez livre de novo @ngjunsiang assumiu há 261 dias e não há nenhum pull request aberto. Aberta
nyjc-computing/campus-api-python#2 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de nyjc-computing/campus-api-python
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
lugassawan/swe-workbench#799 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
vllm-project/vllm#61131 ·
Mantenedores costumam responder em até 1 dia
-
Non-string form field names raise AttributeError when files are attachedTalvez já em andamento @nightcityblade assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
kubernetes-client/python#2735 ·
Mantenedores costumam responder em até 1 dia
-
desktop help wanted test
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia