-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
#350: Add Nox and basic pyproject.toml created by Poetry
- Loading branch information
Showing
6 changed files
with
223 additions
and
36 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from typing import TYPE_CHECKING | ||
|
||
import nox | ||
|
||
|
||
if TYPE_CHECKING: | ||
from nox.sessions import Session | ||
|
||
python_versions = ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
|
||
@nox.session(python=python_versions, reuse_venv=True) | ||
def tests(session: "Session") -> None: | ||
_ = session.run("python", "snippets/2_tricky_strings.py") |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[tool.poetry] | ||
name = "wtfpython" | ||
version = "3.0.0" | ||
description = "What the f*ck Python!" | ||
authors = ["Satwik Kansal <[email protected]>"] | ||
license = "WTFPL 2.0" | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
nox = "^2024.10.9" | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
This file contains 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# 1 | ||
assert id("some_string") == id("some" + "_" + "string") | ||
assert id("some_string") == id("some_string") | ||
|
||
# 2 | ||
a = "wtf" | ||
b = "wtf" | ||
assert a is b | ||
|
||
a = "wtf!" | ||
b = "wtf!" | ||
assert a is b | ||
|
||
# 3 | ||
a, b = "wtf!", "wtf!" | ||
assert a is b | ||
|
||
a = "wtf!"; b = "wtf!" | ||
assert a is b |
Empty file.