Matthias Mair
9d0264c319
[CI] docstrings ( #6172 )
...
* Squashed commit of the following:
commit 52d7ff0f650bbcfa2d93ac96562b44269d3812a7
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 23:03:20 2024 +0100
fixed lookup
commit 0d076eaea89dce24f08af247479b3b4dff1b4df3
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 23:03:08 2024 +0100
switched to pathlib for lookup
commit 473e75eda205793769946e923748356ffd7e5b4b
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 22:52:30 2024 +0100
fix wrong url response
commit fd74f8d703399c19cb3616ea3b2656a50cd7a6e5
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 21:14:38 2024 +0100
switched to ruff for import sorting
commit f83fedbbb8de261ff8c706e179519e58e7a91064
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 21:03:14 2024 +0100
switched to single quotes everywhere
commit a92442e60e23be0ff5dcf42d222b0d95823ecb9b
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:58:23 2024 +0100
added autofixes
commit cc66c93136fcae8a701810a4f4f38ef3b570be61
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:56:47 2024 +0100
enable autoformat
commit 1f343606ec1f2a99acf8a37b9900d78a8fb37282
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:42:14 2024 +0100
Squashed commit of the following:
commit f5cf7b2e7872fc19633321713965763d1890b495
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:36:57 2024 +0100
fixed reqs
commit 9d845bee98befa4e53c2ac3c783bd704369e3ad2
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:32:35 2024 +0100
disable autofix/format
commit aff5f271484c3500df7ddde043767c008ce4af21
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:28:50 2024 +0100
adjust checks
commit 47271cf1efa848ec8374a0d83b5646d06fffa6e7
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:28:22 2024 +0100
reorder order of operations
commit e1bf178b40b3f0d2d59ba92209156c43095959d2
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:01:09 2024 +0100
adapted ruff settings to better fit code base
commit ad7d88a6f4f15c9552522131c4e207256fc2bbf6
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:59:45 2024 +0100
auto fixed docstring
commit a2e54a760e17932dbbc2de0dec23906107f2cda9
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:46:35 2024 +0100
fix getattr useage
commit cb80c73bc6c0be7f5d2ed3cc9b2ac03fdefd5c41
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:25:09 2024 +0100
fix requirements file
commit b7780bbd21a32007f3b0ce495b519bf59bb19bf5
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:42:28 2024 +0100
fix removed sections
commit 71f1681f55c15f62c16c1d7f30a745adc496db97
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:41:21 2024 +0100
fix djlint syntax
commit a0bcf1bccef8a8ffd482f38e2063bc9066e1d759
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:35:28 2024 +0100
remove flake8 from code base
commit 22475b31cc06919785be046e007915e43f356793
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:34:56 2024 +0100
remove flake8 from code base
commit 0413350f14773ac6161473e0cfb069713c13c691
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:24:39 2024 +0100
moved ruff section
commit d90c48a0bf98befdfacbbb093ee56cdb28afb40d
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:24:24 2024 +0100
move djlint config to pyproject
commit c5ce55d5119bf2e35e429986f62f875c86178ae1
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:20:39 2024 +0100
added isort again
commit 42a41d23afc280d4ee6f0e640148abc6f460f05a
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:19:02 2024 +0100
move config section
commit 85692331816348cb1145570340d1f6488a8265cc
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:17:52 2024 +0100
fix codespell error
commit 2897c6704d1311a800ce5aa47878d96d6980b377
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 17:29:21 2024 +0100
replaced flake8 with ruff
mostly for speed improvements
* enable docstring checks
* fix docstrings
* fixed D417 Missing argument description
* Squashed commit of the following:
commit d3b795824b5d6d1c0eda67150b45b5cd672b3f6b
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 22:56:17 2024 +0100
fixed source path
commit 0bac0c19b88897a19d5c995e4ff50427718b827e
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 22:47:53 2024 +0100
fixed req
commit 9f61f01d9cc01f1fb7123102f3658c890469b8ce
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 22:45:18 2024 +0100
added missing toml req
commit 91b71ed24a6761b629768d0ad8829fec2819a966
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:49:50 2024 +0100
moved isort config
commit 12460b04196b12d0272d40552402476d5492fea5
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:43:22 2024 +0100
remove flake8 section from setup.cfg
commit f5cf7b2e7872fc19633321713965763d1890b495
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:36:57 2024 +0100
fixed reqs
commit 9d845bee98befa4e53c2ac3c783bd704369e3ad2
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:32:35 2024 +0100
disable autofix/format
commit aff5f271484c3500df7ddde043767c008ce4af21
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:28:50 2024 +0100
adjust checks
commit 47271cf1efa848ec8374a0d83b5646d06fffa6e7
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:28:22 2024 +0100
reorder order of operations
commit e1bf178b40b3f0d2d59ba92209156c43095959d2
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:01:09 2024 +0100
adapted ruff settings to better fit code base
commit ad7d88a6f4f15c9552522131c4e207256fc2bbf6
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:59:45 2024 +0100
auto fixed docstring
commit a2e54a760e17932dbbc2de0dec23906107f2cda9
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:46:35 2024 +0100
fix getattr useage
commit cb80c73bc6c0be7f5d2ed3cc9b2ac03fdefd5c41
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:25:09 2024 +0100
fix requirements file
commit b7780bbd21a32007f3b0ce495b519bf59bb19bf5
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:42:28 2024 +0100
fix removed sections
commit 71f1681f55c15f62c16c1d7f30a745adc496db97
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:41:21 2024 +0100
fix djlint syntax
commit a0bcf1bccef8a8ffd482f38e2063bc9066e1d759
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:35:28 2024 +0100
remove flake8 from code base
commit 22475b31cc06919785be046e007915e43f356793
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:34:56 2024 +0100
remove flake8 from code base
commit 0413350f14773ac6161473e0cfb069713c13c691
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:24:39 2024 +0100
moved ruff section
commit d90c48a0bf98befdfacbbb093ee56cdb28afb40d
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:24:24 2024 +0100
move djlint config to pyproject
commit c5ce55d5119bf2e35e429986f62f875c86178ae1
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:20:39 2024 +0100
added isort again
commit 42a41d23afc280d4ee6f0e640148abc6f460f05a
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:19:02 2024 +0100
move config section
commit 85692331816348cb1145570340d1f6488a8265cc
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:17:52 2024 +0100
fix codespell error
commit 2897c6704d1311a800ce5aa47878d96d6980b377
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 17:29:21 2024 +0100
replaced flake8 with ruff
mostly for speed improvements
* fix pyproject
* make docstrings more uniform
* auto-format
* fix order
* revert url change
2024-01-11 14:40:07 +11:00
Matthias Mair
4b14986591
[CI] Enable python autoformat ( #6169 )
...
* Squashed commit of the following:
commit f5cf7b2e7872fc19633321713965763d1890b495
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:36:57 2024 +0100
fixed reqs
commit 9d845bee98befa4e53c2ac3c783bd704369e3ad2
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:32:35 2024 +0100
disable autofix/format
commit aff5f271484c3500df7ddde043767c008ce4af21
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:28:50 2024 +0100
adjust checks
commit 47271cf1efa848ec8374a0d83b5646d06fffa6e7
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:28:22 2024 +0100
reorder order of operations
commit e1bf178b40b3f0d2d59ba92209156c43095959d2
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:01:09 2024 +0100
adapted ruff settings to better fit code base
commit ad7d88a6f4f15c9552522131c4e207256fc2bbf6
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:59:45 2024 +0100
auto fixed docstring
commit a2e54a760e17932dbbc2de0dec23906107f2cda9
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:46:35 2024 +0100
fix getattr useage
commit cb80c73bc6c0be7f5d2ed3cc9b2ac03fdefd5c41
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:25:09 2024 +0100
fix requirements file
commit b7780bbd21a32007f3b0ce495b519bf59bb19bf5
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:42:28 2024 +0100
fix removed sections
commit 71f1681f55c15f62c16c1d7f30a745adc496db97
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:41:21 2024 +0100
fix djlint syntax
commit a0bcf1bccef8a8ffd482f38e2063bc9066e1d759
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:35:28 2024 +0100
remove flake8 from code base
commit 22475b31cc06919785be046e007915e43f356793
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:34:56 2024 +0100
remove flake8 from code base
commit 0413350f14773ac6161473e0cfb069713c13c691
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:24:39 2024 +0100
moved ruff section
commit d90c48a0bf98befdfacbbb093ee56cdb28afb40d
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:24:24 2024 +0100
move djlint config to pyproject
commit c5ce55d5119bf2e35e429986f62f875c86178ae1
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:20:39 2024 +0100
added isort again
commit 42a41d23afc280d4ee6f0e640148abc6f460f05a
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:19:02 2024 +0100
move config section
commit 85692331816348cb1145570340d1f6488a8265cc
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:17:52 2024 +0100
fix codespell error
commit 2897c6704d1311a800ce5aa47878d96d6980b377
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 17:29:21 2024 +0100
replaced flake8 with ruff
mostly for speed improvements
* enable autoformat
* added autofixes
* switched to single quotes everywhere
* switched to ruff for import sorting
* fix wrong url response
* switched to pathlib for lookup
* fixed lookup
* Squashed commit of the following:
commit d3b795824b5d6d1c0eda67150b45b5cd672b3f6b
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 22:56:17 2024 +0100
fixed source path
commit 0bac0c19b88897a19d5c995e4ff50427718b827e
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 22:47:53 2024 +0100
fixed req
commit 9f61f01d9cc01f1fb7123102f3658c890469b8ce
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 22:45:18 2024 +0100
added missing toml req
commit 91b71ed24a6761b629768d0ad8829fec2819a966
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:49:50 2024 +0100
moved isort config
commit 12460b04196b12d0272d40552402476d5492fea5
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:43:22 2024 +0100
remove flake8 section from setup.cfg
commit f5cf7b2e7872fc19633321713965763d1890b495
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:36:57 2024 +0100
fixed reqs
commit 9d845bee98befa4e53c2ac3c783bd704369e3ad2
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:32:35 2024 +0100
disable autofix/format
commit aff5f271484c3500df7ddde043767c008ce4af21
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:28:50 2024 +0100
adjust checks
commit 47271cf1efa848ec8374a0d83b5646d06fffa6e7
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:28:22 2024 +0100
reorder order of operations
commit e1bf178b40b3f0d2d59ba92209156c43095959d2
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:01:09 2024 +0100
adapted ruff settings to better fit code base
commit ad7d88a6f4f15c9552522131c4e207256fc2bbf6
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:59:45 2024 +0100
auto fixed docstring
commit a2e54a760e17932dbbc2de0dec23906107f2cda9
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:46:35 2024 +0100
fix getattr useage
commit cb80c73bc6c0be7f5d2ed3cc9b2ac03fdefd5c41
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:25:09 2024 +0100
fix requirements file
commit b7780bbd21a32007f3b0ce495b519bf59bb19bf5
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:42:28 2024 +0100
fix removed sections
commit 71f1681f55c15f62c16c1d7f30a745adc496db97
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:41:21 2024 +0100
fix djlint syntax
commit a0bcf1bccef8a8ffd482f38e2063bc9066e1d759
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:35:28 2024 +0100
remove flake8 from code base
commit 22475b31cc06919785be046e007915e43f356793
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:34:56 2024 +0100
remove flake8 from code base
commit 0413350f14773ac6161473e0cfb069713c13c691
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:24:39 2024 +0100
moved ruff section
commit d90c48a0bf98befdfacbbb093ee56cdb28afb40d
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:24:24 2024 +0100
move djlint config to pyproject
commit c5ce55d5119bf2e35e429986f62f875c86178ae1
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:20:39 2024 +0100
added isort again
commit 42a41d23afc280d4ee6f0e640148abc6f460f05a
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:19:02 2024 +0100
move config section
commit 85692331816348cb1145570340d1f6488a8265cc
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:17:52 2024 +0100
fix codespell error
commit 2897c6704d1311a800ce5aa47878d96d6980b377
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 17:29:21 2024 +0100
replaced flake8 with ruff
mostly for speed improvements
* fix coverage souce format
---------
Co-authored-by: Oliver Walters <oliver.henry.walters@gmail.com>
2024-01-11 11:28:58 +11:00
Matthias Mair
faac6b6bf5
refactor: remove blank lines after docstring ( #5736 )
...
There shouldn't be any blank lines after the function docstring.
Remove the blank lines to fix this issue.
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2023-10-18 07:28:57 +11:00
Matthias Mair
5d1d8ec889
Refactor states/status ( #4857 )
...
* add file for states
* move general definition out
* add some tests and docs
* add tests for invalid definitions
* make status_label tag generic
* move templatetags
* remove unused tag
* rename test file
* make status label a lookup
* rename tags
* move import structure
* add missing tag
* collect states dynamically
* fix context function
* move api function out
* add tests for tags
* rename tests
* refactor imports
* Add test for API function
* improve errors and add tests for imporved errors
* make test calls simpler
* refactor definitions to use enums
* switch to enum
* refactor definitions to use enums
* fix lookup
* fix tag name
* make _TAG lookup a function
* cleanup BaseEnum
* make _TAG definition simpler
* restructure status codes to enum
* reduce LoC
* type status codes as int
* add specific function for template context
* Add definition for lookups
* fix filter lookup
* TEST: "fix" action lookup
* Add missing migrations
* Make all group code references explict
* change default on models to value
* switch to IntEnum
* move groups into a seperate class
* only request _TAG if it exsists
* use value and list
* use dedicated groups
* fix stock assigment
* fix order code
* more fixes
* fix borked change
* fix render lookup
* add group
* fix import
* fix syntax
* clenup
* fix migrations
* fix typo
* fix wrong value usage
* fix test
* remove group section
* remove group section
* add more test cases
* Add more docstring
* move choices out of migrations
* change import ordeR?
* last try before I revert
* Update part.migrations.0112
- Add custom migration class which handles errors
* Add unit test for migration
- Ensure that the new fields are added to the model
* Update reference to PR
---------
Co-authored-by: Oliver Walters <oliver.henry.walters@gmail.com>
2023-06-09 10:27:26 +10:00
Matthias Mair
21ed4b2081
Fix common spelling mistakes ( #4956 )
...
* add codespell
* first fixes
* doc fixes
* fix docstrings and comments
* functional changes
* docstrings again
* and docs again
* rename args
* add ignore
* use pre-commit for filtering instead
* ups
* fix typo in filter
2023-06-04 00:04:52 +10:00
Oliver
4785f465e8
Cleanup / consolidate unit testing code ( #4831 )
...
- Move testing code out of helpers.py
- Create new file unit_test.py
2023-05-17 07:35:26 +10:00
Matthias Mair
1960e662a7
[BUG] Fix ownership ( #4244 )
...
* Reenable ownership tests
* [BUG] Stock item ownership results in stock item being read-only
Fixes #4229
* rebuild ownership tests
* jsut test stock stuff for now
* move ownership check to Owner
* fix assertation with lazy objects
* test all of stock
* Add edit checks
* remove old tests
* run full coverage again
* fix test
2023-01-25 09:28:36 +11:00
Oliver
875dda7e59
Null units fix ( #3663 )
...
* Hide units on part page if units are null
* Hide null units in stock table
* Hide null units in supplier part table
* Hide null units in part tables
* Template cleanup
* Unit test fix
2022-09-08 15:18:43 +10:00
Oliver
993f36c98f
Add missing 'remove stock' action ( #3610 )
...
* Add missing 'remove stock' action
* Add some unit tests for the stock item view
2022-08-25 20:07:01 +10:00
Matthias Mair
0c97a50e47
Docstring checks in QC checks ( #3089 )
...
* Add pre-commit to the stack
* exclude static
* Add locales to excludes
* fix style errors
* rename pipeline steps
* also wait on precommit
* make template matching simpler
* Use the same code for python setup everywhere
* use step and cache for python setup
* move regular settings up into general envs
* just use full update
* Use invoke instead of static references
* make setup actions more similar
* use python3
* refactor names to be similar
* fix runner version
* fix references
* remove incidential change
* use matrix for os
* Github can't do this right now
* ignore docstyle errors
* Add seperate docstring test
* update flake call
* do not fail on docstring
* refactor setup into workflow
* update reference
* switch to action
* resturcture
* add bash statements
* remove os from cache
* update input checks
* make code cleaner
* fix boolean
* no relative paths
* install wheel by python
* switch to install
* revert back to simple wheel
* refactor import export tests
* move setup keys back to not disturbe tests
* remove docstyle till that is fixed
* update references
* continue on error
* add docstring test
* use relativ action references
* Change step / job docstrings
* update to merge
* reformat comments 1
* fix docstrings 2
* fix docstrings 3
* fix docstrings 4
* fix docstrings 5
* fix docstrings 6
* fix docstrings 7
* fix docstrings 8
* fix docstirns 9
* fix docstrings 10
* docstring adjustments
* update the remaining docstrings
* small docstring changes
* fix function name
* update support files for docstrings
* Add missing args to docstrings
* Remove outdated function
* Add docstrings for the 'build' app
* Make API code cleaner
* add more docstrings for plugin app
* Remove dead code for plugin settings
No idea what that was even intended for
* ignore __init__ files for docstrings
* More docstrings
* Update docstrings for the 'part' directory
* Fixes for related_part functionality
* Fix removed stuff from merge 99676ee
* make more consistent
* Show statistics for docstrings
* add more docstrings
* move specific register statements to make them clearer to understant
* More docstrings for common
* and more docstrings
* and more
* simpler call
* docstrings for notifications
* docstrings for common/tests
* Add docs for common/models
* Revert "move specific register statements to make them clearer to understant"
This reverts commit ca9665462202c2d63f34b4fd920013b1457bbb6d.
* use typing here
* Revert "Make API code cleaner"
This reverts commit 24fb68bd3e1ccfea2ee398c9e18afb01eb340fee.
* docstring updates for the 'users' app
* Add generic Meta info to simple Meta classes
* remove unneeded unique_together statements
* More simple metas
* Remove unnecessary format specifier
* Remove extra json format specifiers
* Add docstrings for the 'plugin' app
* Docstrings for the 'label' app
* Add missing docstrings for the 'report' app
* Fix build test regression
* Fix top-level files
* docstrings for InvenTree/InvenTree
* reduce unneeded code
* add docstrings
* and more docstrings
* more docstrings
* more docstrings for stock
* more docstrings
* docstrings for order/views
* Docstrings for various files in the 'order' app
* Docstrings for order/test_api.py
* Docstrings for order/serializers.py
* Docstrings for order/admin.py
* More docstrings for the order app
* Add docstrings for the 'company' app
* Add unit tests for rebuilding the reference fields
* Prune out some more dead code
* remove more dead code
Co-authored-by: Oliver Walters <oliver.henry.walters@gmail.com>
2022-06-02 01:37:39 +10:00
Matthias Mair
a148dbf303
refactor 'all' role
2022-05-20 17:43:51 +02:00
Matthias Mair
9f922f06ff
fix more imports
2022-05-20 12:53:04 +02:00
Matthias Mair
e8287f02d4
rename
2022-05-20 12:33:51 +02:00
Matthias Mair
3a1996dd48
PEP fix
2022-05-20 12:32:25 +02:00
Matthias Mair
0d5dea3e6d
refactor test setup
2022-05-20 12:12:32 +02:00
Matthias
491bb0b28f
fix import
2022-02-13 05:34:06 +01:00
Matthias
021faf4c1f
move up comment so unneeded functions are not not covered
2022-02-13 05:11:14 +01:00
Oliver
185924e1f8
More linting
2021-11-05 00:35:47 +11:00
Oliver
78ac40083a
Fixes for stock api unit tests
...
- Remove old unit tests
- Require quantity when creating a new stock item
2021-11-05 00:27:26 +11:00
Oliver
1d42d33c8e
style fixes
2021-11-03 11:33:44 +11:00
Oliver
be7b224f14
Adds API endpoint for serialization of stock items
2021-11-03 10:12:42 +11:00
Oliver
ef305032c9
Create new stock location via API forms
2021-11-02 20:04:54 +11:00
Oliver
0d9c08b49c
StockLocationEdit
2021-11-02 19:58:25 +11:00
Oliver
4c8bc9580c
stock-item-edit is looking OK now
2021-11-02 19:51:46 +11:00
Oliver
9fc7976569
Refactor all "adjustment" forms to use the new API approach
2021-07-12 20:38:54 +10:00
f2b0717d10
removes all lines consisting only of spaces
...
this really bothers me for some reason - nothing technical
2021-05-06 12:11:38 +02:00
Oliver Walters
9159afe9ce
Unit test fix
2021-02-22 17:27:48 +11:00
eeintech
0a0a47a5e4
Added location owner change test case to verify stock item owner in that location is also updated
2021-01-12 17:11:46 -05:00
eeintech
5ca03af3e2
Improved Owner.get_owner method and fixed tests (try#2)
2021-01-12 16:36:29 -05:00
eeintech
49c954aa68
Fixed test cases?
2021-01-12 15:02:44 -05:00
eeintech
587bf26d94
Fixed style
2021-01-08 14:23:35 -05:00
eeintech
f26f1c38a2
Merged master
2021-01-07 13:50:29 -05:00
Oliver Walters
33d6396a4e
Exclude expired stock from builds
2021-01-06 21:00:45 +11:00
Oliver Walters
da02ab3eac
Add unit testing for view
2021-01-05 00:01:44 +11:00
eeintech
33dfecfdef
Added create view test cases for stock ownership
2020-12-03 13:29:59 -05:00
eeintech
3aad5111b5
Stock ownership: test case for edit stock location and item
2020-12-03 11:56:45 -05:00
eeintech
f99c83f69d
Added test case for stock location ownership
2020-12-03 07:32:01 -05:00
Oliver Walters
ae7fbd6112
Add PEP8-naming extension for flake
...
- Enforcing python naming checks
2020-11-12 21:53:04 +11:00
eeintech
e4ce19d22a
Added Test user and all permissions
2020-10-06 09:02:10 -05:00
Oliver Walters
094e8cdc23
PEP
2019-08-30 00:15:16 +10:00
Oliver Walters
891f4f9f17
Another test
2019-08-30 00:14:54 +10:00
Oliver Walters
6f8c3454f3
Tests for stock serialization form
2019-08-30 00:06:46 +10:00
Oliver Walters
a36d99b3e7
PEP fixes
2019-08-09 20:14:47 +10:00
Oliver Walters
bd61c89094
Tests for stock app views
2019-08-09 20:13:23 +10:00