Skip to content

Commit

Permalink
Merge pull request #6 from Ingenjorsarbete-For-Klimatet/hotfix/repo-s…
Browse files Browse the repository at this point in the history
…ettings

Hotfix/repo settings
  • Loading branch information
mgcth authored Jan 27, 2024
2 parents 6764231 + 5411b04 commit d0e41b0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/github-action-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -e ".[lint]"
- name: Lint with flake8
- name: Lint with ruff
run: |
flake8 src tests --show-source --statistics
ruff check --output-format=github src tests
- name: Format with ruff
run: |
ruff format --check src tests
11 changes: 4 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.8.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
- id: ruff
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "4daa14b"
hooks:
Expand Down
8 changes: 1 addition & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ requires-python = ">=3.9"
dependencies = ["fastapi ~= 0.108", "uvicorn[standard]", "geopandas ~= 0.14", "pyarrow ~= 14.0"]

[project.optional-dependencies]
lint = [
"flake8 ~= 5.0",
"flake8-bandit ~= 4.1",
"flake8-docstrings ~= 1.6",
"flake8-black ~= 0.3",
]
lint = ["ruff ~= 0.1"]
type = ["mypy ~= 1.7.1", "types-requests ~= 2.28", "pandas-stubs ~= 1.5"]
test = ["pytest ~= 7.1", "coverage ~= 6.5", "pytest-cov ~= 4.0", "httpx"]
doc = [
Expand All @@ -33,7 +28,6 @@ dev = [
"ifk-sweden-map[type]",
"ifk-sweden-map[test]",
"ifk-sweden-map[doc]",
"black ~= 22.8",
"pre-commit ~= 2.20",
"ipykernel"
]
Expand Down

0 comments on commit d0e41b0

Please sign in to comment.