Skip to content

Commit

Permalink
Update package
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed Sep 17, 2024
1 parent 985efc7 commit 959af42
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 9 deletions.
23 changes: 23 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# https://editorconfig.org/

root = true

[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8

[*.py]
max_line_length = 88

[*.toml]
indent_size = 2

[docs/**.rst]
max_line_length = 79

[*.{yaml,yml}]
indent_size = 2
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Update repositories
run: sudo apt-get update
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down
4 changes: 3 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include LICENSE
include MANIFEST.in
include .editorconfig
include *.yaml
include pyproject.toml
include *.md
Expand All @@ -11,5 +12,6 @@ include docs/*.rst docs/*.txt docs/*.py docs/Makefile
graft src
graft tests
graft example
global-exclude *.pyc
prune docs/_build
exclude example/db.sqlite3
global-exclude *.py[cod]
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ classifiers = [
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
Expand All @@ -24,9 +25,7 @@ classifiers = [
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
]
dependencies = [
"Django>=4.2",
]
dependencies = ["Django>=4.2"]
description = "Icons for Django"
keywords = ["django", "icons"]
license = {file = "LICENSE"}
Expand Down Expand Up @@ -73,15 +72,15 @@ unfixable = [
]

[tool.ruff.lint.isort]
known-first-party = ["django_marina", "app"]
known-first-party = ["django_icons", "app"]
known-third-party = ["django"]

[tool.coverage.run]
branch = true
source = ["src", "tests"]

[tool.coverage.paths]
package = ["src/django_marina", "*/django_marina/src/django_marina"]
package = ["src/django_icons", "*/django_icons/src/django_icons"]

[tool.coverage.report]
show_missing = true
Expand Down
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ envlist =
py311-{4.2,5.0,5.1,main},
py312-{4.2,5.0,5.1,main},
docs,
lint,
ruff,

[testenv]
basepython =
Expand All @@ -32,9 +32,8 @@ deps =

[testenv:ruff]
basepython = python3.11
allowlist_externals = ruff
deps = ruff
commands = ruff .
commands = ruff check .

[testenv:docs]
basepython = python3.11
Expand Down

0 comments on commit 959af42

Please sign in to comment.