realpython/materials
关于
Python 教程的补充材料、练习和示例项目
学习与教育实测星标增长
- 24小时
- +1
- 7天
- +2
- 15天
- +9
- 1个月
- +10
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Real Python Materials
Bonus materials, exercises, and example projects for Real Python's Python tutorials.
Got a Question?
The best way to get support for Real Python courses, articles, and code in this repository is to join one of our weekly Office Hours calls or to ask your question in the RP Community Chat.
Due to time constraints, we cannot provide 1:1 support via GitHub. See you on Slack or on the next Office Hours call 🙂
Adding Source Code & Sample Projects to This Repo (RP Contributors)
Running Code Style Checks
We use Ruff to ensure a consistent code style and formatting for all of our sample code in this repository.
Run the following commands to validate your code against the linters:
$ ruff format --check
$ ruff check
Make sure you're using the exact Ruff version specified in requirements.txt.
Running Python Code Formatter
Ruff can automatically ensure a consistent code formatting in this repository. On CI, it runs in "check" mode to ensure any new files added to the repo follow PEP 8. If you see linter warnings that say something like "would reformat some_file.py", then it means that Ruff disagrees with your formatting.
The easiest way to resolve these errors is to run Ruff locally on the code and then commit those changes, as explained below.
To automatically reformat your code to be consistent with our code style guidelines, run Ruff in the repository root folder:
$ ruff format
$ ruff check --fix
探索相关项目
加载中…