Skip to content

Commit

Permalink
ci: Streamline CI tools
Browse files Browse the repository at this point in the history
  • Loading branch information
danielptv committed Feb 17, 2024
1 parent ece7244 commit d00d87f
Show file tree
Hide file tree
Showing 7 changed files with 172 additions and 155 deletions.
5 changes: 0 additions & 5 deletions .flake8

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ jobs:
- name: Test with pytest
run: |
poetry run pytest
- name: Lint with tox
run: |
poetry run tox -e lint
36 changes: 36 additions & 0 deletions .pre-commit-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
ci:
autofix_prs: false
autoupdate_schedule: weekly
autoupdate_commit_msg: 'chore: pre-commit autoupdate'

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-json
- id: check-toml
exclude: |
(?x)^(
copier_template/.*/pyproject.toml
)$
- id: end-of-file-fixer
exclude: (copier_template/.*|docs/.*|samples/.*\.json)
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
hooks:
- id: ruff
args: [--fix]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.8.0'
hooks:
- id: mypy
exclude: tests
additional_dependencies:
- types-paramiko
- types-simplejson
- types-sqlalchemy
- types-jsonschema
2 changes: 0 additions & 2 deletions .pylintrc

This file was deleted.

180 changes: 74 additions & 106 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d00d87f

Please sign in to comment.