Skip to content

Commit 126bbca

Browse files
authored
Merge pull request #177 from django-commons/v3
Merge version 3.0!
2 parents 190cbf6 + 08247df commit 126bbca

File tree

273 files changed

+27456
-3436
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

273 files changed

+27456
-3436
lines changed

.codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ coverage:
33
fixes:
44
- "__init__.py::django_typer/__init__.py"
55
- "management/__init__.py::django_typer/management/__init__.py"
6+
- "utils.py::django_typer/utils.py"

.gitattributes

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
7+
8+
9+
# Source files
10+
# ============
11+
*.pxd text diff=python
12+
*.py text diff=python
13+
*.py3 text diff=python
14+
*.pyw text diff=python
15+
*.pyx text diff=python
16+
*.pyz text diff=python
17+
*.pyi text diff=python
18+
*.rst text
19+
*.md text
20+
justfile text
21+
*.toml text
22+
LICENSE text
23+
*.yaml text
24+
*.yml text
25+
*.po text
26+
*.tmpl text
27+
*.json text
28+
*.xml text
29+
30+
# powershell
31+
# ============
32+
*.ps1 text eol=crlf
33+
*.ps1x text eol=crlf
34+
*.psm1 text eol=crlf
35+
*.psd1 text eol=crlf
36+
*.ps1xml text eol=crlf
37+
*.pssc text eol=crlf
38+
*.psrc text eol=crlf
39+
*.cdxml text eol=crlf
40+
41+
# Jupyter notebook
42+
*.ipynb text eol=lf
43+
44+
# Declare files that will always have CRLF line endings on checkout.
45+
django_typer/management/commands/shells/powershell.tmpl text eol=crlf
46+
47+
# Binary files
48+
# ============
49+
*.db binary
50+
*.p binary
51+
*.pkl binary
52+
*.pickle binary
53+
*.pyc binary export-ignore
54+
*.pyo binary export-ignore
55+
*.pyd binary
56+
*.png binary
57+
*.jpg binary
58+
*.pdf binary
59+
*.svg binary
60+
*.drawio binary
61+
*.gif binary
62+
*.mo binary
63+
*.jpeg binary
64+
*.tif binary
65+
*.tiff binary
66+
*.ico binary
67+
*.eps binary
68+
69+
# Documents
70+
*.bibtex text diff=bibtex
71+
*.doc diff=astextplain
72+
*.DOC diff=astextplain
73+
*.docx diff=astextplain
74+
*.DOCX diff=astextplain
75+
*.dot diff=astextplain
76+
*.DOT diff=astextplain
77+
*.pdf diff=astextplain
78+
*.PDF diff=astextplain
79+
*.rtf diff=astextplain
80+
*.RTF diff=astextplain
81+
*.md text diff=markdown
82+
*.mdx text diff=markdown
83+
*.tex text diff=tex
84+
*.adoc text
85+
*.textile text
86+
*.mustache text
87+
*.csv text eol=crlf
88+
*.tab text
89+
*.tsv text
90+
*.txt text
91+
*.sql text
92+
*.epub diff=astextplain
93+
94+
# Scripts
95+
*.bash text eol=lf
96+
*.fish text eol=lf
97+
*.ksh text eol=lf
98+
*.sh text eol=lf
99+
*.zsh text eol=lf
100+
# These are explicitly windows files and should use crlf
101+
*.bat text eol=crlf
102+
*.cmd text eol=crlf
103+
*.ps1 text eol=crlf
104+
105+
# Archives
106+
*.7z binary
107+
*.bz binary
108+
*.bz2 binary
109+
*.bzip2 binary
110+
*.gz binary
111+
*.lz binary
112+
*.lzma binary
113+
*.rar binary
114+
*.tar binary
115+
*.taz binary
116+
*.tbz binary
117+
*.tbz2 binary
118+
*.tgz binary
119+
*.tlz binary
120+
*.txz binary
121+
*.xz binary
122+
*.Z binary
123+
*.zip binary
124+
*.zst binary
125+
126+
# Text files where line endings should be preserved
127+
*.patch -text
128+
129+
.gitattributes export-ignore
130+
.gitignore export-ignore
131+
.gitkeep export-ignore

.github/dependabot.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
# To get started with Dependabot version updates, you'll need to specify which
22
# package ecosystems to update and where the package manifests are located.
33
# Please see the documentation for all configuration options:
4-
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
55

66
version: 2
77
updates:
8-
- package-ecosystem: "pip" # See documentation for possible values
9-
directory: "/" # Location of package manifests
8+
# GitHub Actions
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
1011
schedule:
1112
interval: "daily"
13+
commit-message:
14+
prefix:
15+
# Python
16+
- package-ecosystem: "pip"
17+
directory: "/"
18+
schedule:
19+
interval: "daily"
20+
commit-message:
21+
prefix:

.github/workflows/lint.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Lint
22

33
on:
44
push:
5+
branches: main
56
pull_request:
67
workflow_dispatch:
78
inputs:
@@ -37,24 +38,22 @@ jobs:
3738
- python-version: '3.10'
3839
django-version: '5.1'
3940

41+
env:
42+
TEST_PYTHON_VERSION: ${{ matrix.python-version }}
43+
TEST_DJANGO_VERSION: ${{ matrix.django-version }}
4044
steps:
4145
- uses: actions/checkout@v4
4246
- name: Set up Python ${{ matrix.python-version }}
4347
uses: actions/setup-python@v5
48+
id: sp
4449
with:
4550
python-version: ${{ matrix.python-version }}
46-
- name: Install Poetry
47-
uses: snok/install-poetry@v1
48-
with:
49-
virtualenvs-create: true
50-
virtualenvs-in-project: true
51+
- name: Install Just
52+
uses: extractions/setup-just@v2
5153
- name: Install Dependencies
5254
run: |
53-
poetry config virtualenvs.in-project true
54-
poetry run pip install --upgrade pip
55-
poetry install -E rich
56-
poetry run pip install colorama
57-
poetry run pip install -U "django~=${{ matrix.django-version }}"
55+
just init ${{ steps.sp.outputs.python-path }} install
56+
just pin-dependency Django~=${{ matrix.django-version }}.0
5857
- name: Install Emacs
5958
if: ${{ github.event.inputs.debug == 'true' }}
6059
run: |
@@ -67,7 +66,9 @@ jobs:
6766
timeout-minutes: 60
6867
- name: Run Static Analysis
6968
run: |
70-
source .venv/bin/activate
71-
./check.sh --no-fix
72-
python -m readme_renderer ./README.md -o /tmp/README.html
73-
echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
69+
just test ./tests/verify_environment.py
70+
just check-lint
71+
just check-format
72+
just check-types
73+
just check-package
74+
just check-readme

0 commit comments

Comments
 (0)