Compare commits

..

No commits in common. "992f45000438c169e1497915fe30d85497ca7f52" and "b64ef1198ec808d1f3d6db64dfc412a9fe071fb5" have entirely different histories.

3 changed files with 8 additions and 17 deletions

View File

@ -1,41 +1,41 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.18.2"
rev: "v1.4.1"
hooks:
- id: mypy
additional_dependencies:
- pydantic
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
rev: v3.9.0
hooks:
- id: pyupgrade
- repo: https://github.com/hadialqattan/pycln
rev: v2.5.0
rev: v2.4.0
hooks:
- id: pycln
args: [-a]
- repo: https://github.com/PyCQA/bandit
rev: '1.8.6'
rev: '1.7.5'
hooks:
- id: bandit
- repo: https://github.com/PyCQA/isort
rev: 6.0.1
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/psf/black
rev: 25.9.0
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
rev: v1.5.1
hooks:
- id: remove-crlf
- id: remove-tabs

View File

@ -34,11 +34,6 @@ class Tea:
tea = Tea() # lazy loader
@app.command("get-gitea-user")
def get_gitea_user() -> None:
tea.pot.gitea.get_user()
@app.command("export-users", help="export users from canvas to csv file")
def export_users_to_csv(output_file: Path = Argument("students.csv")) -> None:
tea.pot.canvas.export_users_to_csv(output_file)

View File

@ -110,10 +110,6 @@ class Gitea:
+ "but not found in Canvas students"
)
def get_user(self) -> None:
user = self.user_api.user_get_current()
logger.info(f"Current user: {user}")
def create_personal_repos_for_canvas_students(
self,
students: PaginatedList,