-
Notifications
You must be signed in to change notification settings - Fork 0
Clean repository: remove IDE artifacts, update documentation for all 32 lessons #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Copilot
wants to merge
2
commits into
main
Choose a base branch
from
copilot/clean-up-aulas-python-repo
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+109
−93
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,45 @@ | ||
| # Bytecode caches | ||
| # Ambientes virtuais | ||
| venv/ | ||
| env/ | ||
| ENV/ | ||
| .venv | ||
|
|
||
| # Cache Python | ||
| __pycache__/ | ||
| *.py[cod] | ||
| *$py.class | ||
| *.so | ||
|
|
||
| # Virtual environments | ||
| venv/ | ||
| .env/ | ||
| .env.* | ||
| # Distribuição / empacotamento | ||
| .Python | ||
| build/ | ||
| develop-eggs/ | ||
| dist/ | ||
| downloads/ | ||
| eggs/ | ||
| .eggs/ | ||
| lib/ | ||
| lib64/ | ||
| parts/ | ||
| sdist/ | ||
| var/ | ||
| wheels/ | ||
| *.egg-info/ | ||
| .installed.cfg | ||
| *.egg | ||
|
|
||
| # VSCode settings (keep if you want to share) | ||
| # IDEs | ||
| .vscode/ | ||
| .idea/ | ||
| *.swp | ||
| *.swo | ||
| *~ | ||
|
|
||
| # Logs and dumps | ||
| *.log | ||
|
|
||
| # OS files | ||
| Thumbs.db | ||
| # Sistema Operacional | ||
| .DS_Store | ||
| Thumbs.db | ||
|
|
||
| # Jupyter | ||
| .ipynb_checkpoints/ | ||
|
|
||
| # Local tooling | ||
| .settings/ | ||
| # Logs e databases | ||
| *.log | ||
| *.sql | ||
| *.sqlite |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,67 +1,84 @@ | ||
| # Aulas Python | ||
|
|
||
| Repositório com scripts das aulas de Python. Cada arquivo `aulaX.py` contém exemplos e exercícios do curso, cobrindo fundamentos da linguagem. | ||
|
|
||
| ## Estrutura | ||
| - `aula001.py` ... `aula020.py`: Exemplos progressivos. | ||
| - `.gitignore`: Arquivos e pastas ignorados no controle de versão. | ||
|
|
||
| ## Índice das Aulas | ||
| - [Aula 001](./aula001.py) | ||
| - [Aula 002](./aula002.py) | ||
| - [Aula 003](./aula003.py) | ||
| - [Aula 004](./aula004.py) | ||
| - [Aula 005](./aula005.py) | ||
| - [Aula 006](./aula006.py) | ||
| - [Aula 007](./aula007.py) | ||
| - [Aula 008](./aula008.py) | ||
| - [Aula 009](./aula009.py) | ||
| - [Aula 010](./aula010.py) | ||
| - [Aula 011](./aula011.py) | ||
| - [Aula 012](./aula012.py) | ||
| - [Aula 013](./aula013.py) | ||
| - [Aula 014](./aula014.py) | ||
| - [Aula 015](./aula015.py) | ||
| - [Aula 016](./aula016.py) | ||
| - [Aula 017](./aula017.py) | ||
| - [Aula 018](./aula018.py) | ||
| - [Aula 019](./aula019.py) | ||
| - [Aula 020](./aula020.py) | ||
|
|
||
| ## Como executar | ||
| No PowerShell dentro da pasta do projeto: | ||
|
|
||
| ```pwsh | ||
| python aula8.py | ||
| # 🐍 Aulas de Python | ||
|
|
||
| Repositório contendo scripts progressivos das aulas de Python, cobrindo desde fundamentos até conceitos avançados. | ||
|
|
||
| ## 📚 Índice das Aulas | ||
|
|
||
| | Aula | Link | | ||
| |------|------| | ||
| | Aula 001 | [aula001.py](./aula001.py) | | ||
| | Aula 002 | [aula002.py](./aula002.py) | | ||
| | Aula 003 | [aula003.py](./aula003.py) | | ||
| | Aula 004 | [aula004.py](./aula004.py) | | ||
| | Aula 005 | [aula005.py](./aula005.py) | | ||
| | Aula 006 | [aula006.py](./aula006.py) | | ||
| | Aula 007 | [aula007.py](./aula007.py) | | ||
| | Aula 008 | [aula008.py](./aula008.py) | | ||
| | Aula 009 | [aula009.py](./aula009.py) | | ||
| | Aula 010 | [aula010.py](./aula010.py) | | ||
| | Aula 011 | [aula011.py](./aula011.py) | | ||
| | Aula 012 | [aula012.py](./aula012.py) | | ||
| | Aula 013 | [aula013.py](./aula013.py) | | ||
| | Aula 014 | [aula014.py](./aula014.py) | | ||
| | Aula 015 | [aula015.py](./aula015.py) | | ||
| | Aula 016 | [aula016.py](./aula016.py) | | ||
| | Aula 017 | [aula017.py](./aula017.py) | | ||
| | Aula 018 | [aula018.py](./aula018.py) | | ||
| | Aula 019 | [aula019.py](./aula019.py) | | ||
| | Aula 020 | [aula020.py](./aula020.py) | | ||
| | Aula 021 | [aula021.py](./aula021.py) | | ||
| | Aula 022 | [aula022.py](./aula022.py) | | ||
| | Aula 023 | [aula023.py](./aula023.py) | | ||
| | Aula 024 | [aula024.py](./aula024.py) | | ||
| | Aula 025 | [aula025.py](./aula025.py) | | ||
| | Aula 026 | [aula026.py](./aula026.py) | | ||
| | Aula 027 | [aula027.py](./aula027.py) | | ||
| | Aula 028 | [aula028.py](./aula028.py) | | ||
| | Aula 029 | [aula029.py](./aula029.py) | | ||
| | Aula 030 | [aula030.py](./aula030.py) | | ||
| | Aula 031 | [aula031.py](./aula031.py) | | ||
| | Aula 032 | [aula032.py](./aula032.py) | | ||
|
|
||
| ## 🚀 Como Executar | ||
|
|
||
| No terminal, dentro da pasta do projeto: | ||
|
|
||
| ```bash | ||
| python aula001.py | ||
| ``` | ||
|
|
||
| (Substitua `aula8.py` pelo arquivo desejado.) | ||
| Substitua `aula001.py` pelo arquivo da aula desejada. | ||
|
|
||
| ## Próximos passos sugeridos | ||
| - Adicionar comentários explicando cada conceito. | ||
| - Criar uma pasta `exercicios/` para separar práticas. | ||
| - Incluir testes simples futuramente. | ||
| ## 📁 Estrutura do Repositório | ||
|
|
||
| ## Autor | ||
| Hary Fernando Herdt | ||
| ``` | ||
| Aulas_Python/ | ||
| ├── aula001.py | ||
| ├── aula002.py | ||
| ├── ... | ||
| ├── aula032.py | ||
| ├── auto_sync.py | ||
| ├── README.md | ||
| └── .gitignore | ||
| ``` | ||
|
|
||
| ## Auto-sync com Git (opcional) | ||
| Você pode sincronizar automaticamente as aulas com o GitHub assim que terminar de editar: | ||
| ## 🔄 Auto-sync com Git (opcional) | ||
|
|
||
| - O arquivo `auto_sync.py` observa mudanças em `aula*.py`. | ||
| - Quando ficar sem alterações por alguns segundos, ele faz `git add` + `commit` e tenta `git push`. | ||
| O arquivo `auto_sync.py` observa mudanças em arquivos `aula*.py` e sincroniza automaticamente com o GitHub: | ||
|
|
||
| - Quando ficar sem alterações por alguns segundos, faz `git add` + `commit` e tenta `git push`. | ||
| - Se estiver offline, o commit é feito localmente; quando a conexão voltar, ele tenta enviar periodicamente. | ||
|
|
||
| Como iniciar pelo VS Code: | ||
| 1. Abra o menu “Terminal” > “Run Task…” | ||
| 2. Escolha “Auto Sync: Git aulas”. Isso abrirá um terminal rodando em background. | ||
| 3. Para parar, feche o terminal desta tarefa ou pressione `Ctrl+C` nele. | ||
| Para usar: | ||
| ```bash | ||
| python auto_sync.py | ||
| ``` | ||
|
|
||
| Ajustes rápidos (opcionais): | ||
| - No arquivo `.vscode/tasks.json`, você pode alterar variáveis de ambiente: | ||
| - `QUIET_SECONDS` (padrão 30): tempo de inatividade antes de commitar. | ||
| - `CHECK_INTERVAL` (padrão 2): frequência de verificação. | ||
| - `PUSH_POLL_SECONDS` (padrão 60): frequência de tentativas de push pendentes. | ||
| Variáveis de ambiente opcionais: | ||
| - `QUIET_SECONDS` (padrão 20): tempo de inatividade antes de commitar | ||
| - `CHECK_INTERVAL` (padrão 2): frequência de verificação | ||
| - `PUSH_POLL_SECONDS` (padrão 60): frequência de tentativas de push pendentes | ||
|
|
||
| Observação: o script só considera arquivos que começam com `aula` e terminam com `.py`. | ||
| ## 👨💻 Autor | ||
|
|
||
| Hary Fernando Herdt | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The execution instructions changed from PowerShell-specific to generic "terminal" and from "pwsh" to "bash". According to the repository's coding guidelines, commands should assume PowerShell on Windows. The original format was more aligned with the established convention of focusing on Windows/PowerShell environment.