Skip to content

Commit 481db84

Browse files
committed
Initial commit
0 parents  commit 481db84

28 files changed

+1437
-0
lines changed

.coveragerc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# .coveragerc to control coverage.py
2+
[run]
3+
branch = True
4+
source = strawberry_sqlalchemy_mapper
5+
# omit = bad_file.py
6+
7+
[paths]
8+
source =
9+
src/
10+
*/site-packages/
11+
12+
[report]
13+
# Regexes for lines to exclude from consideration
14+
exclude_lines =
15+
# Have to re-enable the standard pragma
16+
pragma: no cover
17+
18+
# Don't complain about missing debug-only code:
19+
def __repr__
20+
if self\.debug
21+
22+
# Don't complain if tests don't hit defensive assertion code:
23+
raise AssertionError
24+
raise NotImplementedError
25+
26+
# Don't complain if non-runnable code isn't run:
27+
if 0:
28+
if __name__ == .__main__.:

.gitignore

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Temporary and binary files
2+
*~
3+
*.py[cod]
4+
*.so
5+
*.cfg
6+
!.isort.cfg
7+
!setup.cfg
8+
*.orig
9+
*.log
10+
*.pot
11+
__pycache__/*
12+
.cache/*
13+
.*.swp
14+
*/.ipynb_checkpoints/*
15+
.DS_Store
16+
17+
# Project files
18+
.ropeproject
19+
.project
20+
.pydevproject
21+
.settings
22+
.idea
23+
.vscode
24+
tags
25+
26+
# Package files
27+
*.egg
28+
*.eggs/
29+
.installed.cfg
30+
*.egg-info
31+
32+
# Unittest and coverage
33+
htmlcov/*
34+
.coverage
35+
.coverage.*
36+
.tox
37+
junit*.xml
38+
coverage.xml
39+
.pytest_cache/
40+
41+
# Build and docs folder/files
42+
build/*
43+
dist/*
44+
sdist/*
45+
docs/api/*
46+
docs/_rst/*
47+
docs/_build/*
48+
cover/*
49+
MANIFEST
50+
51+
# Per-project virtualenvs
52+
.venv*/
53+
.conda*/

.isort.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[settings]
2+
profile = black
3+
known_first_party = strawberry_sqlalchemy_mapper

.pre-commit-config.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
exclude: '^docs/conf.py'
2+
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.1.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: check-added-large-files
9+
- id: check-ast
10+
- id: check-json
11+
- id: check-merge-conflict
12+
- id: check-xml
13+
- id: check-yaml
14+
- id: debug-statements
15+
- id: end-of-file-fixer
16+
- id: requirements-txt-fixer
17+
- id: mixed-line-ending
18+
args: ['--fix=auto'] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows
19+
20+
## If you want to avoid flake8 errors due to unused vars or imports:
21+
# - repo: https://github.com/myint/autoflake
22+
# rev: v1.4
23+
# hooks:
24+
# - id: autoflake
25+
# args: [
26+
# --in-place,
27+
# --remove-all-unused-imports,
28+
# --remove-unused-variables,
29+
# ]
30+
31+
- repo: https://github.com/pycqa/isort
32+
rev: 5.10.1
33+
hooks:
34+
- id: isort
35+
36+
- repo: https://github.com/psf/black
37+
rev: stable
38+
hooks:
39+
- id: black
40+
language_version: python3
41+
42+
## If like to embrace black styles even in the docs:
43+
# - repo: https://github.com/asottile/blacken-docs
44+
# rev: v1.12.0
45+
# hooks:
46+
# - id: blacken-docs
47+
# additional_dependencies: [black]
48+
49+
- repo: https://github.com/PyCQA/flake8
50+
rev: 4.0.1
51+
hooks:
52+
- id: flake8
53+
## You can add flake8 plugins via `additional_dependencies`:
54+
# additional_dependencies: [flake8-bugbear]

.readthedocs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Build documentation in the docs/ directory with Sphinx
8+
sphinx:
9+
configuration: docs/conf.py
10+
11+
# Build documentation with MkDocs
12+
#mkdocs:
13+
# configuration: mkdocs.yml
14+
15+
# Optionally build your docs in additional formats such as PDF
16+
formats:
17+
- pdf
18+
19+
python:
20+
version: 3.8
21+
install:
22+
- requirements: docs/requirements.txt
23+
- {path: ., method: pip}

AUTHORS.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
============
2+
Contributors
3+
============
4+
5+
* Tim Dumol <[email protected]>

CHANGELOG.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
=========
2+
Changelog
3+
=========
4+
5+
Version 0.1
6+
===========
7+
8+
- Feature A added
9+
- FIX: nasty bug #1729 fixed
10+
- add your changes here!

0 commit comments

Comments
 (0)