Skip to content

Commit

Permalink
identation & test remove
Browse files Browse the repository at this point in the history
  • Loading branch information
Robso-creator committed Nov 22, 2024
1 parent 4d5ed91 commit bd642f3
Show file tree
Hide file tree
Showing 58 changed files with 6,627 additions and 5,512 deletions.
4 changes: 2 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[run]
omit = *__init__.py
[run]
omit = *__init__.py
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
src/data
src/data
42 changes: 21 additions & 21 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# Principal contribuições desse PR

Descreva em forma de lista quais são as contribuições desse PR:


- [x] Feature 1
- [x] Fix bugs relacionados a..

# Futuras modificações interessantes para serem abordadas (backlog)

- [ ] Feature 1
- [ ] Feature 2

# Github issue

Se isso fizer referência a uma issue do Github, forneça-a aqui.

Observe que o Github cria automaticamente um link para um problema se
ele é referenciado por número com um '#' inicial.

Issue #1
# Principal contribuições desse PR

Descreva em forma de lista quais são as contribuições desse PR:


- [x] Feature 1
- [x] Fix bugs relacionados a..

# Futuras modificações interessantes para serem abordadas (backlog)

- [ ] Feature 1
- [ ] Feature 2

# Github issue

Se isso fizer referência a uma issue do Github, forneça-a aqui.

Observe que o Github cria automaticamente um link para um problema se
ele é referenciado por número com um '#' inicial.

Issue #1
64 changes: 64 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
default_language_version:
python: python3.12

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-ast
- id: check-added-large-files
- id: check-json
- id: check-yaml
- id: check-case-conflict
- id: check-toml
- id: check-xml
- id: end-of-file-fixer
- id: detect-aws-credentials
args: [ "--allow-missing-credentials" ]
- id: detect-private-key
- id: debug-statements
- id: double-quote-string-fixer
- id: mixed-line-ending
args: [ "--fix=lf" ]
- id: name-tests-test
args: [ "--pytest-test-first" ]
- id: pretty-format-json
args: [ "--autofix" ]
- id: trailing-whitespace
# Find and replace unneeded f-strings in your code.
- repo: https://github.com/dannysepler/rm_unneeded_f_str
rev: v0.2.0
hooks:
- id: rm-unneeded-f-str
# a formatter for finding and removing unused import statements
- repo: https://github.com/hadialqattan/pycln
rev: v2.4.0
hooks:
- id: pycln
args: [ "--all" ]
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.12.0
hooks:
- id: reorder-python-imports
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
- repo: https://github.com/psf/black
rev: 23.12.1 # keep this version otherwise fix the conflicts
hooks:
- id: black
args: [ "--line-length=800", "--skip-string-normalization" ]
# An extremely fast Python linter, written in Rust.
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: v0.1.15
hooks:
- id: ruff
# Respect `exclude` and `extend-exclude` settings.
args: ["--line-length=320", "--fix" ]
exclude: ^(src/utils/reports/__init__.py|src/scripts_batch/external_source/bigboost/__init__.py|dags/__init__.py)
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN pip install --user --no-cache-dir -r requirements/requirements.txt \
-name '*.jpeg' -name '*.js.map' -name '*.pyc' -name '*.c' -name '*.pxc' \
-name '*.pyc' -delete \
&& find /usr/local/lib/python3.8 -name '__pycache__' | xargs rm -r
ENV LANG C.UTF-8
ENV LANG=C.UTF-8

COPY src/ src/
COPY tests/ tests/
Expand Down
Loading

0 comments on commit bd642f3

Please sign in to comment.