mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bump pre commit versions (#7255)
* bump pre-commit tools * move uv config to pyproject * style fix * bump pre-commit deps again * add config for code spell * spelling fixes * bump regex * bump pre-commit * bump versions again * roll back regex version * reverse uv bump * compile for 3.12 * use 3.12 for ci * remove unused env vars * only cache main version * set caching dep path * remove caching distinction * pip installl regex * switch back to 3.9 default * remove install test * reset versions * remove tomli * Update playwright.config.ts --------- Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
parent
3ed2a4a16b
commit
c9e9ef1754
5
.github/actions/setup/action.yaml
vendored
5
.github/actions/setup/action.yaml
vendored
@ -44,6 +44,11 @@ runs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ env.python_version }}
|
python-version: ${{ env.python_version }}
|
||||||
cache: pip
|
cache: pip
|
||||||
|
cache-dependency-path: |
|
||||||
|
src/backend/requirements.txt
|
||||||
|
src/backend/requirements-dev.txt
|
||||||
|
contrib/container/requirements.txt
|
||||||
|
contrib/dev_reqs/requirements.txt
|
||||||
- name: Install Base Python Dependencies
|
- name: Install Base Python Dependencies
|
||||||
if: ${{ inputs.python == 'true' }}
|
if: ${{ inputs.python == 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
2
.github/workflows/qc_checks.yaml
vendored
2
.github/workflows/qc_checks.yaml
vendored
@ -13,8 +13,6 @@ env:
|
|||||||
node_version: 18
|
node_version: 18
|
||||||
# The OS version must be set per job
|
# The OS version must be set per job
|
||||||
server_start_sleep: 60
|
server_start_sleep: 60
|
||||||
requests_version: 2.31.0
|
|
||||||
pyyaml_version: 6.0.1
|
|
||||||
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
INVENTREE_DB_ENGINE: sqlite3
|
INVENTREE_DB_ENGINE: sqlite3
|
||||||
|
@ -31,23 +31,23 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: pip-compile
|
- id: pip-compile
|
||||||
name: pip-compile requirements-dev.in
|
name: pip-compile requirements-dev.in
|
||||||
args: [src/backend/requirements-dev.in, -o, src/backend/requirements-dev.txt, --python-version=3.9, --no-strip-extras, --generate-hashes]
|
args: [src/backend/requirements-dev.in, -o, src/backend/requirements-dev.txt]
|
||||||
files: src/backend/requirements-dev\.(in|txt)$
|
files: src/backend/requirements-dev\.(in|txt)$
|
||||||
- id: pip-compile
|
- id: pip-compile
|
||||||
name: pip-compile requirements.txt
|
name: pip-compile requirements.txt
|
||||||
args: [src/backend/requirements.in, -o, src/backend/requirements.txt,--python-version=3.9, --no-strip-extras,--generate-hashes]
|
args: [src/backend/requirements.in, -o, src/backend/requirements.txt]
|
||||||
files: src/backend/requirements\.(in|txt)$
|
files: src/backend/requirements\.(in|txt)$
|
||||||
- id: pip-compile
|
- id: pip-compile
|
||||||
name: pip-compile requirements.txt
|
name: pip-compile requirements.txt
|
||||||
args: [contrib/dev_reqs/requirements.in, -o, contrib/dev_reqs/requirements.txt,--python-version=3.9, --no-strip-extras, --generate-hashes]
|
args: [contrib/dev_reqs/requirements.in, -o, contrib/dev_reqs/requirements.txt]
|
||||||
files: contrib/dev_reqs/requirements\.(in|txt)$
|
files: contrib/dev_reqs/requirements\.(in|txt)$
|
||||||
- id: pip-compile
|
- id: pip-compile
|
||||||
name: pip-compile requirements.txt
|
name: pip-compile requirements.txt
|
||||||
args: [docs/requirements.in, -o, docs/requirements.txt,--python-version=3.9, --no-strip-extras, --generate-hashes]
|
args: [docs/requirements.in, -o, docs/requirements.txt]
|
||||||
files: docs/requirements\.(in|txt)$
|
files: docs/requirements\.(in|txt)$
|
||||||
- id: pip-compile
|
- id: pip-compile
|
||||||
name: pip-compile requirements.txt
|
name: pip-compile requirements.txt
|
||||||
args: [contrib/container/requirements.in, -o, contrib/container/requirements.txt,--python-version=3.11, --no-strip-extras, --generate-hashes]
|
args: [contrib/container/requirements.in, -o, contrib/container/requirements.txt, --python-version=3.11, --no-strip-extras, --generate-hashes]
|
||||||
files: contrib/container/requirements\.(in|txt)$
|
files: contrib/container/requirements\.(in|txt)$
|
||||||
- repo: https://github.com/Riverside-Healthcare/djLint
|
- repo: https://github.com/Riverside-Healthcare/djLint
|
||||||
rev: v1.34.1
|
rev: v1.34.1
|
||||||
@ -63,6 +63,8 @@ repos:
|
|||||||
docs/docs/javascripts/.*|
|
docs/docs/javascripts/.*|
|
||||||
docs/docs/webfonts/.* |
|
docs/docs/webfonts/.* |
|
||||||
src/frontend/src/locales/.* |
|
src/frontend/src/locales/.* |
|
||||||
|
pyproject.toml |
|
||||||
|
src/frontend/vite.config.ts |
|
||||||
)$
|
)$
|
||||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
rev: "v4.0.0-alpha.8"
|
rev: "v4.0.0-alpha.8"
|
||||||
@ -73,7 +75,7 @@ repos:
|
|||||||
- "prettier@^2.4.1"
|
- "prettier@^2.4.1"
|
||||||
- "@trivago/prettier-plugin-sort-imports"
|
- "@trivago/prettier-plugin-sort-imports"
|
||||||
- repo: https://github.com/pre-commit/mirrors-eslint
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
||||||
rev: "v9.1.0"
|
rev: "v9.4.0"
|
||||||
hooks:
|
hooks:
|
||||||
- id: eslint
|
- id: eslint
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
@ -85,7 +87,7 @@ repos:
|
|||||||
- "@typescript-eslint/parser"
|
- "@typescript-eslint/parser"
|
||||||
files: ^src/frontend/.*\.(js|jsx|ts|tsx)$
|
files: ^src/frontend/.*\.(js|jsx|ts|tsx)$
|
||||||
- repo: https://github.com/gitleaks/gitleaks
|
- repo: https://github.com/gitleaks/gitleaks
|
||||||
rev: v8.18.2
|
rev: v8.18.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: gitleaks
|
- id: gitleaks
|
||||||
#- repo: https://github.com/jumanjihouse/pre-commit-hooks
|
#- repo: https://github.com/jumanjihouse/pre-commit-hooks
|
||||||
|
@ -39,7 +39,7 @@ InvenTree/
|
|||||||
│ │ ├─ tsconfig.json # Settings for frontend compilation
|
│ │ ├─ tsconfig.json # Settings for frontend compilation
|
||||||
├─ .pkgr.yml # Build definition for Debian/Ubuntu packages
|
├─ .pkgr.yml # Build definition for Debian/Ubuntu packages
|
||||||
├─ .pre-commit-config.yaml # Code formatter/linter configuration
|
├─ .pre-commit-config.yaml # Code formatter/linter configuration
|
||||||
├─ CONTRIBUTING.md # Contirbution guidelines and overview
|
├─ CONTRIBUTING.md # Contribution guidelines and overview
|
||||||
├─ Procfile # Process definition for Debian/Ubuntu packages
|
├─ Procfile # Process definition for Debian/Ubuntu packages
|
||||||
├─ README.md # General project information and overview
|
├─ README.md # General project information and overview
|
||||||
├─ runtime.txt # Python runtime settings for Debian/Ubuntu packages build
|
├─ runtime.txt # Python runtime settings for Debian/Ubuntu packages build
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# This file was autogenerated by uv via the following command:
|
# This file was autogenerated by uv via the following command:
|
||||||
# uv pip compile contrib/dev_reqs/requirements.in -o contrib/dev_reqs/requirements.txt --python-version=3.9 --no-strip-extras --generate-hashes
|
# uv pip compile contrib/dev_reqs/requirements.in -o contrib/dev_reqs/requirements.txt
|
||||||
certifi==2024.2.2 \
|
certifi==2024.2.2 \
|
||||||
--hash=sha256:0569859f95fc761b18b45ef421b1290a0f65f147e92a1e5eb3e635f9a5e4e66f \
|
--hash=sha256:0569859f95fc761b18b45ef421b1290a0f65f147e92a1e5eb3e635f9a5e4e66f \
|
||||||
--hash=sha256:dc383c07b76109f368f6106eee2b593b04a011ea4d55f652c6ca24a754d1cdd1
|
--hash=sha256:dc383c07b76109f368f6106eee2b593b04a011ea4d55f652c6ca24a754d1cdd1
|
||||||
|
@ -5,7 +5,7 @@ title: Part Scheduling
|
|||||||
## Part Scheduling
|
## Part Scheduling
|
||||||
|
|
||||||
|
|
||||||
The *Scheduling* tab provides an overview of the *predicted* future availabile quantity of a particular part.
|
The *Scheduling* tab provides an overview of the *predicted* future available quantity of a particular part.
|
||||||
|
|
||||||
The *Scheduling* tab displays a chart of estimated future part stock levels. It begins at the current date, with the current stock level. It then projects into the "future", taking information from:
|
The *Scheduling* tab displays a chart of estimated future part stock levels. It begins at the current date, with the current stock level. It then projects into the "future", taking information from:
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ Also, dedicated settings sections were added for:
|
|||||||
|
|
||||||
For Category section, read [Category Parameter Templates](#category-parameter-templates)
|
For Category section, read [Category Parameter Templates](#category-parameter-templates)
|
||||||
|
|
||||||
Other section allows to set the prefix of build, puchase and sales orders.
|
Other section allows to set the prefix of build, purchase and sales orders.
|
||||||
|
|
||||||
### Category Parameter Templates
|
### Category Parameter Templates
|
||||||
|
|
||||||
|
@ -29,5 +29,5 @@ title: Release 0.4.0
|
|||||||
| Pull Request | Description |
|
| Pull Request | Description |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| [#1823](https://github.com/inventree/InvenTree/pull/1823) | Fixes link formatting issues for ManufacturerParts |
|
| [#1823](https://github.com/inventree/InvenTree/pull/1823) | Fixes link formatting issues for ManufacturerParts |
|
||||||
| [#1824](https://github.com/inventree/InvenTree/pull/1824) | Selects correct curreny code when creating a new PurchaseOrderLineItem |
|
| [#1824](https://github.com/inventree/InvenTree/pull/1824) | Selects correct currency code when creating a new PurchaseOrderLineItem |
|
||||||
| [#1867](https://github.com/inventree/InvenTree/pull/1867) | Fixes long-running bug when deleting sequential items via the API |
|
| [#1867](https://github.com/inventree/InvenTree/pull/1867) | Fixes long-running bug when deleting sequential items via the API |
|
||||||
|
@ -20,7 +20,7 @@ The *Stock Item* detail view shows information regarding the particular stock it
|
|||||||
|
|
||||||
**Quantity** - How many items are in stock?
|
**Quantity** - How many items are in stock?
|
||||||
|
|
||||||
**Supplier** - If this part was purcahsed from a *Supplier*, which *Supplier* did it come from?
|
**Supplier** - If this part was purchased from a *Supplier*, which *Supplier* did it come from?
|
||||||
|
|
||||||
**Supplier Part** - Link to the particular *Supplier Part*, if appropriate.
|
**Supplier Part** - Link to the particular *Supplier Part*, if appropriate.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# This file was autogenerated by uv via the following command:
|
# This file was autogenerated by uv via the following command:
|
||||||
# uv pip compile docs/requirements.in -o docs/requirements.txt --python-version=3.9 --no-strip-extras --generate-hashes
|
# uv pip compile docs/requirements.in -o docs/requirements.txt
|
||||||
anyio==4.3.0 \
|
anyio==4.3.0 \
|
||||||
--hash=sha256:048e05d0f6caeed70d731f3db756d35dcc1f35747c8c403364a8332c630441b8 \
|
--hash=sha256:048e05d0f6caeed70d731f3db756d35dcc1f35747c8c403364a8332c630441b8 \
|
||||||
--hash=sha256:f75253795a87df48568485fd18cdd2a3fa5c4f7c5be8e5e36637733fce06fed6
|
--hash=sha256:f75253795a87df48568485fd18cdd2a3fa5c4f7c5be8e5e36637733fce06fed6
|
||||||
|
@ -69,6 +69,11 @@ indent-style = "space"
|
|||||||
skip-magic-trailing-comma = true
|
skip-magic-trailing-comma = true
|
||||||
line-ending = "auto"
|
line-ending = "auto"
|
||||||
|
|
||||||
|
[tool.uv.pip]
|
||||||
|
python-version = "3.9"
|
||||||
|
no-strip-extras=true
|
||||||
|
generate-hashes=true
|
||||||
|
|
||||||
[tool.coverage.run]
|
[tool.coverage.run]
|
||||||
source = ["src/backend/InvenTree", "InvenTree"]
|
source = ["src/backend/InvenTree", "InvenTree"]
|
||||||
|
|
||||||
@ -80,3 +85,6 @@ src_paths=["src/backend/InvenTree", ]
|
|||||||
skip_glob ="*/migrations/*.py"
|
skip_glob ="*/migrations/*.py"
|
||||||
known_django="django"
|
known_django="django"
|
||||||
sections=["FUTURE","STDLIB","DJANGO","THIRDPARTY","FIRSTPARTY","LOCALFOLDER"]
|
sections=["FUTURE","STDLIB","DJANGO","THIRDPARTY","FIRSTPARTY","LOCALFOLDER"]
|
||||||
|
|
||||||
|
[tool.codespell]
|
||||||
|
ignore-words-list = ["assertIn","SME"]
|
||||||
|
@ -119,7 +119,7 @@ v178 - 2024-02-29 : https://github.com/inventree/InvenTree/pull/6604
|
|||||||
- Adds "external_stock" field to the Part API endpoint
|
- Adds "external_stock" field to the Part API endpoint
|
||||||
- Adds "external_stock" field to the BomItem API endpoint
|
- Adds "external_stock" field to the BomItem API endpoint
|
||||||
- Adds "external_stock" field to the BuildLine API endpoint
|
- Adds "external_stock" field to the BuildLine API endpoint
|
||||||
- Stock quantites represented in the BuildLine API endpoint are now filtered by Build.source_location
|
- Stock quantities represented in the BuildLine API endpoint are now filtered by Build.source_location
|
||||||
|
|
||||||
v177 - 2024-02-27 : https://github.com/inventree/InvenTree/pull/6581
|
v177 - 2024-02-27 : https://github.com/inventree/InvenTree/pull/6581
|
||||||
- Adds "subcategoies" count to PartCategoryTree serializer
|
- Adds "subcategoies" count to PartCategoryTree serializer
|
||||||
|
@ -562,7 +562,7 @@ class InvenTreeTree(MetadataMixin, PluginValidationMixin, MPTTModel):
|
|||||||
"""Provides an abstracted self-referencing tree model for data categories.
|
"""Provides an abstracted self-referencing tree model for data categories.
|
||||||
|
|
||||||
- Each Category has one parent Category, which can be blank (for a top-level Category).
|
- Each Category has one parent Category, which can be blank (for a top-level Category).
|
||||||
- Each Category can have zero-or-more child Categor(y/ies)
|
- Each Category can have zero-or-more child Category(y/ies)
|
||||||
|
|
||||||
Attributes:
|
Attributes:
|
||||||
name: brief name
|
name: brief name
|
||||||
|
@ -240,7 +240,7 @@ class ExchangeRateMixin:
|
|||||||
|
|
||||||
|
|
||||||
class InvenTreeTestCase(ExchangeRateMixin, UserMixin, TestCase):
|
class InvenTreeTestCase(ExchangeRateMixin, UserMixin, TestCase):
|
||||||
"""Testcase with user setup buildin."""
|
"""Testcase with user setup build in."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ database:
|
|||||||
# Set debug to False to run in production mode, or use the environment variable INVENTREE_DEBUG
|
# Set debug to False to run in production mode, or use the environment variable INVENTREE_DEBUG
|
||||||
debug: True
|
debug: True
|
||||||
|
|
||||||
# Set to False to disable the admin interfac, or use the environment variable INVENTREE_ADMIN_ENABLED
|
# Set to False to disable the admin interface, or use the environment variable INVENTREE_ADMIN_ENABLED
|
||||||
#admin_enabled: True
|
#admin_enabled: True
|
||||||
|
|
||||||
# Set the admin URL, or use the environment variable INVENTREE_ADMIN_URL
|
# Set the admin URL, or use the environment variable INVENTREE_ADMIN_URL
|
||||||
|
@ -527,7 +527,7 @@ function barcodeCheckInStockItems(location_id, options={}) {
|
|||||||
var modal = options.modal || createNewModal();
|
var modal = options.modal || createNewModal();
|
||||||
options.modal = modal;
|
options.modal = modal;
|
||||||
|
|
||||||
// List of items we are going to checkin
|
// List of items we are going to check in
|
||||||
var items = [];
|
var items = [];
|
||||||
|
|
||||||
function reloadTable() {
|
function reloadTable() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# This file was autogenerated by uv via the following command:
|
# This file was autogenerated by uv via the following command:
|
||||||
# uv pip compile src/backend/requirements-dev.in -o src/backend/requirements-dev.txt --python-version=3.9 --no-strip-extras --generate-hashes
|
# uv pip compile src/backend/requirements-dev.in -o src/backend/requirements-dev.txt
|
||||||
asgiref==3.8.1 \
|
asgiref==3.8.1 \
|
||||||
--hash=sha256:3e1e3ecc849832fe52ccf2cb6686b7a55f82bb1d6aee72a58826471390335e47 \
|
--hash=sha256:3e1e3ecc849832fe52ccf2cb6686b7a55f82bb1d6aee72a58826471390335e47 \
|
||||||
--hash=sha256:c343bd80a0bec947a9860adb4c432ffa7db769836c64238fc34bdc3fec84d590
|
--hash=sha256:c343bd80a0bec947a9860adb4c432ffa7db769836c64238fc34bdc3fec84d590
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# This file was autogenerated by uv via the following command:
|
# This file was autogenerated by uv via the following command:
|
||||||
# uv pip compile src/backend/requirements.in -o src/backend/requirements.txt --python-version=3.9 --no-strip-extras --generate-hashes
|
# uv pip compile src/backend/requirements.in -o src/backend/requirements.txt
|
||||||
asgiref==3.8.1 \
|
asgiref==3.8.1 \
|
||||||
--hash=sha256:3e1e3ecc849832fe52ccf2cb6686b7a55f82bb1d6aee72a58826471390335e47 \
|
--hash=sha256:3e1e3ecc849832fe52ccf2cb6686b7a55f82bb1d6aee72a58826471390335e47 \
|
||||||
--hash=sha256:c343bd80a0bec947a9860adb4c432ffa7db769836c64238fc34bdc3fec84d590
|
--hash=sha256:c343bd80a0bec947a9860adb4c432ffa7db769836c64238fc34bdc3fec84d590
|
||||||
|
@ -3,7 +3,7 @@ import { defineConfig, devices } from '@playwright/test';
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
testDir: './tests',
|
testDir: './tests',
|
||||||
fullyParallel: true,
|
fullyParallel: true,
|
||||||
timeout: 60000,
|
timeout: 90000,
|
||||||
forbidOnly: !!process.env.CI,
|
forbidOnly: !!process.env.CI,
|
||||||
retries: process.env.CI ? 1 : 0,
|
retries: process.env.CI ? 1 : 0,
|
||||||
workers: process.env.CI ? 2 : undefined,
|
workers: process.env.CI ? 2 : undefined,
|
||||||
|
Loading…
Reference in New Issue
Block a user