Matthias Mair
9d0264c319
[CI] docstrings ( #6172 )
...
* Squashed commit of the following:
commit 52d7ff0f65
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 23:03:20 2024 +0100
fixed lookup
commit 0d076eaea8
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 23:03:08 2024 +0100
switched to pathlib for lookup
commit 473e75eda2
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 22:52:30 2024 +0100
fix wrong url response
commit fd74f8d703
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 21:14:38 2024 +0100
switched to ruff for import sorting
commit f83fedbbb8
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 21:03:14 2024 +0100
switched to single quotes everywhere
commit a92442e60e
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:58:23 2024 +0100
added autofixes
commit cc66c93136
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:56:47 2024 +0100
enable autoformat
commit 1f343606ec
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:42:14 2024 +0100
Squashed commit of the following:
commit f5cf7b2e78
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:36:57 2024 +0100
fixed reqs
commit 9d845bee98
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:32:35 2024 +0100
disable autofix/format
commit aff5f27148
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:28:50 2024 +0100
adjust checks
commit 47271cf1ef
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:28:22 2024 +0100
reorder order of operations
commit e1bf178b40
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:01:09 2024 +0100
adapted ruff settings to better fit code base
commit ad7d88a6f4
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:59:45 2024 +0100
auto fixed docstring
commit a2e54a760e
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:46:35 2024 +0100
fix getattr useage
commit cb80c73bc6
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:25:09 2024 +0100
fix requirements file
commit b7780bbd21
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:42:28 2024 +0100
fix removed sections
commit 71f1681f55
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:41:21 2024 +0100
fix djlint syntax
commit a0bcf1bcce
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:35:28 2024 +0100
remove flake8 from code base
commit 22475b31cc
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:34:56 2024 +0100
remove flake8 from code base
commit 0413350f14
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:24:39 2024 +0100
moved ruff section
commit d90c48a0bf
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:24:24 2024 +0100
move djlint config to pyproject
commit c5ce55d511
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:20:39 2024 +0100
added isort again
commit 42a41d23af
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:19:02 2024 +0100
move config section
commit 8569233181
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:17:52 2024 +0100
fix codespell error
commit 2897c6704d
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 d3b795824b
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 22:56:17 2024 +0100
fixed source path
commit 0bac0c19b8
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 22:47:53 2024 +0100
fixed req
commit 9f61f01d9c
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 22:45:18 2024 +0100
added missing toml req
commit 91b71ed24a
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:49:50 2024 +0100
moved isort config
commit 12460b0419
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:43:22 2024 +0100
remove flake8 section from setup.cfg
commit f5cf7b2e78
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:36:57 2024 +0100
fixed reqs
commit 9d845bee98
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:32:35 2024 +0100
disable autofix/format
commit aff5f27148
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:28:50 2024 +0100
adjust checks
commit 47271cf1ef
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:28:22 2024 +0100
reorder order of operations
commit e1bf178b40
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:01:09 2024 +0100
adapted ruff settings to better fit code base
commit ad7d88a6f4
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:59:45 2024 +0100
auto fixed docstring
commit a2e54a760e
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:46:35 2024 +0100
fix getattr useage
commit cb80c73bc6
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:25:09 2024 +0100
fix requirements file
commit b7780bbd21
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:42:28 2024 +0100
fix removed sections
commit 71f1681f55
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:41:21 2024 +0100
fix djlint syntax
commit a0bcf1bcce
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:35:28 2024 +0100
remove flake8 from code base
commit 22475b31cc
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:34:56 2024 +0100
remove flake8 from code base
commit 0413350f14
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:24:39 2024 +0100
moved ruff section
commit d90c48a0bf
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:24:24 2024 +0100
move djlint config to pyproject
commit c5ce55d511
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:20:39 2024 +0100
added isort again
commit 42a41d23af
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:19:02 2024 +0100
move config section
commit 8569233181
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:17:52 2024 +0100
fix codespell error
commit 2897c6704d
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 f5cf7b2e78
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:36:57 2024 +0100
fixed reqs
commit 9d845bee98
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:32:35 2024 +0100
disable autofix/format
commit aff5f27148
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:28:50 2024 +0100
adjust checks
commit 47271cf1ef
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:28:22 2024 +0100
reorder order of operations
commit e1bf178b40
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:01:09 2024 +0100
adapted ruff settings to better fit code base
commit ad7d88a6f4
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:59:45 2024 +0100
auto fixed docstring
commit a2e54a760e
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:46:35 2024 +0100
fix getattr useage
commit cb80c73bc6
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:25:09 2024 +0100
fix requirements file
commit b7780bbd21
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:42:28 2024 +0100
fix removed sections
commit 71f1681f55
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:41:21 2024 +0100
fix djlint syntax
commit a0bcf1bcce
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:35:28 2024 +0100
remove flake8 from code base
commit 22475b31cc
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:34:56 2024 +0100
remove flake8 from code base
commit 0413350f14
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:24:39 2024 +0100
moved ruff section
commit d90c48a0bf
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:24:24 2024 +0100
move djlint config to pyproject
commit c5ce55d511
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:20:39 2024 +0100
added isort again
commit 42a41d23af
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:19:02 2024 +0100
move config section
commit 8569233181
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:17:52 2024 +0100
fix codespell error
commit 2897c6704d
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 d3b795824b
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 22:56:17 2024 +0100
fixed source path
commit 0bac0c19b8
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 22:47:53 2024 +0100
fixed req
commit 9f61f01d9c
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 22:45:18 2024 +0100
added missing toml req
commit 91b71ed24a
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:49:50 2024 +0100
moved isort config
commit 12460b0419
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:43:22 2024 +0100
remove flake8 section from setup.cfg
commit f5cf7b2e78
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:36:57 2024 +0100
fixed reqs
commit 9d845bee98
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:32:35 2024 +0100
disable autofix/format
commit aff5f27148
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:28:50 2024 +0100
adjust checks
commit 47271cf1ef
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:28:22 2024 +0100
reorder order of operations
commit e1bf178b40
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 20:01:09 2024 +0100
adapted ruff settings to better fit code base
commit ad7d88a6f4
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:59:45 2024 +0100
auto fixed docstring
commit a2e54a760e
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:46:35 2024 +0100
fix getattr useage
commit cb80c73bc6
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 19:25:09 2024 +0100
fix requirements file
commit b7780bbd21
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:42:28 2024 +0100
fix removed sections
commit 71f1681f55
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:41:21 2024 +0100
fix djlint syntax
commit a0bcf1bcce
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:35:28 2024 +0100
remove flake8 from code base
commit 22475b31cc
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:34:56 2024 +0100
remove flake8 from code base
commit 0413350f14
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:24:39 2024 +0100
moved ruff section
commit d90c48a0bf
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:24:24 2024 +0100
move djlint config to pyproject
commit c5ce55d511
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:20:39 2024 +0100
added isort again
commit 42a41d23af
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:19:02 2024 +0100
move config section
commit 8569233181
Author: Matthias Mair <code@mjmair.com>
Date: Sun Jan 7 18:17:52 2024 +0100
fix codespell error
commit 2897c6704d
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
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
Oliver
cde2050236
Client side QR Codes ( #4357 )
...
* Add JS for qrcodejs
Ref: https://davidshimjs.github.io/qrcodejs/
* Simple function for rendering a QR code
* Refactor QR code view for Part
* Replace QR code view for SupplierPart
* Refactor QR codes for stock item and stock location models
* Remove base QRCodeView entirely
2023-02-17 13:33:36 +11:00
Matthias Mair
0e96654b6a
[FR] Move URL endpoints to API namespace ( #4163 )
...
* Move endpoints
[FR] Move download URL endpoints to API namespace
Fixes #3927
* rename endpoint ref name and update js
* update endpoint name and js
* rename endpoint and fix js
* add docstring
2023-01-07 23:23:38 +11:00
Oliver
2b1d8f5b79
Set part category ( #3134 )
...
* Refactor function to enable / disable submit button on modal forms
* Category selection now just uses the AP
* Remove unused forms / views
* JS linting fixes
* remove outdated unit test
2022-06-06 13:00:30 +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 ca96654622 .
* use typing here
* Revert "Make API code cleaner"
This reverts commit 24fb68bd3e .
* 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
6ef8c3dc83
run as admin
2022-05-20 19:11:21 +02:00
Matthias Mair
45a9a4d0c5
add in missing class references
2022-05-20 17:55:11 +02:00
Matthias Mair
a148dbf303
refactor 'all' role
2022-05-20 17:43: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
Oliver
4f74a27e1a
Exporting data from a Part table now uses the API too
...
- Makes use of the existing table filters
- Exported data matches exactly what you see in the table!
2022-03-03 17:42:31 +11:00
Oliver
4a90786296
PEP code style fixes
2021-11-25 14:55:24 +11:00
Oliver
68f7887379
Related parts are now created via the API
2021-11-25 14:23:27 +11:00
Oliver
6816071388
Simplify BOM editing view
...
- A user with permission to edit BOM data can immediately access the BOM editing tools
2021-10-13 14:44:59 +11:00
Oliver Walters
aa4ed9feb0
Refactor MakeVariant form
...
- Now is essentially identical to the DuplicatePart form
- Uses the API form structure
2021-08-05 00:24:38 +10:00
Oliver Walters
b04f22fc53
CreatePart form now uses the API
...
- Simplify the way category parameter templates are copied
2021-08-04 23:27:16 +10:00
Oliver Walters
2e8a490ca9
Fixes for unit tests
2021-08-04 17:41:47 +10:00
Oliver
83d8226ad6
Refactor "CreatePartCategory" form to API
...
(cherry picked from commit 06ff961564 )
2021-08-04 11:34:42 +10:00
Oliver
984e16d5af
Return all part parameters to the main part edit form
...
- refactor purchaseorder view
- refactor salesorder view
2021-07-15 16:07:46 +10:00
Oliver
238dccc071
Replace PartAttachmentCreate form
2021-06-30 09:45:36 +10:00
Oliver
621f47e46c
Replace "edit part category" form
2021-06-30 01:04:39 +10:00
Matthias
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
199ba27031
PEP!!!
2021-02-22 18:44:59 +11:00
Oliver Walters
28e9aa4afa
More unit fixes
2021-02-22 18:11:40 +11:00
Oliver Walters
ae7fbd6112
Add PEP8-naming extension for flake
...
- Enforcing python naming checks
2020-11-12 21:53:04 +11:00
eeintech
142cea0cbb
Removed custom form save method, remove unused model methods, restored InvenTree CreateAjaxView, improved part related testing
2020-11-04 07:44:06 -05:00
eeintech
0882528b82
Missing class trailing space
2020-11-03 11:15:16 -05:00
eeintech
32b46cdc2a
Added better PartRelated creation test
2020-11-03 11:14:31 -05:00
eeintech
0b26d68d0f
Added admin view, improved validation of part related relationship
2020-10-16 15:29:58 -05:00
Oliver Walters
b3e4efd96e
Unit testing fixes
2020-10-06 16:03:19 +11:00
Oliver Walters
3f59ce3f93
Update unit tests
...
- requires the user to actually have the necessary permissions!
2020-10-06 01:30:36 +11:00
eeintech
27241e217f
Style correction
2020-09-07 08:46:39 -05:00
eeintech
c5efce36b6
Added PartDetailFromIPN view tests
2020-09-07 08:40:37 -05:00
Oliver Walters
882bda46b4
Fix tests
2020-02-11 22:38:50 +11:00
Oliver Walters
bd653f2c49
Some more unit tests
2020-01-07 21:16:01 +11:00
Oliver Walters
dac1264878
Fixed unit tests
2019-09-06 12:48:31 +10:00
Oliver Walters
20b37a2d11
Test fixes
2019-09-03 22:45:11 +10:00
Oliver Walters
45d5667ccc
PEP fixes
2019-08-08 23:36:32 +10:00
Oliver Walters
b872a12131
Test for making part variant
2019-08-08 23:34:32 +10:00
Oliver Walters
3a87cd866c
Tests for part creation
...
- Need more tests for POST action
2019-08-08 23:32:34 +10:00
Oliver Walters
51e4a4c006
Tests for BomItem forms
2019-08-08 23:22:26 +10:00
Oliver Walters
d6f1fe74d1
Tests for PartCategory forms
2019-08-08 23:16:03 +10:00
Oliver Walters
ab3e66d578
Test for BOM download
2019-08-08 23:10:07 +10:00
Oliver Walters
f299248063
Improve testing for part export
2019-08-08 23:06:22 +10:00
Oliver Walters
21d2c434ff
Test for part export view
...
- Needs some more work (parts need supplier parts!)
2019-08-08 23:04:58 +10:00
Oliver Walters
afcd411358
(partial) tests for attachment forms
2019-08-08 23:00:01 +10:00
Oliver Walters
3a9494ee69
Test for Part Editing form
2019-08-08 22:50:17 +10:00
Oliver Walters
7db97f2226
Test Part QR Code view
2019-08-08 22:45:10 +10:00