Skip to content

Commit

Permalink
updated repo to current InvenHost defaults (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
matmair authored Jan 4, 2024
1 parent 1e999df commit 1f4a828
Show file tree
Hide file tree
Showing 10 changed files with 302 additions and 206 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ on:

jobs:
plugin-action:
uses: matmair/inventree-meta-plugin/.github/workflows/plugin_action.yaml@main
secrets: inherit
name: CI
uses: matmair/inventree-meta-plugin/.github/workflows/plugin_action.yaml@next
secrets:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
37 changes: 16 additions & 21 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: .*/(static|migrations|locale)/.*
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: mixed-line-ending
- repo: https://github.com/pycqa/flake8
rev: '6.0.0'
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: mixed-line-ending
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.11
hooks:
- id: flake8
additional_dependencies: [
'flake8-bugbear',
'flake8-docstrings',
'flake8-string-format',
'pep8-naming ',
]
- repo: https://github.com/pycqa/isort
rev: '5.12.0'
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: isort
- id: codespell
24 changes: 21 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readme = "README.md"
license = {text = "MIT"}
keywords = ["inventree", "inventree-plugin", "shopify"]
authors = [
{name = "Matthias J Mair", email = "info@mjmair.com"}
{name = "Matthias Mair", email = "code@mjmair.com"}
]
classifiers=[
"Programming Language :: Python :: 3",
Expand All @@ -30,11 +30,29 @@ dependencies = ['requests', 'django']
dev = ['twine', 'setuptools']

[project.urls]
repository = "https://github.com/matmair/inventree-shopify"
"Bug Tracker" = "https://github.com/matmair/inventree-shopify/issues"
"Repository" = "https://github.com/invenhost/inventree-shopify"
"Bug Tracker" = "https://github.com/invenhost/inventree-shopify/issues"

[project.entry-points."inventree_plugins"]
inventree-shopify = "inventree_shopify:ShopifyPlugin"

[tool.setuptools.packages.find]
where = ["src"]

[tool.ruff]
exclude=[".git","__pycache__","dist","build","test.py","tests", "venv","env",".venv",".env"]

[tool.ruff.lint]
select = ["A", "B", "C4", "D", "DJ", "N", "I","S"]
ignore = ["N999", ]

[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.ruff.lint.isort]
combine-as-imports = true
section-order = ["future", "standard-library", "django", "third-party", "first-party", "local-folder" ]
known-first-party = ["src", "plugin", "InvenTree", "common"]

[tool.ruff.lint.isort.sections]
"django" = ["django"]
9 changes: 0 additions & 9 deletions setup.cfg

This file was deleted.

Loading

0 comments on commit 1f4a828

Please sign in to comment.