Skip to content

Commit 3983044

Browse files
committed
add initial project configuration files and pre-commit setup
0 parents  commit 3983044

5 files changed

Lines changed: 184 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
.idea/

.pre-commit-config.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# To update the versions:
2+
# pre-commit autoupdate
3+
repos:
4+
- repo: https://github.com/astral-sh/uv-pre-commit
5+
rev: 0.8.5
6+
hooks:
7+
- id: uv-lock
8+
- repo: https://github.com/pre-commit/pre-commit-hooks
9+
rev: v5.0.0
10+
hooks:
11+
- id: trailing-whitespace
12+
- id: end-of-file-fixer
13+
exclude: '\.ipynb$'
14+
- id: debug-statements
15+
- id: check-added-large-files
16+
exclude: "bin/"
17+
- id: check-json
18+
- id: check-toml
19+
- id: check-xml
20+
- id: check-yaml
21+
- id: check-builtin-literals
22+
- id: check-case-conflict
23+
- id: check-docstring-first
24+
- id: detect-private-key
25+
- id: check-merge-conflict
26+
- id: mixed-line-ending
27+
- repo: https://github.com/astral-sh/ruff-pre-commit
28+
rev: v0.12.7
29+
hooks:
30+
- id: ruff
31+
name: 'ruff lint'
32+
types_or: [python, pyi]
33+
args: [--fix]
34+
35+
- id: ruff
36+
name: 'ruff sort imports'
37+
args: ["check", "--select", "I", "--fix"]
38+
types_or: [python, pyi]
39+
40+
- id: ruff-format
41+
name: 'ruff format'
42+
types_or: [python, pyi]

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[project]
2+
name = "cc-django"
3+
version = "0.1.0"
4+
description = "Cookiecutter for Django projects singularIT"
5+
requires-python = ">=3.12"
6+
dependencies = []
7+
8+
[dependency-groups]
9+
dev = [
10+
"pre-commit>=4.2.0",
11+
]

uv.lock

Lines changed: 128 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)