Skip to content

Commit

Permalink
auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam committed Nov 10, 2023
1 parent ebb7531 commit 2327680
Show file tree
Hide file tree
Showing 45 changed files with 2,845 additions and 264 deletions.
250 changes: 92 additions & 158 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,158 +1,92 @@
# Ref: https://git-scm.com/docs/gitattributes
# Ref: https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes
# Ref: https://github.com/alexkaratarakis/gitattributes/blob/master/Common.gitattributes
# Ref: https://github.com/alexkaratarakis/gitattributes/blob/master/Python.gitattributes

# ------------------------------------------ Auto Detect -------------------------------------------
# Auto-detect text files and perform LF normalization. This will handle all files NOT listed below.

* text=auto

# ------------------------------------------ Explicit ----------------------------------------------
.gitattributes text export-ignore
.gitignore text export-ignore

AUTHORS text
CHANGELOG text
CHANGES text
CODEOWNERS text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
Makefile text
NEWS text
readme text
*README* text
TODO text
MANIFEST.in text


*.typed text

# ------------------------------------------ Documents ---------------------------------------------

*.bibtex text diff=bibtex
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.md text diff=markdown
*.mdx text diff=markdown
*.rst text
*.tex text diff=tex
*.adoc text
*.textile text
*.mustache text
*.csv text eol=crlf
*.tab text
*.tsv text
*.txt text
*.sql text
*.epub diff=astextplain

*.css text diff=css
*.htm text diff=html
*.html text diff=html


# ------------------------------------------ Graphics ----------------------------------------------

*.svg text
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
*.eps binary



# ------------------------------------------ Scripts -----------------------------------------------

*.bash text eol=lf
*.fish text eol=lf
*.sh text eol=lf
*.zsh text eol=lf

# Below are explicitly windows files and should use crlf

*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf



# ------------------------------------------ Serialisation -----------------------------------------

*.json text
*.toml text
*.xml text
*.yaml text
*.yml text



# ------------------------------------------ Archives ----------------------------------------------

*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.tgz binary
*.zip binary



# ------------------------------------------ Preserve EOL ------------------------------------------

# Text files where line endings should be preserved.

*.patch -text





# ------------------------------------------ Python Source Files -----------------------------------

*.pxd text diff=python
*.py text diff=python
*.py3 text diff=python
*.pyw text diff=python
*.pyx text diff=python
*.pyz text diff=python
*.pyi text diff=python



# ------------------------------------------ Python Binary Files -----------------------------------

# Note: .db, .p, and .pkl files are associated with the python modules
# ``pickle``, ``dbm.*``, ``shelve``, ``marshal``, ``anydbm``, and ``bsddb``, among others.

*.db binary
*.p binary
*.pkl binary
*.pickle binary
*.pyc binary export-ignore
*.pyo binary export-ignore
*.pyd binary



# ------------------------------------------ Jupyter notebook --------------------------------------

*.ipynb text eol=lf
* text=auto
.gitattributes text export-ignore
.gitignore text export-ignore
AUTHORS text
CHANGELOG text
CHANGES text
CODEOWNERS text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
Makefile text
NEWS text
readme text
*README* text
TODO text
MANIFEST.in text
*.typed text
*.bibtex text diff=bibtex
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.md text diff=markdown
*.mdx text diff=markdown
*.rst text
*.tex text diff=tex
*.adoc text
*.textile text
*.mustache text
*.csv text eol=crlf
*.tab text
*.tsv text
*.txt text
*.sql text
*.epub diff=astextplain
*.css text diff=css
*.htm text diff=html
*.html text diff=html
*.svg text
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
*.eps binary
*.bash text eol=lf
*.fish text eol=lf
*.sh text eol=lf
*.zsh text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
*.json text
*.toml text
*.xml text
*.yaml text
*.yml text
*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.tgz binary
*.zip binary
*.patch -text
*.pxd text diff=python
*.py text diff=python
*.py3 text diff=python
*.pyw text diff=python
*.pyx text diff=python
*.pyz text diff=python
*.pyi text diff=python
*.db binary
*.p binary
*.pkl binary
*.pickle binary
*.pyc binary export-ignore
*.pyo binary export-ignore
*.pyd binary
*.ipynb text eol=lf
13 changes: 13 additions & 0 deletions .github/.codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
coverage:
precision: 2
round: nearest
range: 90...100
status:
project:
default:
target: 100%
threshold: 5%
comment:
layout: header, diff, flags, files
require_changes: false
behavior: default
1 change: 1 addition & 0 deletions .github/.metadata.json

Large diffs are not rendered by default.

120 changes: 120 additions & 0 deletions .github/.pre-commit-config-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
default_language_version:
python: python3.11
minimum_pre_commit_version: 3.3.3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
stages:
- pre-commit
- manual
verbose: true
- id: check-case-conflict
stages:
- pre-commit
- manual
verbose: true
- id: check-executables-have-shebangs
stages:
- pre-commit
- manual
verbose: true
- id: check-json
stages:
- pre-commit
- manual
verbose: true
- id: check-shebang-scripts-are-executable
stages:
- pre-commit
- manual
verbose: true
- id: check-symlinks
stages:
- pre-commit
- manual
verbose: true
- id: check-toml
stages:
- pre-commit
- manual
verbose: true
- id: check-xml
stages:
- pre-commit
- manual
verbose: true
- id: check-yaml
stages:
- pre-commit
- manual
verbose: true
- id: end-of-file-fixer
stages:
- pre-commit
- manual
verbose: true
- id: mixed-line-ending
stages:
- pre-commit
- manual
verbose: true
- id: name-tests-test
stages:
- pre-commit
- manual
args:
- --pytest
verbose: true
- id: no-commit-to-branch
stages:
- pre-commit
args:
- --branch
- main
- --pattern
- release/.*
verbose: true
- id: trailing-whitespace
stages:
- pre-commit
- manual
verbose: true
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.290
hooks:
- id: ruff
stages:
- pre-commit
- manual
args:
- --fix
- --exit-non-zero-on-fix
types_or:
- python
- pyi
- jupyter
verbose: true
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
stages:
- pre-commit
- manual
args:
- --settings-path
- pyproject.toml
verbose: true
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1
hooks:
- id: black-jupyter
stages:
- pre-commit
- manual
args:
- --config
- pyproject.toml
verbose: true
Loading

0 comments on commit 2327680

Please sign in to comment.