Skip to content

Commit

Permalink
Remove flake from CI and make ruff similar to previous flake configur…
Browse files Browse the repository at this point in the history
…ation.
  • Loading branch information
BenediktBurger committed Jul 13, 2023
1 parent e6fe0e9 commit c7a8b4c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/pyleco_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ jobs:
environment-file: environment.yml
cache-environment-key: py3.10-ubuntu-latest-mamba-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}
cache-downloads: false
- name: Set up flake8 annotations
uses: rbialon/flake8-annotations@v1
- name: Lint with flake8
run: |
# Be sure to check for Python syntax errors or undefined names
flake8 . --count --extend-select=E9,F63,F7,F82 --show-source --statistics
- name: Lint with ruff
uses: chartboost/ruff-action@v1
with:
args: --extend-select=E9,F63,F7,F82 --show-source --statistics
- name: Static type checking
uses: # mypy
- uses: ammaraskar/sphinx-problem-matcher@master
- uses: chartboost/ruff-action@v1
- name: Generate docs
if: always() # run even if the previous step failed
working-directory: ./docs
Expand Down
1 change: 0 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ dependencies:
# Development dependencies below
- pytest=7.2.0
- pytest-runner=6.0.0
- flake8=6.0.0
- setuptools_scm # don't pin, to get newest features
- pip:
- sphinx==6.1.3
Expand Down
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ profile = "black"
[tool.ruff]
select = ["E", "F", "W"]
line-length = 100
exclude = [
".git",
".venv",
"__pypackages__",
"__pycache__",
"build",
"dist",
"docs/conf.py",
]

[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
6 changes: 0 additions & 6 deletions setup.cfg

This file was deleted.

0 comments on commit c7a8b4c

Please sign in to comment.