Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBernstorff committed Oct 27, 2023
1 parent bfbe55d commit 413edea
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 433 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ FROM python:3.11-bookworm

# Set the working directory to /app
WORKDIR /app
RUN pip install pyright
RUN pyright .

# Install deps
COPY pyproject.toml ./
RUN pip install .[dev]
RUN pip install .[tests]
RUN pip install --upgrade .[dev]
RUN pip install --upgrade .[tests]

# Ensure pyright builds correctly.
# If run in make validate, it is run in parallel, which breaks its installation.
RUN pyright .

# Install the entire app
COPY . /app
RUN pip install -e .
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test: ## Run tests
pytest $(SRC_PATH)

lint: ## Format code
ruff check . --fix
ruff . --fix
ruff format .

type-check: ## Type-check code
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ documentation = "https://MartinBernstorff.github.io/personal-mnemonic-medium/"
[tool.pyright]
exclude = [".*venv*", ".tox"]
pythonPlatform = "Darwin"
reportMissingTypeStubs = false

[tool.ruff]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
Expand Down
Loading

0 comments on commit 413edea

Please sign in to comment.