diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e8320ca..5339fee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,12 +33,12 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: pip - cache-dependency-path: 'requirements.txt' + cache-dependency-path: 'pyproject.toml' - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel - python -m pip install -r requirements.txt + python -m pip install . - name: Run tests run: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9efbc0b..c012a5b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,43 +1,30 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v5.0.0 hooks: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - id: mixed-line-ending -- repo: https://github.com/pycqa/flake8 - rev: 4.0.1 +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.9.4 hooks: - - id: flake8 + - id: ruff + args: [--fix] + - id: ruff-format - repo: https://github.com/pycqa/doc8 - rev: 0.11.2 + rev: v1.1.2 hooks: - id: doc8 -- repo: https://github.com/asottile/pyupgrade - rev: v2.34.0 - hooks: - - id: pyupgrade - args: [--py38-plus] - repo: https://github.com/adamchainz/django-upgrade - rev: 1.7.0 + rev: 1.22.2 hooks: - id: django-upgrade - args: [--target-version, "3.2"] -- repo: https://github.com/pycqa/isort - rev: 5.10.1 - hooks: - - id: isort + args: [--target-version, "5.0"] - repo: https://github.com/pre-commit/pygrep-hooks - rev: v1.9.0 + rev: v1.10.0 hooks: - id: python-check-blanket-noqa - id: python-check-mock-methods - id: python-no-eval - id: python-no-log-warn -- repo: https://github.com/psf/black - rev: 22.3.0 - hooks: - - id: black - language_version: python3 - entry: black --target-version=py38 diff --git a/README.md b/README.md index b99a785..fde847d 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ warning. Do what's comfortable. If not, I highly recommend using the Windows Subsystem for Linux ([docs](https://learn.microsoft.com/en-us/windows/wsl/about)). If you do, the -rest of the instructions will work for you. If you don't have access to that, +rest of the instructions will work for you. If you don't have access to that, please scroll down to [Windows non-WSL Setup](#windows-non-wsl-setup). --- @@ -95,7 +95,7 @@ please scroll down to [Windows non-WSL Setup](#windows-non-wsl-setup). ``` 3. Install the project dependencies. ```shell - pip install -r requirements.txt + pip install -e . ``` 4. Create a new .env file. ```shell @@ -151,7 +151,7 @@ Proceed to [Lab 1](docs/lab1.md). ``` 3. Install the project dependencies. ```shell - pip install -r requirements.txt + pip install -e . ``` 4. Create a new .env file. ```shell diff --git a/docs/lab1.md b/docs/lab1.md index a76b712..792a029 100644 --- a/docs/lab1.md +++ b/docs/lab1.md @@ -168,7 +168,7 @@ If you've gone through all the steps of the investigation, and you're still unsu file isn't being shared, you should read about the [``enctype`` attribute of forms](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/form#enctype). -You'll see that the +You'll see that the By default, a ``