Skip to content

Commit c11ab02

Browse files
committed
Add some default project files
1 parent 1870d4f commit c11ab02

7 files changed

+139
-0
lines changed

.pre-commit-config.yaml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
exclude: (^static/|^staticfiles/|^manage.py|^setup.py|^instance)
3+
fail_fast: true
4+
5+
repos:
6+
- repo: "https://github.com/pre-commit/pre-commit-hooks"
7+
rev: "v4.1.0"
8+
hooks:
9+
- id: check-added-large-files
10+
- id: check-ast
11+
- id: check-byte-order-marker
12+
- id: check-case-conflict
13+
- id: check-executables-have-shebangs
14+
- id: check-shebang-scripts-are-executable
15+
- id: pretty-format-json
16+
args: ["--autofix", "--indent=4", "--no-sort-keys"]
17+
- id: check-merge-conflict
18+
- id: check-symlinks
19+
- id: check-yaml
20+
- id: check-json
21+
- id: check-toml
22+
- id: check-xml
23+
- id: requirements-txt-fixer
24+
- id: debug-statements
25+
- id: destroyed-symlinks
26+
- id: detect-private-key
27+
# - id: end-of-file-fixer
28+
- id: fix-encoding-pragma
29+
args: ["--pragma", "# coding=utf-8"]
30+
- id: trailing-whitespace
31+
32+
- repo: "https://github.com/psf/black"
33+
rev: "22.3.0"
34+
hooks:
35+
- id: black
36+
37+
- repo: "https://github.com/PyCQA/isort"
38+
rev: "5.10.1"
39+
hooks:
40+
- id: isort
41+
42+
- repo: "https://github.com/PyCQA/flake8"
43+
rev: "4.0.1"
44+
hooks:
45+
- id: flake8
46+
47+
- repo: local
48+
hooks:
49+
- id: pylint
50+
name: pylint
51+
entry: pylint
52+
language: system
53+
types: [python]
54+
55+
- id: pytest
56+
name: pytest
57+
stages: [commit]
58+
language: system
59+
entry: coverage run -m pytest
60+
types: [python]
61+
always_run: true
62+
pass_filenames: false
63+
64+
- id: pytest-cov
65+
name: pytest
66+
stages: [commit]
67+
language: system
68+
entry: coverage report
69+
types: [python]
70+
always_run: true
71+
pass_filenames: false

AUTHORS.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Authors
2+
3+
## Development Lead
4+
5+
- Toni Mägel <[email protected]>
6+
7+
## Contributors
8+
9+
None yet. Why not be the first?

CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
## [0.0.1] - YYY-MM-DD
11+
12+
tbd...
13+
14+
### Added
15+
16+
- Intiial release
17+
18+
[unreleased]: https://github.com/tmaegel/pysurvive/compare/v0.0.1...HEAD
19+
[0.0.1]: https://github.com/tmaegel/pysurvive/releases/tag/v0.0.1

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022, Toni Mägel
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Makefile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
SRC_PATH = src
2+
3+
run:
4+
python $(SRC_PATH)/main.py
5+
6+
test:
7+
coverage run -m pytest
8+
coverage report
9+
10+
tox:
11+
tox -e py39
12+
13+
lint:
14+
python -m flake8
15+
pylint $(SRC_PATH)
16+
python -m mypy .
17+
18+
pre-commit:
19+
pre-commit run --all-files

src/__init__.py

Whitespace-only changes.

tests/conftest.py

Whitespace-only changes.

0 commit comments

Comments
 (0)